HNHacker News
TopNewBestAskShowJobs

ronenlh

275 karma · joined May 28, 2015

submissionscomments
ronenlh··on Functorio
His talk about this is great: https://youtu.be/A46KQtriYuM
ronenlh··on I moderate /r/kafka; people mistake it as a subreddit about kafka the product
This also happens for language keywords. Apple used to have the NS prefix and removed it in Swift. It was easier to search for NSString than it is for String.
ronenlh··on Only 90s web developers remember this (2014)
It’s referenced in the 1x1 gif, all website layout was made with tables. And the 1x1 gif allowed to set very narrow columns/rows, which could be made to look like borders, with images as the round corners.

Also the ubiquitous visitor counter, uploading assets with ftp, cgi-bin, styling in html, animated gifs, midi soundtracks, “in construction” signs, random links to pages the “webmaster” liked.

ronenlh··on No, the real inflation rate isn’t 15 percent
Sometimes inflation is not reflected in a price increase, but in the reduction of quality (e.g. longer waiting times).

There was a thread about it recently: https://news.ycombinator.com/item?id=29062736

ronenlh··on In the 17th century, Leibniz dreamed of a machine that could calculate ideas
Yes, I first read about Leibniz’s machine from the wikipedia page on the Entscheidungsproblem.

The research on this problem eventually led to the invention of Lambda calculus and the Turing machine (formal languages for computing), which proved that such a project is impossible, as on some inputs they infinitely recurse and can’t output True or False.

https://en.wikipedia.org/wiki/Entscheidungsproblem

The source is Martin Davis, 2000, Engines of Logic

ronenlh··on Use forums rather than Slack/Discord to support developer community
Forums are the obvious right choice for a developer community. But chats feel friendly while forums are formal and cold.

Developers need a chat tool alongside the IDE. I was saddened when the ReasonML/ReScript community closed their chat for this reason.

ronenlh··on ScoopWhoop became one of India's most viral publishers
A little off topic. Why does HN trims the “how” from titles? It happened to me twice when pasting the title of a link submission. One needs to type it manually.

It might make the title less click-baity, but it's a completely different one.

ronenlh··on Ask HN: How is life without a smartphone?
Nice to read a solution through self reflection and meditation. This should be the default for anything.
ronenlh··on Ask HN: Best Alternative to Homebrew in 2021?
The thing I use and like most in nix is nix-shell.

I set up a shell.nix file on my projects, and together with direnv the environment switches with the right dependencies for each project.

Shameless plug, I wrote about this recently on medium: https://link.medium.com/cYkKMtdHRkb

ronenlh··on Ask HN: Best Alternative to Homebrew in 2021?
I started using nix. It’s difficult and search results are not often helpful.
ronenlh··on To learn a new language, read its standard library
Why is that wrong? A language can be multi-paradigm while the “official” documents are written in a specific style. Like human languages, they evolve with their use (or fork into another language completely), while the high literature is the last one to change.

Together with that, I agree that one should read the high literature before inventing a new writing style.

ronenlh··on What Books Should Everyone Read?
A good tip: finish (or begin) the books you have from the previous “must read” book list.
ronenlh··on Yamaha DX7 Technical Analysis
I love the overlap of Tech and music production.

By the way, if anyone is interested in a modern, affordable, nostalgic incarnation of the DX7, check the “reface” edition.

ronenlh··on A proposal for adding a pipe operator to JavaScript
I wrote about the pipe operator on ReScript (compiles to JavaScript), as well as its proposals in js here: https://link.medium.com/of6CK4nvvkb
ronenlh··on Every search bar looks like a URL bar to users
I had a computer illiterate boss once. He said “please understand it, I’m disabled”
ronenlh··on A web app that can play musical scales according to mathematical equations
It should play a Crash cymbal sound for every crash
ronenlh··on A web app that can play musical scales according to mathematical equations
It worked for me, I had to disable Silent Mode
ronenlh··on Building with Nix on Replit
You forgot the array ({ pkgs }) => ({ deps: [pkgs.cowsay] })

I also translate all nix to JavaScript in my brain

ronenlh··on Hacker News RSS
Not familiar with google reader and its impact on rss. Could you explain? Thanks

I tried many times to use rss but found the ecosystem to be terrible.

ronenlh··on Injecting environment variables into static websites using Nginx
I had to do exactly that in a large Angular project, dince there was no way to provide environment variables available at runtime.

Angular provides an environment mechanism at buildtime, so they expect us to create a docker image per environment, which is not our practice with other microservices in our pipeline. We’re used to kubernetes configMaps.

We used a docker docker runtime script + envsubst as above. However we used it to provide key/values to the window object (inside a template script tag), to be picked up by a proper Angular “AppConfig” service.

I’m not very happy with this solution as it might scare the next maintainers, specially if they don’t know about our ci/cd and backend. The source code is also peppered with little comments about this workaround, which is not ideal.

ronenlh··on Moiré No More
This article opened for me a Pandora's box of curiosity.

For anyone interested, this is an excellent introduction to some of the concepts: https://web.archive.org/web/20060210112754/http://cns-alumni...

Fourier analysis is currently used in "Image processing to remove periodic or anisotropic artifacts such as jaggies from interlaced video, strip artifacts from strip aerial photography, or wave patterns from radio frequency interference in a digital camera."

Also, "JPEG compression uses a variant of the Fourier transformation (discrete cosine transform) of small square pieces of a digital image. The Fourier components of each square are rounded to lower arithmetic precision, and weak components are eliminated entirely, so that the remaining components can be stored very compactly. In image reconstruction, each image square is reassembled from the preserved approximate Fourier-transformed components, which are then inverse-transformed to produce an approximation of the original image."

Source for both quotes: https://en.wikipedia.org/wiki/Fourier_analysis

ronenlh··on A notable JavaScript developer shamelessly copied one of my most downloaded nod
There’s a discussion about this in GitHub: https://github.com/babel/babel/pull/13783
ronenlh··on Functional programming is not popular because it is weird (2016)
> If Netscape had decided to use a Scheme-like language or a BASIC-like language it would still be the most popular language in the world.

Brendan Eich advanced a Scheme-like scripting language for Netscape, which got a facelift from Java’s popularity.

“Scheme was the bait I went for in joining Netscape. Previously, at SGI, Nick Thompson had turned me on to SICP.”

“The diktat from upper engineering management was that the language must “look like Java”.“

“I’m happy that I chose Scheme-ish first-class functions”

JS actually made a few functional concepts mainstream, such as first-class and anonymous functions, and callback patterns.

Source: https://brendaneich.com/page/5/

ronenlh··on Weird Languages
I new to this opinion, but I think more people should try to write non-trivial things in the Hindley-Milner family of languages. Just to get out of the rut.
ronenlh··on Noam Chomsky – Startup Culture (2015) [video]
Ayn Rand dramatized this in Atlas Shrugged. They also want regulations which hinder competition.
ronenlh··on Practical introduction to algebraic datatypes (ADTs) in TypeScript
The Sum is called Union in the TypeScript docs, as it narrows the valid values to the overlapping elements.

In the switch statement it becomes a Sum value (as shown in the article).

In ReScript (shown as well, which uses OCaml under the hood) the syntax is that of a Variant, in which each element is a different nominal type.

ronenlh··on Interactive introduction to game theory and trust
Another thing that the game emphasized (based on the 1984 book “the Evolution of Cooperation“) is how misunderstandings increase mistrust. The Web is full of misunderstandings.

The other takeaway is to foster Win-win situations as opposed to zero-sum games.

ronenlh··on Show HN: Makeai.art – Create Art from a Description
I would make all creations public by default, and have a gallery area. This would add to my trust in what the 0.99$ does, as well as be cool on its own.
ronenlh··on Please, enough with the dead butterflies (2017)
“live butterflies don’t look like butterflies in pictures, you gotta use dead ones” is like in the Simpsons: “Cow's don't look like cows on film. You gotta use horses.”
ronenlh··on An app for M1 Macs that plays the sound of a fan as CPU usage goes up
Excellent idea. Adding audible feedback to the runtime is an effortless way to know what’s going on under the hood. I submitted a post about this concept last week:

https://news.ycombinator.com/item?id=27808113

In it I add midi sounds to the system handlers from nodejs’ event loop.

← PreviousPage 2 of 3Next →