News for hackers. Stuff that matters.
[dead]
Re:Cello – High Level C by ricardobeat on Saturday March 05, 2022 @10:57AM (#30568560)
Are you seriously proposing banning posts about an experimental programming language because you think it is harmful? This radicalization is one of the most concerning issues with today’s society.
Re:Cello – High Level C by asveikau on Saturday March 05, 2022 @12:26PM (#30569575)
"Experimental programming language" is a huge stretch for this thing.

I think you need to understand a bit of some C subcultures to get this reaction. C more than other communities is about best practices to achieve certain goals like portability, stability, security, maintainability, etc. These best practices are often restrictive, or advocate cautious use of language features. Cello breaks a lot of these rules, sometimes haphazardly, and no experienced C person would advocate for some of those hacks.

But what ends up in the HN comment thread is a largely unfamiliar-with-C-culture looks at the README and comes away with the impression that this is an accessible way to learn C, which it is not.

Re:Cello – High Level C by ricardobeat on Saturday March 05, 2022 @12:44PM (#30569806)
They can advocate as much as they want, but there is nothing to understand - censorship is not justified in this context.
Re:Cello – High Level C by asveikau on Saturday March 05, 2022 @01:08PM (#30570086)
I'm explaining why people would say this is a poor, even irresponsible introduction to the topic. "Nothing to understand", "censorship" are extreme reactions. It's a good idea to understand criticism before dismissing it.

To take an extreme example... If a medical textbook had some strange and nonstandard information, and doctors said it should not be published because it advocates poor health outcomes... Is that "censorship"?

Re:Cello – High Level C by eternityforest on Saturday March 05, 2022 @03:15AM (#30565515)
How does this perform on larger embedded systems where you have a fair amount of memory but no Rust toolchain with good support?

Could it possibly be useful there?

I suspect just using a tiny Lua/JS/Python would be better but maybe in some super niche case this could have a use. Probably not though.

Re:Cello – High Level C by auxym on Saturday March 05, 2022 @07:24AM (#30566901)
Nim compiles to C and therefore should be able to run on anything which has a C compiler available.

To my knowledge it's been demonstrated on AVR, ARM Cortex-M and ESP32.

It's macro system comes in handy for embedded, too, as you can precompute so much stuff at compile time.

Re:Cello – High Level C by eternityforest on Saturday March 05, 2022 @04:01PM (#30571827)
Oh yeah, I forgot about that awesome Nim feature. Kinda surprised Nim isn't 10x bigger than Zig and Go
Re:Cello – High Level C by anta40 on Saturday March 05, 2022 @08:48PM (#30574171)
Why comparing Zig with Nim, though?

I think Nim has quite nice standard library and production-ready. Zig, on the other side, is still highly experimental.