News for hackers. Stuff that matters.

NIckGeek

Re:UnoDOS on Wednesday September 30, 2026 @04:19AM (#49905948)
I'm honestly shocked how dense the claudisms are here. Even the project description reads as Opus 5 vomit.
You can make a wrapper type that abstracts the offset lookup logic with a safe interface. If it's a transparent struct then rust will compile it away into nothing but you still get the abstraction in your code.
Re:Pixel 11 Pro Fold feels like the end of an era on Thursday August 20, 2026 @04:10AM (#49371787)
You really don't notice it while you're using a folding phone.
Re:"Don't You Just Upload It to ChatGPT?" on Saturday June 13, 2026 @02:18AM (#48513959)
The fundamental issue imo is that LLMs are trained to make believable outputs. They can be complete horseshit, but because they look plausible they get treated like quality.

I swear that the intensity and time I've had to take with code reviews has gone up because LLMs are so good at making flawed code look good. I assume the same goes for everything else we use LLMs for.

I don't think the issue is using declarative UI frameworks, it's that the rendering engines these frameworks are outputting to are not taking accessibility into account.
I feel like ARM wins over even a mobile x86 chip here, right? Like a base Mac Mini sounds ideal.
Re:AsciiMath on Saturday November 15, 2025 @10:42PM (#45942579)
I'm a big fan of AsciiMath and have been supporting it in my note taking program (MicroPad) since ~2016.

It was the key for me being able to write maths in a classroom/lecture theatre at the same speed (or faster) than those doing it by hand.

Re:The unexpected productivity boost of Rust on Wednesday August 27, 2025 @04:49PM (#45045055)
Couldn't you just pass a reference to your value (i.e. `&T`)? If you absolutely _need_ ownership the function you call could return back the owned value or you could use one of the mechanisms for shared ownership like `Rc<T>`. In a GC'd functional language, you're effectively getting the latter (although usually a different form of GC instead of reference counting)
Re:How (memory) safe is Zig? (2021) on Wednesday May 14, 2025 @12:08AM (#43980701)
> but in practice fails, because of pervasive use of `unsafe`.

Yes, in `unsafe` code typically dynamic checks or careful manual review is needed. However, most code is not `unsafe` and `unsafe` code is wrapped in safe APIs.

I'm aware C already has a runtime, this adds to it.

Re:How (memory) safe is Zig? (2021) on Tuesday May 13, 2025 @11:55PM (#43980633)
Fil-C is impressive and neat, but it does add a runtime to enforce memory safety which has a (in most cases acceptable) cost. That's a reasonable strategy, Java and many other langs took this approach. In research, languages like Dala are applying this approach to safe concurrency.

Rust attempts to enforce its guarantees statically which has the advantage of no runtime overhead but the disadvantage of no runtime knowledge.

Re:Translating 10M lines of Java to Kotlin on Saturday December 21, 2024 @09:35PM (#42484017)
fwiw in modern-Java they have data classes:

  record Foo(String theImplementationAndStyleOfDataClasses) {}
The string is final. While sadly there is no elvis operator, the Optional type helps:

  evlis.map(e->e.operator).map(e->e.chaining)
I still strongly dislike working in Java but Java 23 is a long way ahead of the Java 6 I first learnt Java with.
Re:Traveling with Apple Vision Pro on Thursday October 17, 2024 @04:19AM (#41867500)
You typically have to stop in LA, Singapore, or the UAE. The NZ -> Europe flights are brutal, and the trip back is typically even longer.
Re:Zed, a collaborative code editor, is now open source on Friday January 26, 2024 @05:32AM (#39141032)
About 70% of the programming I'm doing right now is in my own language. But like, my full time work is programming language research so I accept that's an uncommon use-case.
Re:Zed, a collaborative code editor, is now open source on Wednesday January 24, 2024 @09:41PM (#39125629)
I just tried Zed and it is definitely really pleasant to use. I'd need at least a Java LSP to use it for real (and preferably general LSP support so I can code in my own programming languages with it) but I can see a lot of promise. If they ship a Linux release so I could use it on my desktop too they could win me over from Sublime Text/IntelliJ.
Re:An Open-Source Espresso on Tuesday March 28, 2023 @04:40AM (#35337549)
There's a machine called the Meticulous which is launching a kickstarter soon which is attempting to somewhat do this. It's a lot simpler mechanically because it's just an automated lever machine (i.e. no pump).

The downside is no steam wand but tbh if I didn't already have a Decent DE1Pro I'd probably get a Meticulous or a Flair 58 and that new nanofoamer pro for milk.

Re:<3 Deno on Sunday February 12, 2023 @06:16PM (#34768223)
Node.JS and Deno are both running with V8. fetch() isn't part of the JS standard library, it's a Web API. Deno just made (the good imo) design decision to support WebAPIs over something more custom despite the fact that it's not a runtime for web apps.

Server-side WASM is the future for FaaS imo, sandboxing built in and an effective object-capability approach to dependency safety is amazing.

Re:Ask HN: What note taking websites/applcations do you use? on Friday October 14, 2022 @04:14AM (#33200895)
LaTeX inline maths is done inside ;;LaTeXCode;; or ''AsciiMathsCode''

More info on MicroPad Markdown is in the formatting guide in the help notebook.

Re:Ask HN: What note taking websites/applcations do you use? on Thursday October 13, 2022 @08:36PM (#33198325)
I made one called MicroPad a few years ago (https://getmicropad.com) and just launched v4 a few weeks ago.

It's pretty full of features and each note is an infinite whiteboard/canvas where you can embed elements anywhere (for example I go horizontally for tangents)

Re:Next steps for Rust in the kernel on Wednesday September 21, 2022 @10:16AM (#32925476)
I'd recommend learning Rust because the way Rust pushes you into writing code will lead you to write better C code, etc.

People that learn C or C++ first often end up fighting the Rust compiler a bit until they adjust their mindset.

Re:The case for bad coffee (2015) on Monday July 18, 2022 @12:02AM (#32134516)
There are many fair trade coffee's from local roasters where there is a minimum price for the green coffee for the farmers at the start of the chain.
Re:Lies we tell ourselves to keep using Golang on Friday April 29, 2022 @08:06PM (#31212032)
Rust is a general purpose programming language. It can do low level systems programming but it's also highly capable of doing web backends, web frontends (wasm), game design, small utility scripts, etc.

A big thing people learning Rust do my mistake is to try and use all of the low level features straight away. Rust has tools like Rc, RefCell, Arc, and RwLock that let you have a garbage collected language (well, reference counted) and not worry about any of the low level memory management details.

See things like https://ggez.rs/ for games and https://www.arewewebyet.org/ for web stuff.

Although honestly I think if you're looking for a "hot" backend web language I'd say Elixir is the more well designed one than Go.

I admire Elon's accomplishments, especially with SpaceX but I wouldn't want him in charge of Twitter.
Re:Show HN: Open source non-linear notepad app on Monday July 23, 2018 @11:36PM (#17597944)
Yeah, that's the big issue with Electron. The "Micro" came from my original plan for it, which was to have a super small python script generate static notepad pages for you to visit in your browser. Obviously that's no longer the case.
Re:Show HN: Open source non-linear notepad app on Monday July 23, 2018 @11:34PM (#17597941)
Thanks!

1. That's totally possible, although file-size could quickly become an issue with syncing the videos (there's a 50MB cap)

2. Nope, All actual client functionality is (and always will be) free + open source. Even syncing is free (up to a point).

Re:Show HN: Open source non-linear notepad app on Monday July 23, 2018 @09:06AM (#17592437)
Linux doesn't have the issue with codesigning. And no evernote doesn't (it's more of a page mechanism) and yes OneNote does but OneNote one Linux is non-existent and OneNote on the web is bad.
Re:Show HN: Open source non-linear notepad app on Monday July 23, 2018 @09:05AM (#17592430)
I rely on iframes to sandbox, and as part of that I need srcdoc. Edge will support it in the next version iirc.
Re:Show HN: Open source non-linear notepad app on Monday July 23, 2018 @09:04AM (#17592427)
Already there for maths. Syntax is in the help notepad.
Re:Show HN: Open source non-linear notepad app on Saturday July 21, 2018 @08:50PM (#17584685)
I definitely wouldn't say no to something like that. It would probably make my life a little easier.
Re:Show HN: Open source non-linear notepad app on Saturday July 21, 2018 @06:40PM (#17584226)
Hmm. I suspect that's because I don't do code signing?
Re:Show HN: Open source non-linear notepad app on Saturday July 21, 2018 @06:37PM (#17584205)
Syntax highlighting would be really cool.

1MB images should work perfectly fine. It is an image element right?

I have heard that the icons might be a little weird. I've been unable to test it because my install of Linux doesn't use icons. I'd appreciate help with that one if anyone can help.

Thanks for the other feedback.

Older »