Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bluecalm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
181.
▲
by
bluecalm
9mo ago
Out of curiosity can you tell the difference in font rendering on a 14 inch laptop between 1920x1200 LCD screen and a higher resolution one? I mean during normal work in normal position not trying to look really close.
182.
▲
by
bluecalm
9mo ago
What else could they do? The government represent the country. If their business model is not welcome there then they withdraw. It's very fair to say "if you insist on those rules I choose not to play". They owe Italy nothing
183.
▲
by
bluecalm
9mo ago
As a side note: just today Polish president veto'ed a law that would allow similar government power. The government coalition instantly turned on "think of the children" rhetoric in response. I think they are misreading the p
184.
▲
by
bluecalm
9mo ago
You may not like tariffs but it's not as straightforward as "customer pays". Customers and businesses will part of it. Businesses will most likely give up some part of the margin and customers will pay a higher price. >>
185.
▲
by
bluecalm
9mo ago
He could for example make oil prices much higher which would be great for Russia. Many ways to do that as well by causing unrest or military conflict in Middle East. Instead it seems USA is insisting on embargos to make Russia struggle even
186.
▲
by
bluecalm
9mo ago
>>primitives are all sized (u64, u8, f64, etc) stdint.h already gives you that. >> only one loop primitive (loop{}), no switch, no enum I don't think you will find many fans of that. >> atomics check stdatomic.h >&
187.
▲
by
bluecalm
9mo ago
So "modern standard" is to make it easier for compiler writers instead of programmer to read the code? Thanks god C designers had their priorities elsewhere. >>"the spiral rule" Not a problem in 99.99% of cases whe
188.
▲
by
bluecalm
9mo ago
What I like about C is that when they do add features they are just useful non-controversial features with maybe one exception of VLAs (that one was controversial). Designated initializers, compound literals, binary literals and the way to
189.
▲
by
bluecalm
9mo ago
>>A project where C programmers spend five hours to make it run in 4 seconds is in this caveat "20% faster" than a project where Alt Lang programmers spend five minutes to make it run in 5 seconds - because only those second
190.
▲
by
bluecalm
9mo ago
It's better Chrome: no ads, faster (because no ads), some nice features on top. What's not to like?
191.
▲
by
bluecalm
10mo ago
I love it. I have 40 files open in it right now - most of them .c source files with LSP and Treesitter running and it uses 250MB of RAM. Everything works instantly, Telescope is imo the new standard for file navigation (and navigation in ge
192.
▲
by
bluecalm
10mo ago
It's like Excel changing .csv files after opening them so a simple load/save cycle can corrupt the file and your original copy is nowhere to be found. I imagine the damage is smaller in case of auto-formatter but still - not somet
193.
▲
by
bluecalm
10mo ago
You're assuming function calls or other constructs are more readable and better programming. I don't agree. Having a clear clean-up or common return block is a good readable pattern that puts all the logic right there in one place
194.
▲
by
bluecalm
10mo ago
I agree it's very rare. I have this goto. A few that go to common return block that can be handled by other means and the rest is either error handling or things handled by labelled break or switch. I mean we know you can program witho
195.
▲
by
bluecalm
10mo ago
It's like with goto. Goto is useful and readable in quite a few situations but people will write arrow like if/else tree with 8 levels of indentation just to avoid it because someone somewhere said goto is evil.
196.
▲
by
bluecalm
10mo ago
International observers concluded the election didn't meet standards of international election and those were already heavily filtered. It seems the only evidence you would accept is written testimony signed by Maduro himself. I don&#x
197.
▲
by
bluecalm
10mo ago
Thank you, I've just recently read the list of new features and missed this one!
198.
▲
by
bluecalm
10mo ago
Looking at my own code one case I wouldn't get with defer and better switch is avoiding a flag pattern. For example when you iterate over a block and check if positions are 0 (+ do some work) and once you encounter a non zero you jump
199.
▲
by
bluecalm
10mo ago
Why not just use compile warnings and configure CI with -WError (same like your release build). It seems like trying to fix the world of undisciplined developers at the cost of a common use case (experimenting and temporary accepting warnin
200.
▲
by
bluecalm
10mo ago
I agree it's not the best choice. I mean it's true that you almost always want fall-through when the body is empty and break where it isn't but maybe it would be better to at least require explicit break (or fall-through keyw
201.
▲
by
bluecalm
10mo ago
I like the idea of strict improvements to C without taking anything away or making any controversial (as far as language design goes) choices. One thing I am wondering is why new low level languages remove goto (Zig, C3, Nim). I think it&#x
202.
▲
by
bluecalm
10mo ago
I think they are there to help the compiler so the optimizer might (but doesn't have to) assume they are true. It's sometimes very useful to be able to do so. For example if you know that two numbers are always different or that s
203.
▲
by
bluecalm
10mo ago
I mean look up why recent Nobel Prize winner got the prize. It's not just US saying so.
204.
▲
by
bluecalm
10mo ago
Surely the best case scenario is the regime collapsing, all collaborators of Maduro ending up dead or in jail and then the guy who actually won the election or a women who would have won it ending up in power?
205.
▲
by
bluecalm
10mo ago
Idk man, if my country was ruled by a dictator who faked elections I would be very happy to see some outsiders removing him. Kidnapping (and hopefully jailing for a long time) anyone who is in power by cheating the election is a big moral w
206.
▲
by
bluecalm
10mo ago
Even if you are plugged all the time you may want batteries as it prevents crashes when power is cut off or the cable randomly disconnects (especially with USB-C that can easily happen as it's designed to disconnect easily). It's
207.
▲
by
bluecalm
10mo ago
And on laptops you may need to write a script to disable Bluetooth before the lid closes and re-enable it when the lid opens because Microsoft in its wisdom forced S0 sleep but didn't care to make it stable enough so a drivers can'
208.
▲
by
bluecalm
10mo ago
While Everything is good on Linux you are spoiled with things like fzf or rgfzf (instant fuzzy search on text file content so you can find "TODO" or "ideas to try" in any file instantly).
209.
▲
by
bluecalm
10mo ago
For me at least "details" tab populates in one step (there is a slight delay and then all processes appear). You can set it as the default tab as it's the most useful anyway.
210.
▲
by
bluecalm
10mo ago
I've had Youtube Premium since it was introduced and I still use yt-dlp because it's the most convenient way for me to make an mp3 from a video so I can listen to it offline. I don't think they care. They probably care about
More ›