News for hackers. Stuff that matters.
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by pjmlp on Wednesday July 05, 2023 @03:13AM (#36596698)
So it is written in C or C++?

Apparently Go isn't good enough to write an IDE, even that it lags behind Java.

Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by maccard on Wednesday July 05, 2023 @03:27AM (#36596853)
> Apparently Go isn't good enough to write an IDE, even that it lags behind Java.

The GUI situation in go is poor, but other than that I would say go is an excellent tool to write the remainder of the IDE in.

Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by p0w3n3d on Wednesday July 05, 2023 @03:52AM (#36597113)
writing desktop UI is really difficult these days. I mean i'm not saying it used to be easier, but the amount of technologies you can use to write a web application or desktop/javascript application and easiness of creation is overwhelming, while the amount of GUI frameworks stays the same, while some of them are decaying (no new version for a long time).

So we have objective-c/swift (new!) for macos, MFC for MSVC++, WPF/UWP for C# - all those for windows, and we have QT/GTK for Linux and de facto multiplatform. That's basically all usable at the moment, but GTK is heavy on windows/mac in my opinion.

New languages bubbling up from the opensource ground meanwhile do not offer many bindings for those above, while QT had made it hard to do any reliable binding at all, apparently...

Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by pjmlp on Wednesday July 05, 2023 @04:30AM (#36597446)
Hardly any different from going with C and C++, which could have been wrapped via CGO.
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by p0w3n3d on Wednesday July 05, 2023 @05:20AM (#36597823)
sorry, in theory it's okay, in practice it's much more difficult.

-- edit -- speaking of Qt

Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by pjmlp on Wednesday July 05, 2023 @05:39AM (#36597981)
CGO supports C++.
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by p0w3n3d on Sunday July 09, 2023 @05:04PM (#36658875)
Qt framework is not about C++. It creates another language inside with different mechanics. And most important, different memory management patterns. Sometimes the objects are managed by Qt parent object, sometimes not. I wouldn't commit to a project that would create a GUI in Qt using CGO.
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by maccard on Wednesday July 05, 2023 @06:21AM (#36598293)
Writing c and go, and using c bindings is pretty painful compared to just writing go. It's technically possible Just like being technically correct, it's the worst kind of correct/possible.
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by pjmlp on Wednesday July 05, 2023 @07:02AM (#36598599)
Just like JNI, if only there were a couple of companies that would embrace JNI to create IDEs...
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by rizzaxc on Wednesday July 05, 2023 @03:28AM (#36596868)
It's not what the language is for. Go is really strong for greenfield server projects (and bad pretty much anywhere else)
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by Cwizard on Wednesday July 05, 2023 @03:42AM (#36597013)
I think it is also very good for CLI’s and background agents
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by perbu on Wednesday July 05, 2023 @03:59AM (#36597169)
In my opinion the language itself lends it self pretty well for GUIs. The concurrency and synchronization primitives are strong.

The problem would be to have native bindings to the GUI elements of the various desktop OSes. Which are hard to build as calling C or C++ libraries aren't a real option.

I would love to hear why Go as a language isn't suited for GUIs. I've built a couple of toy GUIs and it's been a pleasure doing so.

Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by pjmlp on Wednesday July 05, 2023 @04:30AM (#36597438)
> Which are hard to build as calling C or C++ libraries aren't a real option.

Using CGO is hardly any different from JNI in complexity.

Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by perbu on Wednesday July 05, 2023 @05:13AM (#36597774)
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by pjmlp on Wednesday July 05, 2023 @05:41AM (#36597999)
Last time I checked it is.

https://pkg.go.dev/cmd/cgo

Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by perbu on Friday July 07, 2023 @02:35AM (#36628005)
try it and see. there is a reason for the proverb.
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by pjmlp on Wednesday July 05, 2023 @04:28AM (#36597433)
CGO exists.
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by dragon111 on Wednesday July 05, 2023 @03:43AM (#36597027)
Why would you write an IDE in Go?
Re:Show HN: CodePerfect, a fast, lightweight IDE for Go by pjmlp on Wednesday July 05, 2023 @04:28AM (#36597427)
Because it is an IDE for Go.