News for hackers. Stuff that matters.

quic5

Re:Juno – A YouTube Client for Vision Pro on Friday February 02, 2024 @01:25AM (#39225708)
> At its core, Juno uses the YouTube website itself. No, not scraped. It presents the website as you would load it, but similar to how browser extensions work, it tweaks the theming of the site through CSS and JavaScript.
Re:Citadel, a Calibre-compatible eBook management app on Sunday January 14, 2024 @06:03AM (#38989390)
From the README

> Yes, that is 4 pairs of --s. This is because Bun will pass the first pair to another bun run command, the second will go to tauri dev, the third will go to vite dev, and finally the last set will go to Cargo when running the backend. It's a mess!

Re:Embarrassingly Simple Text Watermarks on Monday October 23, 2023 @03:55PM (#37990701)
You're right we should (ab)use another unicode code point to indicate that this text was scanned using an OCR app /s
Re:Insomnia REST client now requires an account on Wednesday September 27, 2023 @05:19PM (#37681474)
It’s still MIT licensed right? Seems like we need a Vscodium for Insomnia
Re:Wasmer – Run, Publish and Deploy any code, anywhere on Monday September 18, 2023 @06:57AM (#37554584)
I attempted to delete my Wasmer account a week ago. The button just prompted me to send an email, so I did that, but didn't get response since. Any idea how to enforce GDPR here?
Re:Unlocking Discord Nitro Features for Free on Tuesday August 22, 2023 @03:37AM (#37219745)
Digging through the source I've found https://github.com/cotes2020/jekyll-theme-chirpy
Re:0.11.0 Release Notes on Friday August 04, 2023 @03:33AM (#36996663)
That is absolutely true. But but you can write memory-bug-free code in Zig but you cannot prevent heap allocations in most of the languages listed in the article, making it outright impossible to write certain software in them.
Re:0.11.0 Release Notes on Friday August 04, 2023 @03:27AM (#36996611)
I don't believe there ever was support for macOS on 32-bit ARM.
Re:0.11.0 Release Notes on Friday August 04, 2023 @03:25AM (#36996595)
That totally misses the point of quality software. What good is memory safety if you medical device crashes because of an out of memory error?

What I'm trying to say: There are use cases where areas of safety are required other than memory safety.

Happens a lot with Zig's builtin functions: See https://github.com/ziglang/zig/issues?q=is%3Aissue+mentions%... for example
Re:Young people are flocking to astrology on Monday July 24, 2023 @09:46AM (#36847921)
> Human beings need spiritual experiences

That is debatable. Spiritual explanations are just easier and we humans are lazy

Re:Minify and Gzip (2022) on Monday July 17, 2023 @11:45AM (#36759623)
But there aren’t any guarantees that the file the source map points to is actually the source, right?
Re:Google Street View returns to Germany after 10 Years on Friday July 07, 2023 @03:17AM (#36628315)
Apple already has recent street view of Germany and nobody cared.
Re:Problems of C, and how Zig addresses them on Monday July 03, 2023 @04:11PM (#36578141)
Not all that useful but fun: you can implement swizzling with comptime
Re:Problems of C, and how Zig addresses them on Monday July 03, 2023 @03:46PM (#36577899)
A good api (like std.debug.print for example) can implement nice compile errors that fail early with readable messages manually at comptime. Still not as convenient as traits though
Re:Web Apps on macOS Sonoma 14 Beta on Thursday June 08, 2023 @12:54PM (#36244996)
> Observation: Separating Safari and Web App allows both to run independently. You can open a Web app without opening Safari, you can close Safari without all web apps closing.
The biggest bottleneck in Zig's case is LLVM. That's why they implement fast alternative backends for development. See: https://kristoff.it/blog/zig-new-relationship-llvm/
Re:EU countries approve 2035 phaseout of CO2-emitting cars on Tuesday March 28, 2023 @08:12AM (#35339534)
All because of a single German political party that will struggle to get the required 5% next term. Kinda crazy
Re:Errors and Zig on Wednesday March 22, 2023 @05:57AM (#35258854)
Honestly most bad abstraction come from authors thinking they're geniuses (in that moment)
Re:Cities: Skylines II on Monday March 06, 2023 @05:45PM (#35048857)
Having spent countless hours in Cities: Skylines I’m a bit worried that I haven’t spotted a single form of public transport nor more bike infrastructure than a painted bike lane. I hope we won’t have to wait for countless DLCs to add more interesting modes of transport that just cars
Yeah because wanting basic human rights is just something "the West" wants
Re:Zig's Curious Multi-Sequence for Loops on Monday February 27, 2023 @10:25AM (#34957445)
The print function is implemented in the std library[1] not the compiler and Zig does not have varargs

[1] https://github.com/ziglang/zig/blob/f6c934677315665c140151b8...

Re:Zig's Curious Multi-Sequence for Loops on Monday February 27, 2023 @10:20AM (#34957387)
There's also the compromise of only disabling safety checks per block e.g. in your hot loop with `@setRuntimeSafety`[1] where you are confident that they aren't needed.

[1] https://ziglang.org/documentation/0.10.1/#setRuntimeSafety

Re:Helix: A Neovim inspired editor, written in Rust on Monday October 10, 2022 @01:44PM (#33154303)
Looks a lot like JetBrains Mono but I’m not 100% sure
Re:Game Jam 2 Results on Friday September 09, 2022 @01:26PM (#32782248)
I've continued to code on my game submitted to the last WASM-4 jam for months and thoroughly enjoyed improving my messy game-jam code. So I'd disagree with the statement that Zig is only good for prototyping.
Re:Game Jam 2 Results on Friday September 09, 2022 @01:23PM (#32782209)
Then you will enjoy WASM-4 since it handles the glue code for you. There's no JS in you game but the web emulator is written in JS
Re:Game Jam 2 Results on Friday September 09, 2022 @01:20PM (#32782172)
I can only speak for myself here but of all languages I've tried for WASM-4 (WAT, C, Rust & Zig) it is the most productive one for me.

I really enjoy the balance of safety and control in Zig. I can build using Debug mode during development, turning nearly all my bugs into crashes which are easily fixable using in-browser source-level debugging. But in Release-Small mode the result is fast and more importantly really small since there's a 64kb cartridge limit.

Another factor is the Zig Standard Library which designed to be portable and usable on freestanding targets. I can not emphasize enough how pleasant this is. For example I can just use a `std.heap.FixedBufferAllocator` to back a `std.ArrayList` with no problem.

The comptime feature of Zig also comes in handy when you have to minimize code size.

The seamless C interop furthermore improves my productivity since I can just use any C code I like. I've used a C perlin noise library in a previous game for example, saving me a lot of time.

Plus I've used Zig for the previous WASM-4 jam and just liked it so I didn't bother trying any other language.