News for hackers. Stuff that matters.

balencpp

Re:Bonsai: Janestreet's UI Library on Monday August 03, 2026 @09:11PM (#49163311)
Doesn't apply as much to Clojurescript due to it being dynamically typed and its flexibility. Sure, you often write a wrapper, but it's more of an abstraction and a good practice, not a necessity in cljs.
Re:The unexpected productivity boost of Rust on Friday August 29, 2025 @06:41PM (#45070222)
R.E. scaffolding in C#, with upcoming .NET 10, it's really simple: - Write code to myfile.cs - `dotnet run myfile.cs`

That doesn't need scaffolding either. And the standard library is huge too; you could even add dependencies in that file.

And since we're talking about RAD, Python can't even compare to Clojure. Having a separate REPL "server" that you interact with from your text editor with access to the JVM's ecosystem and standard library inside of a "living" environment and structural navigation from being a LISP is pure RAD. Heck, I often start a REPL "server" inside chrome's devtools with scittle[1] if I need to rapidly and programmatically interact with a website and/or to script something; I haven't been able to do that anywhere else. Even pure JS.

[1]: https://github.com/babashka/scittle

Re:The Fall of Roam on Monday May 19, 2025 @08:03AM (#44028901)
What are you implying by that?
So you make incrementing a counter a full page reload?
Re:.NET 9 Is Out on Thursday November 14, 2024 @08:16AM (#42135886)
They’re not mutually exclusive. Most of the large performance improvements are from .NET, the runtime and compilers. They’re not related to C#.
Re:.NET 9 on Wednesday November 13, 2024 @02:58AM (#42123819)
.NET has come to be a very solid, performant, cross-platform, productive runtime. I always come back to it for most projects. Thanks to everyone involved!
Re:Ask HN: Do you still use Java? on Tuesday November 12, 2024 @02:03PM (#42118517)
There is no lock-in to Microsoft in C#. It hasn't been like that for years, and it's only getting better. IDE wise, there is Rider, which is free now, and one of the best IDE experiences you will have in any language (I personally prefer using VSCode which also has great support nowadays despite its rough history).
Re:Why I love Rust for tokenising and parsing on Friday November 08, 2024 @02:19PM (#42089670)
Did you discover Scala 3 and give it a thought? I think of it as Rust with an _overall_ stronger type-system, but where you don't have to worry about memory management. It has an amazing standard library, particularly around collections. You get access to the amazing JVM ecosystem. And more. Martin Odersky in fact sees Scala's future lying in being a simpler Rust.

Also, regarding F#. It runs on .NET, and indeed, since the ecosystem and community are very small, you need to rely on .NET (basically C#) libraries. But it's really not "tied" to Microsoft and is open source.

Re:Why I love Rust for tokenising and parsing on Friday November 08, 2024 @02:07PM (#42089583)
I am genuinely curious too. .NET is a very mature, very performant runtime, and I think of F#, a beautiful, productive language, running on it a big pro. Perhaps things used to be different about/regarding Microsoft?
Their flagship models are available for free for everyone: aistudio.google.com. You have the option to enable "search grounding" to get the same thing as ChatGPT Search.
Re:Ask HN: What do you use Clojure for? on Tuesday October 15, 2024 @06:10PM (#41853628)
Offtopic: As an Iraqi Kurd, it's quite amazing (and surprising!) to find another Clojurian in Iraq. Also, the website looks and runs great!
Re:Why are people paying so much for Vercel? on Monday July 22, 2024 @01:36PM (#41037094)
When was the last time you tried C#? These days, it's as simple as getting dotnet and executing "dotnet new <template> -o MyNewProject" to make a new project. Then "dotnet run" or "dotnet watch". Also, the VSCode extension (with C# Dev Kit) is pretty good nowadays compared to other languages (I personally find it as good as rust-analyzer), but certainly not as good as Rider for enterprises; I mainly use VSCode in fact.
There are many screen recorders that do not show a "giant banner", and even if there weren't, it's ~200 LoC to implement an efficient screen recorder for Windows that's hidden.
Re:Gio UI – Cross-Platform GUI for Go on Sunday May 19, 2024 @02:36PM (#40408850)
If you mean windows, it has been so many years since .NET has been able to run on many different platforms; and by now, most of the ecosystem supports majority of platforms too..

You get an amazing runtime with near native performance, access to value types, no type erasure, access to low-level operations when utmost performance is needed, very good cross platform and architecture SIMD support, three different great IDEs with two of them being cross-platform, AoT compilation that keeps getting better, WASM target with a good framework (Blazor), and so on.

Modern .NET is truly amazing and highly undervalued IMO.

Re:Gio UI – Cross-Platform GUI for Go on Sunday May 19, 2024 @03:47AM (#40405096)
Why would you avoid .NET?
Re:Dart/Flutter now has macros/metaprogramming on Thursday February 01, 2024 @09:10AM (#39216066)
Some form of static typing != proper static typing. The 'static typing' from Python (and other previously dynamic languages) do not come close to Dart's; neither does Typescript's.

All forms of null-safety aren't the same. The ergonomics differ.

Huge ecosystem != good tooling. But indeed, Rust has good tooling. Doesn't mean you can compare Rust to Dart though.

Rust's compile-time is improving, but why are we bringing in future items for comparison?

Besides the 'correctness' issues, all of the issues that blogpost mentioned were fixed back then ASAP. Most of it arise from the usage of @inbounds, which to be fair, the documentation clearly tells you its usage is unsafe. Is it bad there were unrealized bugs in the official example? Yes. Did it get fixed immediately once reported? Yes. Mistakes happen everywhere else. I don't like the stance the blogpost took at all, and I find it quite misleading as it falsely implies Julia is bug-ridden. Personally, the number of bugs I've faced in Python is far more than the ones I've run into in Julia.
I think the implication is that @inbounds turns out of bound memory accesses into undefined, silent behavior, which can stay hidden and cause weird bugs later on. Out of bounds without using @inbounds leads to an exception indeed.
Re:Ask HN: Is there a technology you loved but had to abandon? on Thursday September 28, 2023 @06:43PM (#37696908)
I think Elixir is doing quite well now. It's by no means mainstream, but it's also not in the same category as Clojure; it's on a slow,steady positive trajectory.
Re:Async Rust Is A Bad Language on Friday September 22, 2023 @04:17AM (#37609348)
Yup. I think it's because Elixir has powerful LISP-like meta-programming facilities that it allows the seamless communication Rustler and Zigler provide. I haven't seen anything as good as Rustler for Python despite its popularity.
Re:Organic Maps on Friday September 01, 2023 @06:43AM (#37349037)
"Our sponsors - Mythic Beasts ISP provides us two virtual servers with 400 TB/month of free bandwidth to help our users with maps downloads and updates."

On their github README.md.

Re:How Mojo gets a 35,000x speedup over Python – Part 2 on Thursday August 31, 2023 @03:56PM (#37342858)
A lot of ugly,unreadable code has come into existence because of the need to twist it into NumPy calls. If you can replace these with good old for loops and achieve similar performance, then you've already won. Besides that, there are a lot of code that involves looping that isn't matrix multiplication or covered by NumPy.