HNHacker News
TopNewBestAskShowJobs

lkuty

254 karma · joined January 6, 2010

submissionscomments
lkuty··on Anecdotally, programmers dislike "reduce"
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.
lkuty··on Finite State Machines in Forth (1994)
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.
lkuty··on Sao Paulo resident transforms degraded area into urban forest
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.
lkuty··on A Road to Lisp: Which Lisp
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.
lkuty··on A Road to Lisp: Which Lisp
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.
lkuty··on Structure and Interpretation of Computer Programs Video Lectures (1986)
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.
lkuty··on Elixir v1.20: Now a gradually typed language
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.
lkuty··on Brussels launched an age checking app. Hackers took 2 minutes to break it
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.
lkuty··on The Importance of Being Idle
L'oisiveté est la mère de tous les vices ;-) Which is a lie of course.
lkuty··on Tony Hoare has died
Rediscovering it through the Dafny programming language. Brings back memories of a 1994 University course.
lkuty··on Reverse-engineering the UniFi inform protocol
"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 ?
lkuty··on I'm reluctant to verify my identity or age for any online services
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.
lkuty··on Some silly Z3 scripts I wrote
Like in the Dafny pogramming language. Cfr. https://www.youtube.com/watch?v=oLS_y842fMc
lkuty··on Lessons you will learn living in a snowy place
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
lkuty··on 1 kilobyte is precisely 1000 bytes?
Yes. Go check https://en.wikipedia.org/wiki/Metric_prefix and also https://en.wikipedia.org/wiki/Binary_prefix if you want 1024 bytes.
lkuty··on Time Machine-style backups with rsync (2018)
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`.
lkuty··on Presence in Death
Made me think of "How to do the jhanas" by Nadia Asparouhova: https://nadia.xyz/jhanas Cessation is impressive and the rest too.
lkuty··on The recurring dream of replacing developers
"(...) 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.
lkuty··on Creating C closures from Lua closures
Tsoding made a video about it : https://www.youtube.com/watch?v=0o8Ex8mXigU
lkuty··on Advent of Code 2025
Do you plan to share your solutions on Github or something similar ?
lkuty··on The surprising benefits of giving up
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.
lkuty··on The surprising benefits of giving up
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.
lkuty··on Learn Prolog Now (2006)
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.

lkuty··on Learn Prolog Now (2006)
@YeGoblynQueenne Dunno if it will ping the person
lkuty··on Control structures in programming languages: from goto to algebraic effects
https://www.youtube.com/watch?v=ck9DjekcK4M Looks like there are 14 videos.
lkuty··on Rouille – Rust Programming, in French
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.
lkuty··on Asbestosis
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.
lkuty··on Poison, Poison Everywhere
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.
lkuty··on As many as 2M Cisco devices affected by actively exploited 0-day
I guess that `no snmp-server` is enough to be protected. Well, I hope so.
lkuty··on Bookmarks.txt is a concept of keeping URLs in plain text files
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.
Page 1 of 8Next →