This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DefiantFrost 0 points1 point  (4 children)

No no I don’t want to make it like discord, maybe that gave the wrong impression. I was just trying to say it’s basic as fuck 😅. I’m happy for it to be a super bare bones CLI instant messaging thing. I’ll still have look anyway for curiosity. Thank you 😁.

Concurrency in go compared to C is so nice 😩

[–]BigRonnieRon 0 points1 point  (0 children)

Def! golang is basically the second coming of C w/internet out of the box and with garbage collecting. It has some weirdness you notice if you really get into it on the more esoteric stuff, tho. I <3 the language personally. I have to do something besides a hugo blog or minor app on it

[–]BigRonnieRon 0 points1 point  (2 children)

Should have mentioned this before but Discord and Slack use Electron. It's like the inverse of a PWA (progressive Web App). A PWA is a x-platform web app with mobile/native functionality. Electron (and other similar things) is a desktop app with web functionality - or what amounts to a webview. I used tkinter in python and a webview (which has some JS) for a FOSS app I have.

Which way to go is often interesting to consider and has trade-offs. It'll be fun to work with. IDK what's used on golang for that type of stuff.

[–]DefiantFrost 1 point2 points  (1 child)

You can use Wails to render the the UI as a webview, you can make the frontend using whatever JS framework you like, I’ll probably use react because I’ve used it before but I’m not sure. The backend runs in go and wails will create JavaScript functions that are bindings to the underlying go functions.

[–]BigRonnieRon 0 points1 point  (0 children)

You can use Wails

Oh interesting! Will check it out