2017-09-01 08:35

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

  • IT行业问题
  • 计算机技术
  • it技术
  • 编程语言问答
  • 互联网问答

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 ?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • doulutian4843 doulutian4843 4年前

    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.

    点赞 评论 复制链接分享