HNHacker News
TopNewBestAskShowJobs

BD103

150 karma · joined October 12, 2023

he/him - I program in Rust and Kotlin :)

https://bd103.github.io

submissionscomments
BD103··on Deno vs. Oracle: Canceling the JavaScript Trademark
- freejs, created mere minutes before this comment
BD103··on The two factions of C++
Also see "On 'Safe' C++", which goes deeper into many of the insights brought up by this article. <https://news.ycombinator.com/item?id=42186475>
BD103··on Show HN: Rust library for numerical integration of real-valued functions
Support for constant float operations was released in Rust 1.82! https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html
BD103··on Rust is rolling off the Volvo assembly line
You may be interested in Ferrocene[0], a version of the Rust toolchain that is vetted for critical systems like automobiles. It's offered by Ferrous Systems, the same people who help maintain Rust Analyzer (the de-facto LSP for Rust).

[0]: https://ferrocene.dev/en/

BD103··on Committing to Rust in the Kernel
Check out the Rust's documentation page on platform support[0]. You'll be able to find the full list of supported platforms, as well as the target tier policy, and specific target requirements and maintainers.

[0]: https://doc.rust-lang.org/rustc/platform-support.html

BD103··on Committing to Rust in the Kernel
For those curious, this is the link[0] to the filesystems talk with the relevant timestamp. A bit more was discussed in this[1] article as well about Wedson Almeida Filho leaving.

[0]: https://youtu.be/WiPp9YEBV0Q?t=1529

[1]: https://lwn.net/Articles/987635/

BD103··on Pragtical: Practical and pragmatic code editor
> On my personal computer, a 2013 MacBook, it uses more like 50 and starts darn near instantaneously.

Just for clarification, do you mean 50 GiB or 50 MiB? I'm assuming MiB in this scenario, since allocating 50 GiB doesn't mix with an instantaneous startup.

BD103··on Bevy 0.14 – Data driven game engine
There is a Rust tool named `generate-release` within the website repository[0]. It handles interacting with the Github API to get a list of significant changes, breaking changes, and contributors. (The main Bevy repository has pull request labels for all of these, so this is pretty easy.)

[0]: https://github.com/bevyengine/bevy-website

BD103··on Programmers should never trust anyone, not even themselves
I love the link to the article on time dilation in this article, fascinating! (https://pilotswhoaskwhy.com/2021/03/14/gnss-vs-time-dilation...)
BD103··on Show HN: Tracecat – Open-source security alert automation / SOAR alternative
This name reminds of an LogCat, Android Studio’s logging tool.
BD103··on VitePress 1.0
Agreed. I built my personal website with Nuxt Content, but I'm not satisfied with it. It forces you to do a lot of things yourself and is definitely targeted towards dynamic websites. Since I am building for Github Pages, I found it quite unintuitive.

I would recommend using VitePress, Zola, Jekyll, or some other tool instead if you need an SSG.

BD103··on The Bevy Foundation
Don't worry, you still can! I've been actively contributing to the past 4 months, working on improving CI and the website. I started out doing PRs for typos and little improvements, and so can you! (I recommend looking for issues marked as "Good-First-Issue," they are the best entry-level things to work on.)
BD103··on PaperMC/Paper: The most widely used, high performance Minecraft server
There's a lot of great servers mentioned here, but there are two that I haven't seen yet:

- QuiltMC, which is a fork of FabricMC - NeoForge, which is a fork of Forge

Both have their own benefits and downsides, and are mostly comparable with their originals.

BD103··on Lead in gasoline blunted IQ of half the U.S. population, study says
> Environmental historian J. R. McNeill stated that he "had more adverse impact on the atmosphere than any other single organism in Earth's history."
BD103··on How do computers calculate sine?
Yup, I remember watching a video about how the RAM bus is the bottleneck when running Super Mario 64 on the N64. The original implementation used trig lookup tables, but the person optimized it by instead using Taylor series (I think) and some negation / shifting.
BD103··on SymPy: Symbolic Mathematics in Python
You might find SymPy Gamma interesting: https://www.sympygamma.com
BD103··on Ask HN: Who are your most treasured live coders?
By "Minecraft guy," do you mean the person who made Minecraft? I think his name was Markus Persson, but he went by Notch online...
BD103··on A search engine in 80 lines of Python
I would argue that Python does not inhibit this project as much as you imply. There are multiple benefits to Python, such as:

- A built-in dictionary type, used for indexing words

- Clean and easy to read code, which is one of Python's core strengths

- It's fast to draft code in, perfect for toy programs

- Easy async support, which the author comments on

- Plenty of libraries to do the heavy lifting of tasks not focused on by the post, such as hosting a web server, rendering template HTML, and parsing CLI arguments

Yes, Python is not fast relative to C or Rust, but it's perfect for this type of project.

BD103··on Command line interface guidelines (2021)
Exactly. This is implemented by the Javascript code formatter Prettier [1] where you have to pass `--write` in order to overwrite an unformatted file.

[1]: https://prettier.io

BD103··on WebAssembly Playground
Rust binaries seem to be larger than they should be, though. I believe Kobzol [1] has been making some work on that.

[1]: https://kobzol.github.io/rust/cargo/2024/01/23/making-rust-b...

BD103··on Deno in 2023
I know! The dinosaur brand is awesome :)
BD103··on Infinite Craft
This reminds of Little Alchemy, which used to be popular a few years ago
BD103··on Ask HN: Resources for kids/teens to learn programming
I learned programming through a mixture of Scratch and code.org. Once I "graduated" from those websites, I learned my first professional programming language using W3Schools.

I wouldn't recommend signing up for W3Schools, but the free content is a good enough primer for beginners. (Some of the examples are not idiomatic, though.)

I hope that helps :)

BD103··on Apple announces changes to iOS, Safari, and the App Store in the European Union
There's a lot of talk about Apple trying to circumvent this, but there actually are some good things from this. For instance, Firefox on Mobile can now use the Gecko engine instead of WebKit! (I think it's still Gecko?)
BD103··on Show HN: Better Seater – Wedding seating chart optimizer
This is pretty interesting! A related algorithm that may be useful is Wave Function Collapse, which can be taught using seating constraints like this.
BD103··on 1D Pac-Man
Another interesting thing by the same person that got pretty popular on HN:

The Joys of Small Game Development https://news.ycombinator.com/item?id=37799387

BD103··on Cortex A57, Nintendo Switch's CPU
Other AAA games like Tears of the Kingdom also having stunning graphics. It’s quite impressive, though only rendered in 720p.
BD103··on Beeper Mini is back
That was the point I wanted to make. I don’t see Apple letting Beeper make money off of a service they don’t run. If the app was open sourced and free then Apple wouldn't really be able to stop it. Apple can definitely sue them as a business, though.
BD103··on How many lines of C it takes to execute a + b in Python
This was quite interesting, but I’m disappointed it didn’t mention how many lines in C it actually took to run. Perhaps a profiler might help calculate this?
BD103··on Common Rust Lifetime Misconceptions (2020)
Technically yes, but editions are more like different "flavors" of Rust than actual breaking changes. A 2021 crate is supposed to be able to import a 2018 crate, likewise for 2015 and 2024. Because they all need to work together, edition changes still need to be somewhat compatible with older versions.

Because you can pass closures into functions across crate boundaries, which requires consistent lifetime semantics, I find it unlikely that this will be implemented.

Page 1 of 2Next →