News for hackers. Stuff that matters.

lkuty

Re:Anecdotally, Programmers Dislike "Reduce" on Thursday September 17, 2026 @01:36AM (#49736784)
Not in Elixir. Unless you use tail recursion to simulate the loop. I love reduce and the other functions of the Enum module, so I have 165 calls to reduce in my code base (plus 338 map and 116 filter). It's the swiss army knife of functional programming and I don't see any problem with its usage.
Re:Finite State Machines in Forth (1994) on Friday August 14, 2026 @09:32AM (#49298450)
With TCO, a state transition is implemented just as a function call. I find it very elegant and see TCO as great bonus in programming languages.
I am happy I always read some HN comments before clicking on the OP link. I can save time. We should plant trees everywhere in the world, that's one of the great thing we can do for this planet and thus for us.
Re:A Road to Lisp: Which Lisp on Monday July 27, 2026 @03:29AM (#49066178)
And also doing the exercises of The Scheme Programming Language 4th at the same time to refresh my Scheme knowledge. Using DrRacket as an IDE with the line `#!r6rs` to avoid using the Racket language.
Re:A Road to Lisp: Which Lisp on Tuesday July 21, 2026 @06:15AM (#48990305)
I also have started doing SICP recently with Racket and `#lang sicp`. Sometimes I skip some exercises and will come back to them at a later time. It allows me to choose when to advance reading the text or make the exercises. So far in section 3.1.3. Discovered MIT Scheme in 1996 at university, got plenty of scheme books for years including SICP, and each year telling myself that I should do this classic. I am reading the pdf version of https://github.com/sarabander/sicp because it is more practical than using the paper book. Recently I bought the instructor's version of the book.
I don't think it is necessary to avoid Racket since "The language #lang sicp provides you with a version of R5RS (the fifth revision of Scheme) changed slightly in order for programs in SICP to run as is." DrScheme is great for this and probably the easiest way to start.
Re:Elixir v1.20 released: now a gradually typed language on Thursday June 04, 2026 @01:53AM (#48394557)
But then you have all the Erlang libraries for free which is huge. And you add to them the Elixir libraries and that gives you a lot of stuff, just like you get with languages with rich libraries e.g. Java, Ruby, ... I find it reassuring.
Being belgian I thought that the city of Brussels did something. Using the term EU is more precise I guess in this case. For us, Brussels is just a town in our country, not the EU or representing the EU.
Re:The Importance of Being Idle on Friday April 10, 2026 @10:31AM (#47718747)
L'oisiveté est la mère de tous les vices ;-) Which is a lie of course.
Re:Tony Hoare has died on Tuesday March 10, 2026 @12:39PM (#47325637)
Rediscovering it through the Dafny programming language. Brings back memories of a 1994 University course.
Re:Reverse-engineering the UniFi inform protocol on Tuesday March 10, 2026 @06:37AM (#47321435)
"The whole proxy is maybe 200 lines of Go with an in-memory MAC-to-tenant lookup table." Is it possible to have the source code or is it private ?
This is exactly what I am feeling (the title, didn't read). I can't see why I would give a copy of my official id card or a picture of my face to a basic service on the Internet. Seriously ? They do not deserve it. Even my phone number is too much but well Google has it now.
Re:Some silly Z3 scripts I wrote on Friday February 27, 2026 @07:43AM (#47179871)
Like in the Dafny pogramming language. Cfr. https://www.youtube.com/watch?v=oLS_y842fMc
Re:Lessons you will learn living in a snowy place on Thursday February 12, 2026 @04:02AM (#46986458)
I realized this when I was on vacation in the french alps in summer time and saw a place dedicated for snow storage and labeled as such. I was "what ???" and then the penny dropped and I was impressed by that notion of having to store the snow somewhere since it does not disappear by itself. Funny
Re:Kilobyte is precisely 1000 bytes on Wednesday February 04, 2026 @05:40AM (#46884130)
Re:Time Machine-style Backups with rsync (2018) on Monday February 02, 2026 @07:57AM (#46855506)
Yes, I do not trust TM. That's why I have both a backup with TM for convenience and also to have all the files (including system files), and a mirror of the important files (basically my home directory) with `rsync`.
Re:Presence in Death on Friday January 23, 2026 @12:51PM (#46735451)
Made me think of "How to do the jhanas" by Nadia Asparouhova: https://nadia.xyz/jhanas Cessation is impressive and the rest too.
Re:The recurring dream of replacing developers on Sunday January 18, 2026 @12:59AM (#46665185)
"(...) maybe growing vegetables or using a Haskell package for the first time, and being frustrated by how many annoying snags there were." Haha this is funny. Interesting reading.
Re:Creating C closures from Lua closures on Tuesday December 16, 2025 @07:49AM (#46287856)
Tsoding made a video about it : https://www.youtube.com/watch?v=0o8Ex8mXigU
Re:Advent of Code 2025 on Sunday November 30, 2025 @10:02AM (#46097188)
Do you plan to share your solutions on Github or something similar ?
Re:The Surprising Benefits of Giving Up on Tuesday November 18, 2025 @04:38AM (#45963114)
Since my mother tongue is french, I guess I didn't choose the proper english word. In the context of an attack we sometimes see the "fight or flight" response. But I don't know what is the best term to translate "fuite" in this context.
Re:The Surprising Benefits of Giving Up on Tuesday November 18, 2025 @02:09AM (#45962235)
This reminds me of Henri Laborit's book entitled "Eloge de la fuite" (in praise of flight) which states that when faced with stress, we can respond with action, flight, or inaction. Unlike the other two responses, inaction is toxic to the body. Maybe giving up corresponds to flight. I didn't read the article.
Re:Learn Prolog Now on Thursday November 13, 2025 @03:20PM (#45920002)
I only read the first 88 pages of Prolog Programming in Depth but I found it to be the best introductory book for programming in Prolog because it presents down to earth examples of coding like e.g. reading a file, storing data. Most other books are mainly or only focused on the pure logic stuff of Prolog but when you program you need more.

Another way of getting stuff done would be to use another programming language with its standard library (with regex, networking, json, ...) and embed or call Prolog code for the pure logic stuff.

Re:Learn Prolog Now on Wednesday November 12, 2025 @01:40PM (#45904054)
@YeGoblynQueenne Dunno if it will ping the person
Re:Rouille – Rust Programming, in French on Friday October 31, 2025 @05:59AM (#45770207)
Haha the translation is so funny. But I confess, as a native french speaker, I could not code in that language. It is so weird because I am used to english for coding now. Sometimes I write my variable names in french and I think I even used accented letters one time. What is worse, is that I tend to mix english and fench variable names in my code, but anyway english is way more common in the code base.
Re:Asbestosis on Monday October 27, 2025 @04:32AM (#45718569)
I think the median is better than the average because high salaries (outliers) will skew the average upwards. So now I am wondering what is the median salary and how it compares to the average.
Re:Poison, Poison Everywhere on Monday October 27, 2025 @03:54AM (#45718379)
This raises the interesting point of finding a balance between knowing/searching and letting go when it comes to health. Lead is a major one but obession about health can lead to anxiety, stress. I think that finding the major factors that affect health is what matters (sunlight, sleep, walking, cooking with stainless steel, etc.) and letting go of all the minor details. This is an issue that has been close to my heart for years, and my perspective on it has changed over time. Anxiety can be a real problem.
I guess that `no snmp-server` is enough to be protected. Well, I hope so.
I think that is a good idea to keep URLs as text. I use the Tab Session Manager extension which allows me to export saved sessions (title, URL, with a little bit of extra stuff) as text (json actually, a little bit too verbose) and I also use Eagle Filer to save entire web pages, just in case it disappears from the web, which happens quite regularly. What I want is the title of the web page associated with its URL and maybe extra keywords. I don't use classic browser bookmarks much anymore.

Older »