Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hgs3
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
241.
▲
by
hgs3
3y ago
The stdlib is mostly fine. The string and character classification functions are outdated because they aren't Unicode aware. There's a more detailed write up here [1]. [1] https://nullprogram.com/blog/2023
242.
▲
by
hgs3
3y ago
> What's wrong with C? It's great if you're coming from assembly language and the de-factor standard for embedded systems.
243.
▲
by
hgs3
3y ago
Excellent write up. This would make a good article for HN :)
244.
▲
by
hgs3
3y ago
The DoD mandated the usage of Ada [1] in the early 90's but changed their minds a few years later. History repeats itself? [1] https://en.wikipedia.org/wiki/Ada_(programming_language)
245.
▲
by
hgs3
3y ago
Memory bugs are just bugs. They are not particularly interesting bugs nor difficult to track down. Even if regulators hold vendors responsible for their bugs, memory bugs aren't the only type of bug nor are they the only mechanism for
246.
▲
by
hgs3
3y ago
I agree. Lua, Lisp, C - they are all conceptually simple languages that have stood the test of time. Let languages like C++ be the "everything" language and leave C alone.
247.
▲
by
hgs3
3y ago
Correct me if I'm wrong, but I think font hinting isn't needed for high DPI displays? I believe macOS Mojave removed subpixel anti-aliasing because Apple doesn't ship anything but high DPI displays anymore.
248.
▲
by
hgs3
3y ago
Disney's been using public domain works for decades (Snow White, Beauty and the Beast, Cinderella, etc). It's only fair they give back.
249.
▲
by
hgs3
3y ago
How much research has been done on lossy text compression? As in, would it be possible to rewrite text with fewer words that conveys the same meaning? I'd imagine AI could do it.
250.
▲
by
hgs3
3y ago
You are correct. The minimum needed to generate dynamic HTML is a string builder, not a fancy framework. Frameworks exist for Software at Scale (TM). Big Corp has a revolving door of developers and they need cookie cutter tools that isolate
251.
▲
by
hgs3
3y ago
Attacking my words as "weak", "FUD", or "uninformed" is arguing in bad faith. I gave a good faith effort to counter your points rather than simply labeling them "weak" or "uninformed".
252.
▲
by
hgs3
3y ago
> Hacking risk leads to recall of 500,000 pacemakers due to patient death fears A recall was issued therefore there is already regulatory oversight where it counts. The CRA is at best redundant and at worst a prime example of regulatory
253.
▲
by
hgs3
3y ago
Bad software won't give you food poisoning. Regulations can make sense for software that could cause physical harm - like the software in an implanted medical device - but most software doesn't fall in that category. The CRA is ab
254.
▲
by
hgs3
3y ago
> critical products IANAL but Annex III Class 1.2 states: "Standalone and embedded browsers" which would implicate every electron app. Class 1.5 states: "Products with digital elements with the function of virtual private
255.
▲
by
hgs3
3y ago
Who is responsible for damages when the commercial software in question ships with its source code? What about a small business that sells a closed-source license for its copyleft software? In these cases, there is commercial activity, howe
256.
▲
by
hgs3
3y ago
> There's a strange dance of IDEs coming and going, with their idiosyncracies and partial plugins. The Language Server Protocol [1] is the best thing to happen to text editors. Any editor that speaks it gets IDE features. Now if onl
257.
▲
by
hgs3
3y ago
> CRA will force many small enterprises and most probably all self employed developers out of business because they simply cannot fulfill the requirements imposed by CRA. Isn't that the idea? If you can't innovate, litigate - s
258.
▲
by
hgs3
3y ago
Both C [1] and C++ [2] have string literal syntax for UTF-8, 16, and 32 strings. [1] https://en.cppreference.com/w/c/language/string_literal [2] https://en.cppreference.com/w/cpp/lan
259.
▲
by
hgs3
3y ago
You can use Autotools to generate your Makefiles. Autotools gets a bad rep, but I've found it perfectly fine for simple projects. To get started you only need two files, configure.ac and Makefile.am, you can ignore all the autogenerate
260.
▲
by
hgs3
3y ago
Code styling rules, such as requiring functions to have exactly one exit point, could be carried over to Rust. Many existing rules are still relevant for unsafe blocks and there would likely be new rules for panic.
261.
▲
by
hgs3
3y ago
Good article. The caller can also pass arguments hinting whether the requested allocation will be long or short lived, zero allocated, etc... You can also go beyond the realloc/free idiom and into specialized interfaces, like a push&#x
262.
▲
by
hgs3
3y ago
In addition to avoiding undefined behavior, MISRA discourages language features that are "dangerous" like I/O and dynamic memory routines. It also defines some (controversial) styling rules, such as requiring functions to hav
263.
▲
by
hgs3
3y ago
I conformed to MISRA C:2012 for an open source project and what's unfortunate is the lack of open source static analyzers for verifying MISRA compliance. Aside from Cppcheck [1] all other analyzers I found are commercial/proprieta
264.
▲
by
hgs3
3y ago
This programmatic approach to drawing shapes is very familiar to anyone whose made custom controls for desktop applications (think Quartz/Cocoa and Cairo/GTK). I think you could use this approach when building a website and avoid
265.
▲
by
hgs3
3y ago
> Memory safety bugs are currently being introduced to the Linux kernel faster than they are being fixed. I don't understand where all these memory bugs are coming from. Are programmers not testing their code? Are they not running s
266.
▲
by
hgs3
3y ago
One of the level designers, Dario Casali, marked the 25th anniversary with a complete playthrough and commentary. [1] [1] https://www.youtube.com/playlist?list=PLk5gaNp4x_AVIJviyHueH...
267.
▲
by
hgs3
3y ago
Charge a consulting fee to implement those new features? If a single user cannot afford it, then start a crowd funding campaign. If the crowd funding campaign fails, then say there wasn't enough interest. Let your users vote with their
268.
▲
by
hgs3
3y ago
> The feeling of entitlement people have around open source is unsustainable. Free-rider problem [1]. [1] https://en.wikipedia.org/wiki/Free-rider_problem
269.
▲
by
hgs3
3y ago
Minimum wage is a red herring. If workers want real change how about tying worker pay to some percentage of CEO pay? Example: if your average employee is legally required to earn, say, 1/10th of what the CEO earns then if the McDonalds
270.
▲
by
hgs3
3y ago
Investigative reporters should act professionally. They should setup a formal appointment with the accused and remain neutral. In the bbc report they showed up uninvited and asked "We want to know why you're not protecting childre
More ›