Re:Golang Desktop App with Webview/Lorca, WASM and Bazel
by jchw on Tuesday August 11, 2020 @12:22PM
(#24122107)
Lazarus is fine and good, but what does it have to do with writing UIs for Go apps? Can you integrate Delphi/Lazarus code together with Golang code in some meaningful way?
Re:Golang Desktop App with Webview/Lorca, WASM and Bazel
by R0b0t1 on Tuesday August 11, 2020 @02:56PM
(#24124365)
Yes? It supports different calling conventions. Easiest would be exporting things cdecl from Go. But usually the better way to do this is to write the UI in FreePascal (or something else) and use some form of IPC like pipes or network sockets to get the data to the UI.
I've actually done this, it works well, and the Lazarus GUI libraries manage to get a natural look and feel on all platforms.
Re:Golang Desktop App with Webview/Lorca, WASM and Bazel
by fileeditview on Wednesday August 12, 2020 @02:33AM
(#24129148)
Wow this looks really interesting.. however it seems kinda risky to start developing a commercial app when the whole documentation is in chinese.. :)
Re:Golang Desktop App with Webview/Lorca, WASM and Bazel
by pkphilip on Wednesday August 12, 2020 @02:03AM
(#24128992)
Wow! this is good! I didn't even know such a thing existed.
Are you the person who wrote this? if so would like to contribute in some way.
Re:Golang Desktop App with Webview/Lorca, WASM and Bazel
by UnnoTed on Wednesday August 12, 2020 @09:40AM
(#24131962)
I'm not the one who wrote it, i found it while looking for Nim bindings for Lazarus' LCL.
Re:Golang Desktop App with Webview/Lorca, WASM and Bazel
by R0b0t1 on Tuesday August 11, 2020 @05:49PM
(#24126435)
That's great. If someone has spent the effort to do that it is worth using.
Re:Golang Desktop App with Webview/Lorca, WASM and Bazel
by jchw on Tuesday August 11, 2020 @07:00PM
(#24126964)
This is definitely more what I had in mind, awesome!
Re:Golang Desktop App with Webview/Lorca, WASM and Bazel
by jmnicolas on Tuesday August 11, 2020 @04:06PM
(#24125357)
> Think Visual Basic [...]
I tried it a few years ago and ran away for this exact reason : I have VB PTSD from some complex Excel apps that I inherited at work ;)
But yeah if I was objective I could see a lot of value in Lazarus.
Think Visual Basic but cross-platform, with a much better language and component architecture.
You can develop non-trivial apps in hours rather than days.
The IDE is here: www.lazarus-ide.org
Why Lazarus?
* Has a proper Rapid Application Development (RAD) IDE with visual layout, event handlers, component tool bars etc and also built in documentation
* Extremely fast to develop on: The IDE starts in a couple of seconds. Compilation to native binaries in seconds.
* Cross Platform - Windows, Linux, Mac OS and perhaps even Android
* Binaries are really fast
* Excellent set of visual components
* Excellent set of database components including grids, CRUD toolbars etc
* You can write your own components very easily.
* Very small executable
* Most Delphi documentation is directly usable
* Many existing products use Lazarus https://wiki.freepascal.org/Projects_using_Lazarus
* Demos and projects here: https://www.getlazarus.org/