Readit News logoReadit News
thegeekpirate commented on Lisp interpreter with GC in <750 lines of Odin (and <500 lines of C)   github.com/krig/LISP... · Posted by u/PaulHoule
johnisgood · 15 hours ago
I did, thank you. Please explain why would anyone (end user of library) ever want "curl.CURL_GLOBAL_ALL", for example? If anything, it should be private. If you really want to go there, sure. I think it is YOU who should think things through. I get that you are filled with hatred, but come on man. Think. Why would anyone want to call "curl.CURL_GLOBAL_ALL" from a binding which is supposed to be used as a high-level curl library? If it is possible (I have no idea) to make it private, then it should be made private. It is not intended to be used by the users of the library, is it? The higher level functions are the ones supposed to be used by them, and they seem to be named correctly from a quick glance.

If you reply, do so without ad hominems and with some respect. Thank you.

thegeekpirate · 15 hours ago
Last question I'll answer, because you aren't doing any of this is good faith.

You mean `curl.GLOBAL_ALL`, and it's for https://curl.se/libcurl/c/curl_global_init.html

thegeekpirate commented on Lisp interpreter with GC in <750 lines of Odin (and <500 lines of C)   github.com/krig/LISP... · Posted by u/PaulHoule
johnisgood · 16 hours ago
I posted the link and now the PR is getting filled with comments. Lord. This is why I did not want to look for and post the link to begin with!

Some guy did ask questions I would have asked, at least.

Back to the CURL prefix, what is wrong with it? It is how it is in curl.h and without it, it looks kind of meh. What would the "CURL" distinct type be without the CURL prefix? :P

I hope I did not make a mess just by posting the URL. I will remove it. I do not need more (supposedly trolls) in there and make more of a big fuss than I did on here.

thegeekpirate · 16 hours ago
> Back to the CURL prefix, what is wrong with it?

It prevents stuttering when using it `curl.CURL_*`.

> What would the "CURL" distinct type be without the CURL prefix?

`CURL` isn't a prefix there.

Take more time to think things through.

thegeekpirate commented on My Foray into Vlang   kristun.dev/posts/my-fora... · Posted by u/Bogdanp
shakow · 4 days ago
Lazarus does not have a GC AFAIK, it's manual-free.
thegeekpirate · 3 days ago
It does seem like they somewhat do now, as of the last several years https://wiki.lazarus.freepascal.org/management_operators

From https://news.ycombinator.com/item?id=19100760 since I'm not a Pascal user:

> The change we're talking about automatically invokes Initialize and Finalize on all types for dynamic allocations / destruction, unless they intentionally circumvent it. Intentional circumvention might include allocating raw memory in a class and treating the class like an array with an index property. In other words, if you declare a raw pointer, allocate untyped memory (e.g. bytes), and handle something back from that memory using a typecast, then you are bypassing automatic allocation and destruction.

> All other ways to make space for complex types (records and classes) as well as types which may hold complex types (arrays and nested fields) will safely and reliably use Initialize and Finalize when needed if they are defined.

thegeekpirate commented on My Foray into Vlang   kristun.dev/posts/my-fora... · Posted by u/Bogdanp
nine_k · 4 days ago
> an applications programming language that's both fast, statically typed, and minimalistic

While at it, does Zig fit this bill? (Or, haha, Free Pascal / Lazarus, if we talk about desktop software.)

thegeekpirate · 4 days ago
Far too complex, Odin (my favorite language for writing apps in) would align more with minimalistic values.

Lazarus always looked good, so there's probably value there if having a GC isn't an issue.

Deleted Comment

thegeekpirate commented on Janet: Lightweight, Expressive, Modern Lisp   janet-lang.org... · Posted by u/veqq
uvas_pasas_per · a month ago
Lisp is very cool. But one thing I do not like is that the syntax style `(fun a b c)` loses out to the less-symmetric "OO" style `a.fun(b, c)` when it comes to IDE auto-completion. And for me the IDE help is important to provide a smooth developer experience and minimize wasted brain energy. I'd like to find a way to make the editing and auto-completion work better. I think the way IDEs (and maybe our brains) work is: "here is a thing X, now what can I do to/with it?". That translates to typing in your editor: "X.[cursor here]", and then the IDE lets you see and search the things you can "do" with X. But if, in Lisp, you write "([cursor here]", you are immediately confronted with: "what is the signature of that function again?", but the IDE has nothing to go on. Maybe there is different style of editing, where we could type the arguments, and then trigger the auto-complete.
thegeekpirate · a month ago
Odin's language server calls it "fake methods".

https://odin-lang.org

https://github.com/DanielGavin/ols

thegeekpirate commented on Beyond Meat fights for survival   foodinstitute.com/focus/b... · Posted by u/airstrike
beej71 · 2 months ago
Last I looked, there was an awful lot of saturated fat in their burgers. I tended to order something other than a veggie burger when their was the only one on the menu.
thegeekpirate · a month ago
USDA 80/20 ground beef has 7.7g per 113g [0], 90/10 has 5g [1], Beyond Meat has 2g [2], and Impossible has 6g [3].

Impossible also has a "Lite" version (which doesn't seem to exist near me) with 1g [4], although apparently it doesn't taste very good.

[0] https://fdc.nal.usda.gov/food-details/2514744/nutrients

[1] https://fdc.nal.usda.gov/food-details/2514743/nutrients

[2] https://www.beyondmeat.com/en-CA/products/the-beyond-burger/...

[3] https://faq.impossiblefoods.com/hc/en-us/articles/3600189392...

[4] https://impossiblefoods.com/beef/plant-based-impossible-beef...

thegeekpirate commented on Show HN: I wrote a BitTorrent Client from scratch   github.com/piyushgupta53/... · Posted by u/piyushgupta53
TheEdonian · 3 months ago
How hard would it be to add a GUI to this? I don't think I've seen a lot of GO Gui implementations in the past
thegeekpirate · 3 months ago
There's a bunch https://github.com/go-graphics/go-gui-projects

My personal favourite is an ImGui wrapper https://github.com/AllenDang/giu

The most featureful is probably unison, although I'm uncertain if anyone uses it outside of their own project (https://gurpscharactersheet.com), meaning documentation will be sparse https://github.com/richardwilkes/unison

Gio uses a different way of thinking about GUIs, used by Tailscale and gotraceui https://gioui.org

Wails is great if you're familiar with development on the web https://wails.io

The GTK4 bindings also look nice https://github.com/diamondburned/gotk4

Cogent Core also looks neat, but I didn't have the time to play with it before I switched over to using the Odin programming language instead of Go https://www.cogentcore.org/core

I personally had nothing but issues with Fyne (especially in regard to performance, across multiple computers and operating systems), but it's probably the most popular option https://fyne.io

thegeekpirate commented on Odin, a pragmatic C alternative with a Go flavour   bitshifters.cc/2025/05/04... · Posted by u/hmac1282
fuzztester · 4 months ago
Is anyone doing desktop GUI apps with Odin? If so, what libraries are you using?
thegeekpirate · 4 months ago
I use Dear ImGui and love it https://gitlab.com/L-4/odin-imgui

u/thegeekpirate

KarmaCake day517August 19, 2015
About
[ my public key: https://keybase.io/dozn; my proof: https://keybase.io/dozn/sigs/kE_dbCXKmBPxtzwkeOdyykw0ybItKVmN5gZXHJ-6Oiw ]
View Original