如何分发(开源)Vala 项目?

发布于 2024-08-20 05:22:27 字数 231 浏览 8 评论 0原文

Vala 是唯一可以编译为 C 等高级语言的语言之一,它让我很感兴趣。我一直想用它开始一个小项目,但我一直想知道如何分发它。

事实是,它编译为 C 代码(我想是 C99)。

  • 我可以分发 C 代码吗 瓦拉代码?
  • 如果我这样做,C 代码是否与所有平台兼容?
  • 或者,例如在使用套接字时,它是否自动包含适当的内容(对于 Windows 为 winsock.h)?

One of the only languages that compiles to a high level language such as C, Vala has interested me for quite a bit. I've been wanting to start a small project with it, but I've been wondering how I would distribute it.

The fact is, that it compiles to C code (C99 I suppose).

  • Can I distribute the C code instead
    of the Vala code?
  • If I do, is the C code compatible with all platforms?
  • Or does it, for example when using sockets, include the appropriate stuff (winsock.h for Windows) automatically?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

留蓝 2024-08-27 05:22:27

来自 irc 的 Vala 开发人员,irc.gnome.org 上的#vala:

   18:57 < flo> It is of course possible to distribute the C code as
         well. The compiler itself is shiped with vala and C code. We
         actually access C-libraries over an abstract interface with all
         advantages and disadvantages of the libraries we are using,
         including platform dependencies.

From a Vala developer in irc, #vala on irc.gnome.org:

   18:57 < flo> It is of course possible to distribute the C code as
         well. The compiler itself is shiped with vala and C code. We
         actually access C-libraries over an abstract interface with all
         advantages and disadvantages of the libraries we are using,
         including platform dependencies.
甜味超标? 2024-08-27 05:22:27

Automake,从版本 1.10 或 1.11 开始,具有 Vala 支持

Automake, as of version 1.10 or 1.11 has Vala support.

征﹌骨岁月お 2024-08-27 05:22:27

你谷歌了吗?你尝试过吗? Valal 主页有什么要说的吗?你在Vala论坛上问过吗? SO 上只有 7 个标记为 Vala 的问题(其中之一是“Vala 会生存吗?”),所以这可能不是提问的最佳地点。

为什么不直接将您的vala编译为C,然后通过C编译器运行它,最好是在另一台PC上运行(为了进行彻底的测试,使第二台PC成为从未进行过任何开发工作的PC,并专门为您的测试安装一个C编译器) 。

当然,这可能对某个程序有所证明,但不适用于所有程序。也许询问邮件列表(http://mail.gnome.org/mailman/listinfo/ vala-list),还是开发者? Jürg Billeter - j at bitron dot ch Raffaele Sandrini - rasa at gmx dot ch

问题,解释一下,是“一根绳子有多长”,最好的答案是“吮吸它,看看”,警告是 YMMV ; -)g

Did you google? did you try it out? Does the Valal home page have anything to say? Did you ask on Vala forums? There are only 7 questions tagged Vala on SO (and one of those is "will Vala survive?"), so this might not be the best place to ask.

Why not just compile your vala to C and then run it through a C compiler, preferably on a different PC (for a thorough test, make that 2nd PC one which has never one any development work and install a C compiler specially for your test).

Of course that might prove something for a program, but not for all programs. Perhaps ask the mailing list (http://mail.gnome.org/mailman/listinfo/vala-list), or the devlopers? Jürg Billeter - j at bitron dot ch Raffaele Sandrini - rasa at gmx dot ch

The question, paraphrased, is "how long is a piece of string", the best answer is "suck it, and see", and the caveat is YMMV ;-)g

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文