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.

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

报告相同问题?

悬赏问题

  • ¥15 请问读取环境变量文件失败是什么原因?
  • ¥15 在若依框架下实现人脸识别
  • ¥15 网络科学导论,网络控制
  • ¥100 安卓tv程序连接SQLSERVER2008问题
  • ¥15 利用Sentinel-2和Landsat8做一个水库的长时序NDVI的对比,为什么Snetinel-2计算的结果最小值特别小,而Lansat8就很平均
  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载