Hacker Newsnew | past | comments | ask | show | jobs | submit | rangerelf's commentslogin

Have you tried Nim? Strong and static typed, versatile, compiles down to native code vía C, interops with C trivially, has macros and stuff to twist your brain if you're into that, and is trivially easy to get into.

https://nim-lang.org


That looks very interesting. The code samples look like very simple OO/imperative style code like Python. At first glance it's weird to me how much common functionality relies on macros, but it seems like that's an intentional part of the language design that users don't mind? I might give it a try.


Not disagreeing, just a question: if you were to catch it, would you stay inside until you're healthy again and not a danger to others?


Yes, that or wear a well-fitted n95 mask and limit exposure as much as possible. Wouldn’t you?


Yes, but that's unrelated to the vaccine question.


It's not just its age, it's how easy it is (was?) to jump in and start writing useful code that could be revisited later on and be able to read it and understand it again.

All of these efforts to turn it into another Typescript are going to, in the end, kill the ease of use it has always had.


I kind of object to this take.

Nobody's talking about porting billions of lines of code, for all we know it's just for personal projects, or a learning experience.

This kind of replies is like killing an idea before it's even started, smells like the sunk cost fallacy.

OTOH I do understand the weight of a currently existing corpus in production, evidence is the ton of COBOL code still running. But still, your reply kind of sucks.


> Nobody's talking about porting billions of lines of code, for all we know it's just for personal projects, or a learning experience.

am i the only person in the room that can read tone? please tell me what is the force of this statement in what i've responded:

> If you want static compilation, use a language and libraries built with that assumption as a ground rule.

is this an imperative only for hobbyists? not sure.

> This kind of replies is like killing an idea before it's even started, smells like the sunk cost fallacy.

there is no idea - that's exactly my whole point. tear it down and build it again is not an idea.


I was looking for someone else that had done this, I had the same exact experience.

That said, anyone looking into a completely static typed language that has nice ergonomics, is easy to pick up but has enough depth to keep you busy for weeks on end, and is versatile enough to be used for anything, do yourself a favor and give Nim a try.

https://nim-lang.org/


You're not wrong.

I've seen so many things announced that make me ask myself "But, why?".


If only you'd bothered to quote the rest of the sentence:

"Android-like touch screen UI with gestures"

Could have used also "IPad-like..." or "IPhone-like..." and it would have meant basically the same. Maybe author is more familiar with Android?

PS: What's with all the outrage manufacturing?


What if the text is already in a [string] buffer?


StringIO can help, .rstrip() for the sibling comment.


You're being willfully dense, I do not believe it's up for debate.

Governments that public force to kidnap, torture, murder, "disappear" their own citizens, are bad. Plenty of examples to go around, both historically and currently: China, Russia, México, North Korea, Belarus, the balcans, plenty of African governments, etc.

It shouldn't matter that "34% of my neighbors" want me sent to a concentration camp, personally I wouldn't want to end up there.

The example you're giving, the whole "it really depends on people's views, ..." is a bad government.

And the truth is that it's easy to be a good government: don't be bad.

Edit: fixed a word.


Ok, so how do you categorise a country like Norway (typically viewed as a "good" country by most people) which knowingly invests money from its sovereign fund into companies which are linked to the Israeli military which (in many people's view) is currently causing genocide and widespread starvation?

At what point does the "good" cross over into the "bad"? Is it ok that having a highly regarded government comes at the price of dead children? How about the sizeable group of people (e.g. in the US and Israel) who don't believe there is any genocide at all? Doesn't that make the whole thing subjective?


No.. If one follows that absolutism then people deserve nothing better than the worst government anyway because of social slippery slopes like the popular worship of Charles Manson.

There are obviously a lot of dimensions and clusters within those dimensions and we can't always say exactly which nationalist fascists to beat to death with hammers for the global good, but we can say Norway is a bit removed from them.


If you go by examples like that then there are a number of nations you cannot support at all - consider for example that China has the Uyghur concentration camps, US has Guantanamo Bay and now the new prisons in partnership with El Salvador. Belgium got away scottfree with their genocide in Africa, Turkey carried out a genocide in Armenia, France still collects fines from its previous colonies etc.


You’ve got quite a list of examples there. In 2025 that list of examples should include the US and Israel


Try earlier than that for the US:

>In 2015, the Guardian revealed Chicago Police had allegedly employed torture and days-long unlawful detention at the secretive “black site”-like Homan Square facility

And the federal government knew and participated.

>“When we’re doing joint operations with the federal government, it’s generally — it’s under the supervision of an Assistant U.S. Attorney and they’re merely using our facility because it’s more convenient."

https://thegrayzone.com/2025/03/15/feds-used-chicago-black-s...


Because, nature in its infinite wisdom, gets rid of what's not used.

You don't use your muscles? They atrophy. You don't make an effort to travel without a gps regularily, to force your brain to remember your way around naturally? Your spatial memory atrophies and becomes useless [here: https://www.nature.com/articles/s41598-020-62877-0 ]

People don't need to learn math anymore, hence, no more calculus lessons? People are literally becoming idiots who can't calculate simple change at the cash register without pulling out their calculators.

It's exercise. It keeps the brain itself from atrophying. It stops you from becoming a "wetware LLM" that's just parroting whatever echo of a thought (natural or otherwise) goes through it.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: