duanban4769 2017-09-01 08:35
浏览 51
已采纳

我对普通GTK3应用程序使用哪种语言有关系吗? 用户会注意到差异吗? [关闭]

I want to make an application with GTK3. This will be an application to manage files (copy, move, ...) but mostly some windows with settings. (normal tabs, checkbox, selects, inputs, ...) I may also need some custom drawn widgets.

As a language I would like to use Go because it is fast an simple to use. I tried the gotk3 library and the example seem to work fine on my macbook.

But I'm a bit worried about performance. Because cgo is used to use the gtk libraries, will this make the application slow? Or is this still fast enough for normal applications.

An alternative would be to use Rust. gtk-rs seems better then gotk3 because using c libraries in Rust is easier.

(I have no experience with GTK, C, Rust)

Will gotk3 be fast enough for a good user experience?
Will I notice a difference between gotk3 / gtk-rs / gtk in plain C ?

  • 写回答

1条回答 默认 最新

  • doulutian4843 2017-09-01 08:44
    关注

    Will gotk3 be fast enough for a good user experience?

    Yes. Unless you write a very specific program like for low latency trading, the language in which you write your app does not matter.

    Just pick up the language you prefer: Go, Rust, C, Python, D, etc. they are all used in various GNOME application without trouble.

    The thing that matters is the algorithm you use. If you use an O(n²) instead of an O(log n) algorithm for example, it will be bad in C, Rust and Go.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集