Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hgs3
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
271.
▲
by
hgs3
3y ago
Are the teens actually depressed or are they demoralized? There is a difference between the two.
272.
▲
by
hgs3
3y ago
They have a celebratory tweet [1]. Wikipedia lists the initial release as November 6, 2003 [2]. [1] https://twitter.com/inkscape/status/1721123809002917936 [2] https://en.wikipedia.org/wiki/In
273.
▲
by
hgs3
3y ago
Nothing awkward about it. Even the FSF requires copyright assignment [1] and is A-okay with selling exceptions [2]. [1] https://www.gnu.org/licenses/why-assign.en.html [2] https://www.gnu.org/philosophy
274.
▲
by
hgs3
3y ago
Yup and if your implementation uses a hashmap for object key -> value lookup, then I recommend allocating the hashmap after parsing the object not during to avoid continually resizing the hashmap. You can implement this by using an int
275.
▲
by
hgs3
3y ago
Would redefining the value of currency in terms of the natural resources available help curb their depletion? Kind of like the gold standard [1], but in terms of Earth's resources in general? [1] https://en.wikipedia.org
276.
▲
by
hgs3
3y ago
Why not move the statue to a museum instead of melting it down? If that isn't agreeable then why not sell it at auction? Maybe the city could use the resulting funds to build a new statue. Destroying art whether it be books, paintings,
277.
▲
by
hgs3
3y ago
When the pendulum swings it often swings far before normalizing somewhere in the middle. I agree that Rust isn't the answer. FWIW there is interest in adding bounds checking to C [1]. That discussion includes feedback from at least one
278.
▲
by
hgs3
3y ago
Cyclic data structures are impossible to represent in safe Rust because there is no clear "owner" in a cyclic data structure.
279.
▲
by
hgs3
3y ago
This is a pedantic comment, but the terminology is confusing. Games have "players" so their sync systems are called "multiplayer," but regular software has "users" so their sync systems should be called "m
280.
▲
by
hgs3
3y ago
Separation of interface and implementation. In languages without them you must rely on documentation generators or an IDE to explore a library/packages public interface. Header files provide this separation without the need for fancy t
281.
▲
by
hgs3
3y ago
> Software is (was?) where you could go from 0 to something by yourself. This will end it. Isn't that the idea? Regulatory capture [1] entrenches the existing players while keeping out would-be competitors. The proposed law won'
282.
▲
by
hgs3
3y ago
In a competitive market people hold companies "accountable" by voting with their wallets. If a tech company is producing buggy software then they should lose customers to their superior competition. If this isn't happening th
283.
▲
by
hgs3
3y ago
Does anyone know who is lobbying for the CRA? I don't believe for a second that technologically clueless lawmakers originated the proposed law. There must be some group that intends to benefit financially from this.
284.
▲
by
hgs3
3y ago
> The problem, column is counted using UTF-16 code units. Rather than fixing the problem by using code points, they made it worse by allowing any encoding. Now, not only do you need to support UTF-16, but also UTF-8 and UTF-32 [1]. [1]
285.
▲
by
hgs3
3y ago
There was a lengthy discussion on this [1]. UTF-16 was used because it was convenient: it's what Microsoft API's and JavaScript already use (the latter being the language VS Code is written in). [1] https://github.com&#
286.
▲
by
hgs3
3y ago
Meta question, but is there a name for this phenomenon? When someone asks a question to "prove a point" using outlandish analogies (RPG's, nuclear weapons, kamikaze)? I see this frequently in online discussions.
287.
▲
by
hgs3
3y ago
The Unicode Standard does not specify how character properties should be extracted from a grapheme cluster. Programming languages that define "character" to mean grapheme cluster (like Swift) need to establish their own ad-hoc rul
288.
▲
by
hgs3
3y ago
> And if you're looking at character properties, the article says you should be looking at multiple together, which is correct. I don't see where the article mentions Unicode character properties [1]. These properties are assig
289.
▲
by
hgs3
3y ago
> There are plenty of situations that warrant operating on code points Absolutely correct. All algorithms defined by the Unicode Standard and its technical reports operate on the code point. All 90+ character properties defined by the st
290.
▲
by
hgs3
3y ago
Everybody loves to debate what "character" means but nobody ever consults the standard. In the Unicode Standard a "character" is an abstract unit of textual data identified by a code point. The standard never refers to g
291.
▲
by
hgs3
3y ago
> There is very little opportunity today for any team (let alone individual person) to push the boundaries of the technology in a meaningful way. Checkout the demoscene. An example of a megahit that started as a tech demo was Teardown [1
292.
▲
by
hgs3
3y ago
I'm still waiting on Ricochet 2.
293.
▲
by
hgs3
3y ago
There is also the double-sided arena allocator which uses one contiguous buffer but grows in both directions (front-to-back and back-to-front). When allocating memory from it you need to indicate whether you want memory from the front or ba
294.
▲
by
hgs3
3y ago
Buffer overflows happen because a bounds check is missing. Using a language with implicit bounds checking (memsafe?) does _not_ excuse you from explicit bounds checking. Depending upon the language an implicit bounds check might "recov
295.
▲
by
hgs3
3y ago
Buffer overflows are bugs. You're asking how bugs can still be happening in this day and age? The answer is inadequate testing and broken engineering processes.
296.
▲
by
hgs3
3y ago
It gets worse. Windows doesn't use UTF-16 for file paths it uses UCS-2. Example: Windows paths can contain unpaired UTF-16 surrogates which is illegal in UTF-16. Unix paths are no better; they are "bags of bytes" and not nece
297.
▲
by
hgs3
3y ago
Nice library. +1 for the excellent visualizations [1]. Will you keep it focused on intersections or might you dabble with triangulation? [1] https://github.com/tidwall/tg/blob/main/docs/POLYGON_INDEX
298.
▲
by
hgs3
3y ago
Structured formats cannot natively represent every possible type. For example JSON might support very basic types, like integers and booleans, but not more complex types like date/time types. Formats like JSON only have an advantage wh
299.
▲
by
hgs3
3y ago
It's not necessarily being immediate mode that is the problem. The bigger problem with most IM GUI's is they expect to repaint at 60 frames per second like a video game which is bad for mobile devices as it drains battery life. No
300.
▲
by
hgs3
3y ago
You need the right obsession's at the right time. Markets change. I doubt many dot com millionaires would have the same success with the web if they'd been born today regardless of their enthusiasm for the technology.
More ›