HNHacker News
TopNewBestAskShowJobs

Quot

210 karma · joined August 19, 2020

submissionscomments
Quot··on How Our Rust-to-Zig Rewrite Is Going
I don't know enough about Zig to explain it, but there is more to ReleaseSafe than checks and panics. ReleaseSafe also clears memory that no longer has an owner (I might be describing that wrong, that is just how I understand it). I found this out with a rendering issue recently.

The bug was around passing a slice to OpenGL which referenced memory outside of its lifetime. Since the memory location had no owner, vertices would still exist in Dev builds and everything would work fine, but in ReleaseSafe the application would run and just have nothing to render.

Since OpenGL was trying to read the memory, there was no panic from Zig, but it was a cool look into how the different build modes handle memory.

This is the commit where I fixed the issue: https://github.com/quot/donut/commit/8fff107e76278c4bf55007c...

Quot··on Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
The vast majority of my company's enterprise plan use is through Claude Code even though we have access to the API and could be using OpenCode instead.

I don't fully agree with the premise that they intentionally increase system prompts, but the enterprise plan usage is going to make that a huge income for Anthropic.

Quot··on StreetComplete: Fixing OpenStreetMap, one tiny quest at a time
I agree! It seems like their work on the iOS app would bring them a lot closer to web app support as well. In the iOS tracking issue, they say the main changes are moving to Kotlin Multiplatform and Compose Multiplatform, which both support web as a target.
Quot··on StreetComplete: Fixing OpenStreetMap, one tiny quest at a time
StreetComplete has been making steady progress on an iOS port over the past few years.

https://github.com/streetcomplete/StreetComplete/issues/5421

Quot··on I Like Small Keyboards
If anyone is looking into ergonomic keyboards, look into a layout other than Qwerty as well. I swapped to the Corne and Colemak-DH at the same time a few years ago. The Corne is beautiful, but I would say swapping to Colemak-DH provided much more ergonomic benefit for me.

I love my Corne but I never use it any more because I have to switch to my laptop keyboard too often. I am still able to use an ergo keyboard layout on both, so even when I can't use an ergo keyboard, it is still very comfortable to type.

Quot··on Isseven
7.0000000000000001 evaluates to true.
Quot··on Firefox will have an option to disable all AI features
My preference is Zen (https://zen-browser.app/), but there's also LibreWolf (https://librewolf.net/) if you want a less customized fork.
Quot··on Material Theme has been pulled from VS Code's marketplace
The maintainer goes into more detail here: https://news.ycombinator.com/item?id=43182156
Quot··on Zed on Linux Is Here
> 20% (35 chars) of screen space permanently wasted on a always on file browser

That is toggleable. Cmd+B on Mac. I usually keep it closed, but it's just a shortcut away when I need it.

> 4% (7 chars) of screen space permanently wasted by line numbers

You can disable that in the settings with:

"gutter": { "line_numbers": false }

> 2.7% (5 chars) of screen space taken up by a gutter

You can also disable the other items in the gutter to free up all of that space.

> So 27% of screen space effectively dead 99% of the time.

You can also press shift+esc at any time to toggle a fullscreen pane of whatever you are working on when you need more space without affecting your editor's state. I don't know the name of that action, I actually found that accidentally.

Edit: I forgot to mention, you can actually disable the tab bar now too if you want even more space. You would just need to rely on the tab switcher feature or file search to move around.

Quot··on Neovide – A simple, no-nonsense, cross-platform GUI for Neovim
You're right! That's pretty neat. I always thought terminal emulators were just simple text displays.

It looks like Wezterm even has preferences for how cursors are displayed.

https://wezfurlong.org/wezterm/config/lua/config/cursor_blin...

Quot··on Neovide – A simple, no-nonsense, cross-platform GUI for Neovim
If I had to guess, it's because terminals don't know what a cursor is. From the terminal's perspective, it is just told to print a solid blinking block at a certain location. Neovide knows what the cursor is because it is communicating directly with Neovim.

A terminal could do this, but there would need to be direct integration into Bash, ZSH, etc.

Quot··on Microsoft Teams outage causes connection issues, message delays
That's my experience too. This outage seemed like the same jank I see every day. It just took me longer to realize it's jankier than usual.
Quot··on Overpass Turbo: A Web Based Data Mining Tool for OpenStreetMap
I used StreetComplete when I had an Android phone. It looks for missing data near you, and gives you a really nice interface to input that data.

They are working on an iOS build, and I can't wait to start using it again.

https://github.com/streetcomplete/StreetComplete/

Edit: Also, OSM has a few wiki pages for editing software on different platforms.

- Android_apps_that_can_upload_changes_to_OSM - https://wiki.openstreetmap.org/wiki/Category:Android_apps_th...

- Android_apps_that_can_record_GPS_tracks - https://wiki.openstreetmap.org/wiki/Category:Android_apps_th...

- IOS_software - https://wiki.openstreetmap.org/wiki/Category:IOS_software

- Mobile_editors - https://wiki.openstreetmap.org/wiki/Category:Mobile_editors

Quot··on YouTube slows down video load times when using Firefox
Just going off this tweet, it seems to be user-agent based: https://fixupx.com/endermanch/status/1726605997698068630
Quot··on Ask HN: Released games built on FOSS engines?
SteamDB detects game engines based on games’ file manifests.

https://steamdb.info/tech/

It’s not perfect because some engines (like Godot) have export options to bundle games into a single executable that SteamDB can’t use for engine detection.

Quot··on Unity plan pricing and packaging updates
It seems disingenuous to pick one of the most popular games of this year as an example when the pricing goes down with more sales.

I would like to see that same breakdown for the much smaller games that barely pass the sales threshold. That is the main Unity audience. Vampire Survivors is a huge outlier that didn't even start using Unity until after it became a massive hit.

https://www.rockpapershotgun.com/vampire-survivors-makes-its...

Quot··on North Korean campaign targeting security researchers
From the article: "The shellcode used in this exploit is constructed in a similar manner to shellcode observed in previous North Korean exploits."
Quot··on Privacyguides.org – The guide to restoring your online privacy
I thought this was a rebranding of PrivacyTools, but it's a fork by some of the former members.

https://www.privacyguides.org/en/about/privacytools/

Quot··on Godot 4 Beta 1
One of the benefits of 4.0 is also the modularity of it with GDExtension. The major parts of the engine (including the physics) can be swapped with replacements without the need to recompile the entire engine. I'd usually say that is a long shot for community run projects, but even Bevy engine has community made extensions for separate physics engines.

https://bevyengine.org/assets/#physics

Forgetting about extensions, though, I see your point and almost agree, but Godot has shown that they will put in the work to improve their project, even if that means removing features like they did with visual scripting. Their physics engine will definitely be rough at first, but based on their past work, I believe they are willing and able to maintain it.

Quot··on Analogue OS – Explore video game history
The patent you linked says "NO CLAIM IS MADE TO THE EXCLUSIVE RIGHT TO USE "FPGA" APART FROM THE MARK AS SHOWN". From what I understand, that is just a trademark for the logo showing "FPGA" within their square design.

The tweet you linked is promoting their newest product, so of course it's marketing it as something fantastic. FPGA emulation isn't a miracle, but it does provide some benefits over software emulation. I find it hard to believe that people would be misled into thinking this is some scholarly source of information.

Quot··on Elementary OS 6 Odin
Just off the top of my head,

Aseprite: https://github.com/aseprite/aseprite Onivim: https://v2.onivim.io/ Ardour: https://ardour.org/

Of course, I don't know how successful each of those projects are, but they seem to be successful enough to continue development.

Quot··on LexisNexis to Provide Giant Database of Personal Information to ICE
I think the main concern is whether taxpayer dollars should go towards spying on those same taxpayers or not. I would guess that most people wouldn't want their data floating around, let alone being bought with the money they contributed.
Quot··on Veloren – Open-source MMORPG written in Rust
Just a small correction to that (because I don't like the hate that the Cube World devs get):

They never abandoned the game. It was a two person team (husband and wife), and both devs worked full time jobs while making CW. After the initial alpha release, CW got a ton of attention and became a DDoS target, which triggered some mental issues in the lead dev.[1] They went dark after that for a long time (probably because everything new was usually posted by this lead dev).

The silent mystery with the game just built up even more hype over six years until the full game finally released, and the massive attention and disaster seemed to happen all over again. Every post about the game complained about the new design decisions with leveling. The lead dev seemed to think this was the best version of the game (based on his comments in his blog) and he seems to not have taken the criticism well, leading to him going dark again.

I wish he would have taken the hits and continued with the game, but if it's affecting his mental health in this way, he is probably better off abandoning it. I hope he gets better and I am still looking forward to anything he and his wife make in the future.

[1] https://web.archive.org/web/20190910123212/http://wollay.blo...

Quot··on Garuda Linux
Pamac is the default GUI package manager for Manjaro, so there's nothing different with that.
Quot··on DevTerm - An Open Source Portable Terminal for Every Dev
From what I am understanding, that's exactly what that is. It looks like the shop sells the device with or without the `58mm 200dpi thermal printer component`.
Quot··on Show HN: PuffinBASIC – A cross-platform modern BASIC interpreter written in Java
VB.Net was my first language in 2010. The syntax made it really easy to pick up and make small projects on Windows. The ease of use made it pretty fun to play around with and learn new things.

I think learning a more popular language (like python) would have been more helpful, but as a teaching tool, VB was great and helped me quickly jump into those other languages.