Readit News logoReadit News
unstruktured commented on My fast zero-allocation webserver using OxCaml   anil.recoil.org/notes/oxc... · Posted by u/noelwelsh
seanhunter · a month ago
Looks like 100% idiomatic normal OCaml to me.
unstruktured · a month ago
Technically you are right but too much mutation for my tastes and probably many other ocaml developers.
unstruktured commented on KDE is now my favorite desktop   kokada.dev/blog/kde-is-no... · Posted by u/todsacerdoti
topspin · 6 months ago
> For many years now KDE has focused on polish, bug fixing and "nice-to-have" improvements rather than major redesigns, and it paid off.

It has. I believe this is a consequence of the 4.x debacle 18 years ago. KDE was doing great in the 3.x release, capturing a lot of users, and then everything went sideways with 4.x.

They recovered: by the later releases of 4.x most of the problems were fixed and 4.x was entirely livable. The KDE developers learned a hard lesson and have been very conservative since then. Since the release of Plasma (5.x) in 2014, KDE hasn't self-inflicted any great regressions or misfeatures, and now there is 10+ years of "polish."

It is very nice.

I too have used the "Window Rules" mentioned in the blog post. Very useful for game development where you want certain windows to appear at precise locations on different displays every time, day after day, for years. KDE just gives you features like this, whereas this is considered unnecessary elsewhere.

unstruktured · 6 months ago
18 years ago? Holy crap I feel old. I remember how disruptive the very stable 3 to completely unstable 4 was.
unstruktured commented on OCaml as my primary language   xvw.lol/en/articles/why-o... · Posted by u/nukifw
noelwelsh · 7 months ago
I saw a talk by someone from Google about their experiences using Rust in the Android team. Two points stuck out: they migrated many projects from Python, so performance can't have been that much of a concern, and in their surveys the features people liked most were basics like pattern matching and ADTs. My conclusion is that for a lot of tasks the benefit from Rust came from ML cicra 1990, not lifetimes etc. I feel if OCaml had got its act together around about 2010 with multicore and a few other annoyances[1] it could have been Rust. Unfortunately it fell into the gap between what academia could justify working on and what industry was willing to do.

[1]: Practically speaking, the 31-bit Ints are annoying if you're trying to do any bit bashing, but aesthetically the double semicolons are an abomination and irk me far more.

unstruktured · 7 months ago
There is absolutely no reason to use double semicolons in practice. The only place you really should see it is when using the repl.
unstruktured commented on A different take on S-expressions   gist.github.com/tearflake... · Posted by u/tearflake
phoe-krk · 9 months ago
Lisp programmer here.

Traditional S-expressions, by their definition, ignore most of whitespace; additionally, reading sexprs is always a linear operation without the need to backtrack by more than one character.

The suggestion from this post violates both assumptions by introducing a 2D structure to code. To quote this post's examples, it requires the multiline string in

    (fst-atom """   trd-atom)
              00001
              00002
              00003
                """
to be fully read before TRD-ATOM. It also forces the reading function to jump up and down vertically in order to read the structure in

    * (                               )  
    *   e (           ) (           )    
    *   q   m (     )     p (     )     *
            u   a a       o   a 2       *
            l             w             *
The author also states that

    (eq (mul (a a)) (pow (a 2)))
is less readable than

    * (                                                  )  
    *   *eq* (                   ) (                   )    
    *          *mul* (         )     *pow* (         )     *
                       *a* *a*               *a* *2*       *
                                                           *
Then there's the ending passage:

> we hope that the introduced complexity is justified by the data readability expressed this way.

I cannot force myself to read this post as anything but a very poor Befungesque joke.

unstruktured · 9 months ago
Thanks for restoring my sanity. Was quite confused of the value added by the author.
unstruktured commented on Darklang Goes Open Source   blog.darklang.com/darklan... · Posted by u/stachudotnet
thesurlydev · 9 months ago
I've been following Dark since its inception and found the idea inspiring. I'm happy about today's announcements and look forward to seeing what comes next.

On a personal note, I'm curious around the move to F# as the implementing language and wonder if there will be ports to other languages now that it's open source.

unstruktured · 9 months ago
To F# from what previously?
unstruktured commented on Peer-to-peer file transfers in the browser   github.com/kern/filepizza... · Posted by u/keepamovin
eduction · a year ago
It still needs middle out compression imo
unstruktured · a year ago
"Uh...the answer's not in the box, it's in the band".
unstruktured commented on Nix – Death by a Thousand Cuts   dgt.is/blog/2025-01-10-ni... · Posted by u/jonotime
unstruktured · a year ago
I don't think he touched on whether server side is a more valid use case, but was nice to read someone elses take on using it for a desktop. Thanks for the contribution.

He did find functional programming to be sort of mystic so I don't know if I trust his take on assesing the nix language itself.

TLDR; just stick with ubuntu or arch unless you feel like experimenting

unstruktured commented on OpenAI to become for-profit company   reuters.com/technology/ar... · Posted by u/jspann
unstruktured · a year ago
I wish they would at least rename the company to "ClosedAI" because that's exactly what it is at this point.
unstruktured commented on Types as Interfaces   two-wrongs.com/types-as-i... · Posted by u/todsacerdoti
pydry · 2 years ago
I think there's a sharp rule of diminishing returns the stronger you make type systems. Type safety comes at a cost and that cost has to come with an associated payoff.

This is why ultra strong type systems end up being little more than academic toys - the payoff when you dial type safety up to an extreme doesn't match the associated cost.

Types and tests should meet somewhere in the middle because the same law of diminishing returns affects tests in reverse. They tend to be good at what the other is bad at and if you rely too heavily on one at the expense of the other they will start fraying around the edges.

unstruktured · 2 years ago
What, to you, is an ultra strong type system? Both OCaml and Haskell are used in plenty of non academic contexts. Do you mean something like Coq or F*?
unstruktured commented on The Software Crisis   wryl.tech/log/2024/the-so... · Posted by u/todsacerdoti
darioush · 2 years ago
If only they had unveiled the single unifying abstraction of everything :(
unstruktured · 2 years ago
Oh that's a solved problem since 1969. It's called "unix". Everything is a file which can be processed as a byte stream. Composition is a breeze- can't be any more general than that!

(I kid, mostly :)).

u/unstruktured

KarmaCake day88April 18, 2023View Original