Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hgs3
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
Show HN: I built an embeddable Unicode library with MISRA C conformance
(railgunlabs.com)
117 points
by
hgs3
2y ago
|
48 comments
92.
▲
by
hgs3
2y ago
> Many people had contributed their efforts to the Redis project for free It's worth noting that the bulk of the code was written by antirez with only ~12 others exceeding 100+ commits [1]. And if you continue scrolling the number o
93.
▲
by
hgs3
2y ago
The public backing by Google absolutely propelled Go into the spotlight, but Dart, also released by Google, hasn’t achieved anywhere near the same success. Considering how long ago Go was released, if the language didn't have its own m
94.
▲
by
hgs3
2y ago
I'm looking at the JSON5 spec and it appears it does not introduce a capital \U escape sequence for Unicode characters outside the Basic Multilingual Plane (BMP). It's not brought up often, but in JSON you do need UTF-16 surrogate
95.
▲
by
hgs3
2y ago
I think there's been a misunderstanding. > Your first sentence says My first sentence was me quoting the Just manual and my second sentence was my observation about what that suggests. I wasn't asserting whether it's true
96.
▲
by
hgs3
2y ago
> I’ve always had incremental happen with language-native tooling like `go` or `cargo` That makes sense, but for me, Make is incredibly useful for incremental file processing outside of programming. I've written tiny Makefiles that
97.
▲
by
hgs3
2y ago
The manual states that "just is a command runner, not a build system," and mentions "no need for .PHONY recipes!" This seems to suggest that there's no way to prevent Just from rebuilding targets, even if they are u
98.
▲
Show HN: Unit testing framework for C11 and beyond
(railgunlabs.com)
1 points
by
hgs3
2y ago
|
0 comments
99.
▲
by
hgs3
2y ago
This isn't "odd" behavior. It's a consequence of using a multibyte encoding scheme. Also, when dealing with case mapping, you can't assume that the character count will remain constant. This is because in Unicode fu
100.
▲
by
hgs3
2y ago
You can have a systems programming language with garbage collection. Most concerns regarding GC are around unpredictable pauses, but you can absolutely design a predictable GC suitable for real-time applications. Rust is not the only option
101.
▲
by
hgs3
2y ago
In practice it means late binding [1]. [1] https://en.wikipedia.org/wiki/Late_binding
102.
▲
by
hgs3
2y ago
I recently used Synfig for some simple animations and had an overall good experience. Inkscape natively supports saving to the Synfig format, making it easy to import and animate my vector art. Synfig saves animations in an XML file format,
103.
▲
by
hgs3
2y ago
Related: The 'lcc-win' C compiler added operator overloading, default function arguments, and function overloading (see "generic functions") [1]. The Plan 9 C compiler introduced several language extensions, some of whic
104.
▲
by
hgs3
2y ago
> RAII and smart pointers and borrow checker are all signs of "individual element thinking" I'd call it object-oriented thinking. To me Rust and modern C++ are attempting to "OO-ify" systems programming and I thi
105.
▲
by
hgs3
2y ago
There is much misunderstanding about Makefiles, what they are, and what they are not. Make is not a "programming language build system" as some would imply, but rather a recipe builder. With Make you provide the file you want buil
106.
▲
by
hgs3
2y ago
> Khronos already mentioned in a couple of conferences that there will be no further work improving GLSL Unfortunately, HLSL isn’t an open standard like GLSL. Is it Khronos's intention to focus solely on SPIR-V moving forward, leavi
107.
▲
by
hgs3
2y ago
Unicode conforming regular expression engines are supposed to support the \p or \P property syntax [1] so you should be able to match hyphen characters with \p{Hyphen} or \p{Dash}. [1] https://www.unicode.org/reports/tr
108.
▲
by
hgs3
2y ago
As the proposal points out there are already a number of projects for adding an effect system to C. There are also other approaches to aid in correctness, from formal methods to coding standards like MISRA. I think merging any approach into
109.
▲
by
hgs3
2y ago
But why does the GPU API need to be in mainline SDL? Couldn't it be a separate project like SDL_net, SDL_mixer, SDL_image, and SDL_ttf? I would think that as a separate project "SDL_gpu" could be versioned independently, evol
110.
▲
by
hgs3
2y ago
> something HTML-based Instead of HTML you can use XML to write structured documents. With XML you can define whatever custom tags you need with schema validation if desired. The advantage of this approach is you have full control over t
111.
▲
by
hgs3
2y ago
Right or wrong licensing source code separately from data isn't a new thing. I can think of some very famous video games that have released their source code under a Free Software license, but kept the game data proprietary. According
112.
▲
by
hgs3
2y ago
In the case of OpenSSL, Big Tech clearly neglected proper support until after the Heartbleed vulnerability. Prior to Heartbleed, the OpenSSL Software Foundation only received about $2K annually in donations and employed just one full-time e
113.
▲
by
hgs3
2y ago
Worth noting the analog in MSVC is SAL annotations [1]. [1] https://learn.microsoft.com/en-us/cpp/code-quality/annotatin...
114.
▲
by
hgs3
2y ago
Yes, truncating a user facing string requires more consideration regardless of programming language. For example do you truncate at the grapheme, word, sentence, new line, paragraph, or something else? How do you indicate truncation to the
115.
▲
by
hgs3
2y ago
There is also strscpy [1] which behaves like the authors use of memccpy except the former doesn’t require manually passing the null terminator as an argument. [1] https://manpages.debian.org/testing/linux-manual-4.8
116.
▲
by
hgs3
2y ago
Yes, the Debian 12 fix is out. You can verify you're patched by running 'ssh -V' and verifying you see 'deb12u3'. If you see 'deb12u2' then you're vulnerable [1]. [1] https://security-track
117.
▲
by
hgs3
2y ago
> It would require me to write a custom paint function for every single control, which would take so much time I could raise a family in the meantime. Implementing a custom paint routine is how you do theming in many UI toolkits. I get
118.
▲
by
hgs3
2y ago
Maybe C will finally get slices.
119.
▲
by
hgs3
2y ago
There is also TinyVG [1]. See the previous discussion on HN [2]. [1] https://tinyvg.tech/ [2] https://news.ycombinator.com/item?id=35227635
120.
▲
by
hgs3
2y ago
Some years back I went from full-time (5 day work week) to part-time (3 day work week). For me it was absolutely worth it. My mindset and lifestyle are that of an artist: I spend all my free time writing, coding, drawing, composing music, c
More ›