Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
colonwqbang
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
colonwqbang
2y ago
This is a bit misleading. Quotient and modulo with constant right-hand side is readily optimised into faster operations, like multiplication and bit shifts. "All" optimising compilers do this and don't emit a true divide inst
62.
▲
by
colonwqbang
2y ago
Apple still charges extra for the Apple music service, right? Spotify costs $12/month, Apple music costs $11. If that's true then it seems market competition is working decently in that area. If you could launch a competing servic
63.
▲
by
colonwqbang
2y ago
To me this just means that apple has a lot of growth opportunity in Europe.
64.
▲
by
colonwqbang
2y ago
A byte would fit at least 255 different values, right? How often is this limit exceeded in practice.
65.
▲
by
colonwqbang
2y ago
There is good tooling available, but it tends to be vendor-specific and sometimes quite expensive. Here is Arm's tool: https://developer.arm.com/Tools%20and%20Software/Graphics%20...
66.
▲
by
colonwqbang
2y ago
Adding a special function for safe indexing doesn't really count, we can do that in C too. "By default" means the most natural and common way to index an array, namely the [] syntax.
67.
▲
by
colonwqbang
2y ago
I see! For recent clang, the flag -Warray-bounds-pointer-arithmetic did the same thing for me. So if missing bounds checking for static arrays was your main gripe with C, you can rejoice.
68.
▲
by
colonwqbang
2y ago
You are just not using the correct compiler flags. Compile with gcc -O2 -Wall -Werror, and you will see that GCC rejects this program due to the out of bounds condition. No need to trash talk GCC when it already does what you want it to.
69.
▲
by
colonwqbang
2y ago
There are many good "better C" alternatives already. Rust, zig, D. They address other common types of bug like resource leaks, overflows, use after free. If you're ok with rewriting code, you have terrific options. And of cou
70.
▲
by
colonwqbang
2y ago
Well, isn't that the point? If you desire uniformity above all then a local monopoly is the best possible situation for you. Competition requires diversity, there has to be different offerings which work in slightly different ways. An
71.
▲
by
colonwqbang
2y ago
About 23% of downtown Los Angeles is parking lots. https://nextcity.org/urbanist-news/how-much-of-your-city-is-...
72.
▲
by
colonwqbang
2y ago
Why does swiping make it worse? Is there a better alternative?
73.
▲
by
colonwqbang
2y ago
Perhaps you noticed that the beams aren't really attached to the notes they are supposed to be beaming together. OP doesn't show any multi-stave (i.e. "full score") example at all -- if the system could do that, it would
74.
▲
by
colonwqbang
2y ago
> The Biden administration announced Friday that its first-of-its-kind free tax filing website... In the rest of the world in many places we have been filling taxes directly online for many years. Sorry Americans, you did not invent free
75.
▲
by
colonwqbang
2y ago
I can understand wanting the executives to be held accountable. But why is it important to punish the stock holders of Boeing? Do you feel that they had a hand in these disasters?
76.
▲
by
colonwqbang
3y ago
Writing things down and thinking them over before acting on them, isn't bullshit. There's other decent advice in the article. I think your review of the article is overly negative. Perhaps these techniques come naturally to some p
77.
▲
by
colonwqbang
3y ago
Mr Williams doesn't wish to be married to Mrs Williams anymore. If tearing up the divorce decree the judge would be forcibly re-marrying Mr and Mrs, against his wishes. I think the decision made by the judge is the only reasonable one.
78.
▲
by
colonwqbang
3y ago
Capitalism may be the cause of some problems, but not inflation. Inflation isn't caused by free markets or the invisible hand, but by public policy and an oversupply of money being created by the state.
79.
▲
by
colonwqbang
3y ago
I've found that stock git works great for managing dotfiles, without any extra tools needed. Just a few lines of gitconfig and a shell alias is enough. It's all explained here: https://www.atlassian.com/git/tu
80.
▲
by
colonwqbang
3y ago
I think it can be both things. Haven't you ever seen someone do struct Thing; struct OtherThing; in lieu of just including "thing.h"? I see it frequently in real life code bases and I can't see a reason for
81.
▲
by
colonwqbang
3y ago
C++ build systems are typically based on file timestamps. Modifying a header file triggers recompilation of all translation units including that header. There are workarounds like pimpl (aka. C style encapsulation). But this requires extra
82.
▲
by
colonwqbang
3y ago
Most of my personal issues aren't with C++ syntax as such (although it also has many problems). My main gripes are: 1. Very slow compilation. 2. Poor encapsulation, adding private functions requires recompiling all dependents, see (1).
83.
▲
by
colonwqbang
3y ago
> Don't take this too seriously, this is a little project for fun, if do you know how to code it's pretty easy to break the security of this. As opposed to standard "click the traffic light" type captchas which are al
84.
▲
by
colonwqbang
3y ago
"to study or analyze (a device, as a microchip for computers) in order to learn details of design, construction, and operation, perhaps to produce a copy or an improved version" Isn't that what has happened here? They decompi
85.
▲
by
colonwqbang
3y ago
1. Few new rentals are built, because it's not profitable 2. Existing rentals are converted to condominiums, because that is more profitable If you can afford to buy a condominium, great. If not, there is always the public housing comp
86.
▲
by
colonwqbang
3y ago
Your problems are not with C the language but with the chosen build tools. Have you tried using a more modern tool like Meson? It is more comparable to Cargo. To start a new project today using plain GNU Make like the author of the article
87.
▲
by
colonwqbang
3y ago
Do you have any good links that explain more? In my mind the ideas of socialism and libertarianism are polar opposites.
88.
▲
by
colonwqbang
3y ago
But this is exactly the kind of behaviour targeted by the DMA. Artificial restrictions in the functionality of iphone are inserted to drive sales of an unrelated product. It's page one of the Monopolist Playbook.
89.
▲
by
colonwqbang
3y ago
What's the market for a (non-hacked) device like this, when the Switch and the Deck already exist? Surely the appeal of a handheld is that you can bring it with you on the train, airplane, etc. What am I missing?
90.
▲
by
colonwqbang
3y ago
Here's another one: Don't write blog posts that are just a superficial attack on someone else's hobby project. Write out of love.
More ›