Better HN
topnewbestaskshowjobs
Log inSign up

lkuty

254 karma · joined Jan 6, 2010 (16y ago) · 218 submissions

Submissions

comment 2mo ago · link · parent

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.

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

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.

comment 4mo ago · link · parent

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.

comment 4mo ago · link · parent

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.

comment 4mo ago · link · parent

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.

comment 5mo ago · link · parent

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.

comment 7mo ago · link · parent

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.

comment 7mo ago · link · parent

L'oisiveté est la mère de tous les vices ;-) Which is a lie of course.

comment 8mo ago · link · parent

Rediscovering it through the Dafny programming language. Brings back memories of a 1994 University course.

comment 8mo ago · link · parent

"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 ?

comment 8mo ago · link · parent

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.

comment 9mo ago · link · parent

Like in the Dafny pogramming language. Cfr. https://www.youtube.com/watch?v=oLS_y842fMc

comment 9mo ago · link · parent

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

comment 9mo ago · link · parent

Yes. Go check https://en.wikipedia.org/wiki/Metric_prefix and also https://en.wikipedia.org/wiki/Binary_prefix if you want 1024 bytes.

comment 9mo ago · link · parent

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`.

comment 10mo ago · link · parent

Made me think of "How to do the jhanas" by Nadia Asparouhova: https://nadia.xyz/jhanas Cessation is impressive and the rest too.

comment 10mo ago · link · parent

"(...) 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.

comment 11mo ago · link · parent

Tsoding made a video about it : https://www.youtube.com/watch?v=0o8Ex8mXigU

comment 11mo ago · link · parent

Do you plan to share your solutions on Github or something similar ?

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

@YeGoblynQueenne Dunno if it will ping the person

comment 1y ago · link · parent

https://www.youtube.com/watch?v=ck9DjekcK4M Looks like there are 14 videos.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

I guess that `no snmp-server` is enough to be protected. Well, I hope so.

comment 1y ago · link · parent

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.
12345
8