Readit News logoReadit News
tmtvl commented on The choice between Rust and C-derived languages is not only about memory safety   bbuyukliev.blogspot.com/2... · Posted by u/bluetomcat
teleforce · a day ago
>None of this means Rust is "bad" or that C is "better". It means they optimise for different values. Rust optimises for correctness and maintainability under heavy abstraction. C optimises for transparency and minimalism under extreme constraints.

>Sometimes you don't want a language that keeps you safe. Sometimes you want one that simply gets out of your way.

D lang is a wonderful Goldilocks in this regard between C and Rust. It has D-as-better-C [1]. There's no head scratching macro, excellent meta programming, bare metal programming and fast compile time and run time [2]. The programming syntax is very intuitive with UFCS [3].

[1] Better C:

https://dlang.org/spec/betterc.html

[2] Ask HN: Why do you use Rust, when D is available? (255 comments):

https://news.ycombinator.com/item?id=23494490

[3] Function:

https://dlang.org/spec/function.html

tmtvl · 18 hours ago
> UFCS

Uniform Function Call Syntax seems neat, but is it really uniform? In other words, can you call a random method defined on a class via method(class, parameters)? Or are some things more uniform than others?

tmtvl commented on Pop_OS 24.04 LTS with COSMIC desktop environment   blog.system76.com/post/po... · Posted by u/onnnon
dontlaugh · 2 days ago
What’s wrong with Gnome’s multi monitor support? My two monitors even have different pixel density.
tmtvl · 2 days ago
Can't switch between workspace 1 and 2 on my right monitor while leaving my left one on workspace 3. In fact, I believe by default I wouldn't even get workspaces on my secondary monitor. Because who needs 'organization' anyway?
tmtvl commented on Pop_OS 24.04 LTS with COSMIC desktop environment   blog.system76.com/post/po... · Posted by u/onnnon
foxheadman · 2 days ago
I used to hear about COSMIC and think "Glad to see more choice, but I doubt this will go anywhere".

I wanted a Sway-like experience but with a desktop experience, and so tried it.

It's surprisingly good: a DE with powerful enough window tiling.

It's now my daily driver.

Since they're backed by a sole company, I'm still not convinced on their longevity, but remain hopeful!

I'm not familiar with Pop OS, which I now realise is what the post is.

tmtvl · 2 days ago
I hard bounced off COSMIC with the complete lack of theming. I can't even set my clock to a reasonable format in it. The only thing it has going for it is sane multi-monitor support, which neither KDE nor GNOME have gotten right so far (though at KDE there is some activity around it, dunno 'bout GNOME).
tmtvl commented on Common Lisp, ASDF, and Quicklisp: packaging explained   cdegroot.com/programming/... · Posted by u/todsacerdoti
mtdewcmu · 3 days ago
Racket has packages (1) that work quite well. Chicken Scheme has Eggs.

(1) https://docs.racket-lang.org/pkg/index.html

tmtvl · 2 days ago
Eggs? Goodness. And I believe Chicken is R5RS as well, so I don't know what they call libraries/modules/packages/whatever (in R6RS and R7RS they're called libraries, but R5RS didn't specify anything). I expect Racket to call them libraries considering the Racket/R6RS connections.
tmtvl commented on Sid Meier: More Than Just Civilization   boilingsteam.com/sid-meie... · Posted by u/ekianjo
tmtvl · 3 days ago
When I think Sid Meier I think SimGolf, because that's the first game bearing the Sid Meier name I can remember playing. Pirates, Civilization, Colonization, Alpha Centauri, Covert Action,... all of them I discovered later on. And I have to say Civ 2 is probably my favourite of the lot.
tmtvl commented on Common Lisp, ASDF, and Quicklisp: packaging explained   cdegroot.com/programming/... · Posted by u/todsacerdoti
stackghost · 3 days ago
The packaging story in common lisp is.... Not great.

It's hamstrung by archaic naming conventions that confuse newcomers. What CL calls a system is roughly analogous to what most other languages call a package. What CL calls a package is what other languages call a namespace.

Despite all that it's a pretty good language if you can find libraries for what you need. The de facto standard implementation (sbcl) has a very good compiler and an acceptable GC. The language itself is expressive and it makes for very quick and pleasant DX. I love writing common lisp.

tmtvl · 3 days ago
> * What CL calls a system is roughly analogous to what most other languages call a package.*

Or a crate, or an artifact, or a module, or a gem, and there's probably other variations I can't remember off-hand.

> * What CL calls a package is what other languages call a namespace.*

Or a module, or a package, or... actually, I don't know what Perl or Ruby call it. I believe C calls it a header, but that's not quite the same thing as a package.

Turns out naming things is difficult (as well as cache invalidation, off-by-one errors concurrency, and).

tmtvl commented on Common Lisp, ASDF, and Quicklisp: packaging explained   cdegroot.com/programming/... · Posted by u/todsacerdoti
marcrosoft · 3 days ago
Last time I checked quicklisp also didn’t support https and doesn’t do any signature checking.
tmtvl · 3 days ago
Indeed, while you can use ql-https for, well, HTTPS, it's not the easiest thing to install (especially if you want to put everything somewhere else than ~/common-lisp/) and adding other distributions (like, say, Ultralisp) is a bit finicky.
tmtvl commented on Common Lisp, ASDF, and Quicklisp: packaging explained   cdegroot.com/programming/... · Posted by u/todsacerdoti
tmtvl · 3 days ago
Quicklisp is great, it's the defacto standard, but compared to OCICL it kinda feels ancient. There's also CLPM, but last time I checked it was broken by a combination of dead links and missing functions.
tmtvl commented on Valve: HDMI Forum Continues to Block HDMI 2.1 for Linux   heise.de/en/news/Valve-HD... · Posted by u/OsrsNeedsf2P
devmor · 4 days ago
"Just don't support the majority of consumer displays" isn't really an acceptable solution for an organization attempting to be a player in the home entertainment industry.
tmtvl · 3 days ago
Aren't DP-HDMI adapters good enough for the majority of consumers? On my ancient (2017) PC with integrated graphics I can't tell a difference between the DP out vs the HDMI out.

u/tmtvl

KarmaCake day3091September 11, 2022
About
Mantis fist practitioner living in Belgium. Daily driving GNU/Linux since 2012. Interested in C, Scheme, Lisp, Perl, and Java.

Reach me at tmt_vdl@gmx.com.

View Original