Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Rendello
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
Rendello
3mo ago
Just don't do it like Rust inlining annotations: <No annotation> – Gently suggests inlining #[inline] - Really suggests inlining #[inline(always)] – Really Really suggests inlining (still not guaranteed!) https://
62.
▲
by
Rendello
3mo ago
I was wondering if the hash might be unique, then a commenter would say "it's now `kill.<hash xyz>.js`, and the webmaster would be able to connect <hash XYZ> to a user agent and IP. It wouldn't accomplish anything
63.
▲
by
Rendello
3mo ago
https://xkcd.com/1053/
64.
▲
by
Rendello
3mo ago
For me it still happens, the file has just been renamed to /js/kill.<giant hash>.js
65.
▲
by
Rendello
3mo ago
I'd never heard of ParaSail, so I found this high-level overview [1]: > All of the objects declared in a given scope are associated with a storage region, essentially a local heap. As an object grows, all new storage for it is alloc
66.
▲
by
Rendello
3mo ago
And for an Struct-of-Arrays approach, DuckDB and other columnar databases can have nice advantages (I mentioned this in another comment [1]), including optimizations you wouldn't see in typical code (SoA or otherwise) like column-level
67.
▲
by
Rendello
3mo ago
In Rust at least, most things have a with_capacity( n ) constructor to ensure there's space for n elements (or n bytes, in the case of strings). I suppose there's no getting around the fact that if your collection has no known
68.
▲
by
Rendello
3mo ago
If you click to another tab, the site changes its title and favicon to a random webpage like: - Pick up lines suggestions – ChatGPT - Rick Astley - Never Gonna Give You Up - Youtube - Amazon.com: waifu pillow When you go back to it there&#x
69.
▲
by
Rendello
3mo ago
There's been some good implicit/explicit discussion about SoA on this post [1]. For anyone curious, there are a few different terms that refer to basically the same thing: - Struct of Arrays (SoA) vs Array of Structs (AoS); - Row-
70.
▲
by
Rendello
3mo ago
I studied "The Cremation of Sam McGee" in elementary school and it was a favourite of my grandmother. It's well-known in Canada, as far as poetry goes, though the poem most Canadians know by heart (at least partially) is &quo
71.
▲
by
Rendello
3mo ago
It's been floating around the Internet since at least 2019. It's classic, soulful bad editing.
72.
▲
by
Rendello
3mo ago
I'm abhorrent at arithmetic and I think it affects me greatly. I know quite a few people who are barely literate and manage to get by in life, but it obviously makes things hard for them and strips them of opportunities (and they foreg
73.
▲
Transcoding Billions of Unicode Characters per Second with SIMD (2022)
(arxiv.org)
5 points
by
Rendello
3mo ago
|
0 comments
74.
▲
by
Rendello
3mo ago
One of my favourite articles is "SIMD-friendly algorithms for substring searching" by Wojciech Muła [2]. If you were unfamiliar with SIMD and just jumped into the code, it'd be incomprehensible due to the intrinsics, but the
75.
▲
by
Rendello
3mo ago
> Vectors (in C++) at least aren't necessarily the best fit either I'm not sure if you use a different allocation strategy or if you're advocating allocating as much as possible up-front, but I'm curious if you have a
76.
▲
by
Rendello
3mo ago
A good introduction to SoA (for anyone curious) are the two most famous Data-Oriented Design talks by Mike Acton (game engine dev) [1] and Andrew Kelley (Zig lead dev) [2] respectively. I read a book book about DoD [3] really which confused
77.
▲
by
Rendello
3mo ago
I like SIMD, but before super-optimizing your code with SIMD and the like, really consider your data structures and access patterns. I've been singing Data-Oriented Design's praises, so I'll just collect all my comments here
78.
▲
by
Rendello
3mo ago
I remember when I was learning CSS back in 2012, the guides said to never center-justify text as browsers did a terrible job. Since then, CSS has become way nicer, and yet justified text still looks awful. Great (or even good) typography al
79.
▲
by
Rendello
3mo ago
> offers a more overwhelming MC Escher-like experience That reminds me of one of my favourite games of all time, Knossu [1]. It's a short game from the peak of the indie era, written by Jonathan Whiting (whose post "Why I write
80.
▲
by
Rendello
3mo ago
I thought the horror game "Exit 8" was going to be like that when I bought it: having to navigate through a labyrinthine nightmare version of Shinjuku or Shibuya station, trying to remember the passageways and —hey wait... was th
81.
▲
by
Rendello
3mo ago
I've been interested in ancient Roman and Greek texts of late, and although I can't imagine dedicating myself to learning an ancient language when there are so many living languages to learn, I do find them very cool. Just yesterd
82.
▲
by
Rendello
3mo ago
There's been some interesting threads about stylometry over the years [1]. The top link was quite decent at unmasking HN alt accounts with basic ngram analysis whipped up in one day [2]. 1. https://hn.algolia.com/?q=sty
83.
▲
by
Rendello
3mo ago
A lot of this discussion mirrors the SQLite forum's discussion on the never-implemented "PRAGMA strict": https://sqlite.org/forum/forumpost/1b9d073a37ca5998 I personally find this idea interesting a
84.
▲
by
Rendello
3mo ago
> SQLite is slightly different from Rust in that it is a data container. I think this is the key. From sqlite.org [1]: > [Since 2004], the file format has been fully backwards compatible. > By "backwards compatible" we me
85.
▲
by
Rendello
3mo ago
It might be worth bringing this up on the forum [1]. The developers are quite active there, and it's possible they've never considered this option, or they have considered it and have reasons to not go for it. The original design
86.
▲
by
Rendello
3mo ago
I should've been clear that I was responding more to the comment than the article or N+1 . I skimmed it and agreed with the root comment "[I've] heard nothing about anything this article references".
87.
▲
by
Rendello
3mo ago
> today's high culture all seems to be predicated upon feigning enlightenment That must be the marker of "high" culture throughout history generally, right? I like this quote from a funny video on ancient Greek philosophy
88.
▲
by
Rendello
3mo ago
I've read that Japan had some crazy pollution and littering until regulations and campaigns in the 70s. Alright, I'll admit, I saw it on a Youtube short [1]. There doesn't seem to be a lot of information on the change on the
89.
▲
by
Rendello
3mo ago
The SQLite docs have a great "quirks" page [1], which contains this telling quote: > The original implementation of SQLite sought to follow Postel's Law which states in part "Be liberal in what you accept". This
90.
▲
by
Rendello
3mo ago
Abraham Lincoln used to write angry letters and stow them away, unsigned and unsent [1]. The book "How to Win Friends and Influence People" claims he stopped harshly criticizing people publicly after being challenged to a duel [2]
More ›