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.

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

报告相同问题?