wr
hn
Top
New
Best
Ask
Show
Jobs
Back
l
lkuty
Joined 17 years ago
Karma
254
Submissions
218
Member since
Jan 6
View on Hacker News
Recent submissions
Comment · 1 month ago
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 · 2 months ago
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 · 2 months ago
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 · 3 months ago
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 · 3 months ago
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 · 3 months ago
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 · 5 months ago
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 · 6 months ago
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 · 6 months ago
L'oisiveté est la mère de tous les vices ;-) Which is a lie of course.
Comment · 7 months ago
Rediscovering it through the Dafny programming language. Brings back memories of a 1994 University course.
Comment · 7 months ago
"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 · 8 months ago
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 · 8 months ago
Like in the Dafny pogramming language. Cfr.
https://www.youtube.com/watch?v=oLS_y842fMc
Comment · 8 months ago
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 · 9 months ago
Yes. Go check
https://en.wikipedia.org/wiki/Metric_prefix
and also
https://en.wikipedia.org/wiki/Binary_prefix
if you want 1024 bytes.