Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
agent327
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
211.
▲
by
agent327
5y ago
This particular UB is used for optimisation in the following manner: when you write a loop that iterates over an array using a signed index variable, it doesn't check that the index doesn't overflow. Apparently doing it 'prop
212.
▲
by
agent327
5y ago
Funnily enough, the things that everyone complains about are all inherited from C...
213.
▲
by
agent327
5y ago
One of their remedies is to periodically ask for an update to any review posted. Am I the only one who no longer has any desire to act as an unpaid reviewer for every little thing I buy? And who gets annoyed that I get _reminders_ for not h
214.
▲
by
agent327
5y ago
Yeah - and why the developer, exactly? Not liable: - The CEO that set infeasible targets and pocketed a big bonus for meeting shareholder expectations. - The sales person that sold the project for too little money and pocketed a big bonus f
215.
▲
by
agent327
5y ago
You're not another EU country anymore, mate. Not to worry though, the whole damn thing will collapse sooner rather than later, and then you'll be happy to watch the implosion from a comparatively safe distance...
216.
▲
by
agent327
5y ago
..and none of them mention "written in XXX", do they? They're just interesting projects. The reason for posting is not "...they're in rust", the language is just an implementation detail. We can reasonably assu
217.
▲
by
agent327
5y ago
I wouldn't know, I hardly ever see such posts about other languages. Weird, isn't it, that only rust gets that treatment?
218.
▲
by
agent327
5y ago
The EU is a collection of countries with completely different languages and cultures. Doing business in another EU country is far more complex than doing business in another US state. Writing on a piece of paper that there is a single commo
219.
▲
by
agent327
5y ago
I wasn't making any statement about how common it was, only about how impractical it was. And soon enough you'll find that it is just more convenient to reuse a few error codes here and there, and soon enough applications just rep
220.
▲
by
agent327
5y ago
That must be a joy to edit. "Oh, a new error. Time to recompile the whole system!"
221.
▲
by
agent327
5y ago
Hear, hear! I've always said microkernels are the best. If you have thousands of drivers in your kernel, each one is just another attack surface, something that can take the machine down on something as simple as RS232 traffic. Instead
222.
▲
by
agent327
5y ago
That sounds really bad, and I can only wish you good luck with dealing with the whole parasite class in your country. I was only pointing out that having a 90 billion euro contract stolen by another party is always going to cause some bad b
223.
▲
by
agent327
5y ago
You are very lightly skipping over the point where they already had a contract with France, worth 90 billion euro. If they didn't like the deal they were getting with France, they should have backed out before signing, rather than sign
224.
▲
by
agent327
5y ago
FWIW, I wouldn't argue it is necessarily a bad pattern, just a highly uncommon one; the sort of thing someone with a lot of experience can do, but that you wouldn't go teaching to beginners. I would also demand to see a comment ex
225.
▲
by
agent327
5y ago
I would like to firmly push for a new definition of what an exception is for. It's for _aborting a sub-task in your program, if it cannot complete it's assigned goal_. Unlike the meaningless "it's for exceptional situati
226.
▲
Coal replaces wind as most important energy source in Germany in H1
(renewablesnow.com)
85 points
by
agent327
5y ago
|
154 comments
227.
▲
by
agent327
5y ago
We regularly get excited stories about how wind is now the most important energy source in Germany, but it is important that people realize moments like that are exceptions to the rule. In general, most German energy comes from the worst po
228.
▲
by
agent327
5y ago
He pointed out what he seems to believe are genuine problems with the writing: no engaging story, no uplifting ending, whereas your rebuttal is nothing but an ad hominem. Right now I'd say he is making the better case for the book just
229.
▲
by
agent327
5y ago
You, like me, are a proud second-degree vegan: we only eat animals that eat plants. If you find yourself around vegans, you might also at some point want to casually throw the word 'vegavore' around, and then explain it means 
230.
▲
by
agent327
5y ago
What it invalidates is the notion that research that does not include RCT is automatically wrong. We currently see this in action in the way corona is being treated. When we were told that masks don't help stop the spread of corona, wh
231.
▲
by
agent327
5y ago
The longer code is typically generated because the compiler will generate vectorized code that provides enormous speedups in case of longer data sets. Take, for example, this code: https://godbolt.org/z/WEx3Gb5jr At -O
232.
▲
by
agent327
5y ago
A revival of the Amiga spirit is not going to be achieved through hardware, no matter how powerful it is. The kind of quality improvement the Amiga offered over its contemporary 8-bit brethren simply cannot be achieved anymore, given that w
233.
▲
by
agent327
5y ago
I'm ignoring plate tectonics on a daily basis. Years pass without me worrying about it or even thinking about it. Not sure why fiction would have to be different. A deeper point, I think, is that perhaps Charles Stross shouldn't b
234.
▲
by
agent327
5y ago
That second program must be the single worst example of exceptions ever written; a straw man if ever these was one. The key in understanding why this is the case lies in the realisation that ParseInt is a combined parser/validator, and
235.
▲
by
agent327
5y ago
That's supported too: fmt ("SELECT {:v}, {:v} FROM {:v} WHERE id = {}", colname1, colname2, tablename, id); The :v means "don't quote this, insert this string exactly as specified." It also has specialized hand
236.
▲
by
agent327
5y ago
Something like C++'s {fmt}, specialized for SQL. fmt ("SELECT foo, bar FROM mytable WHERE id = {}", id); 'id' gets properly quoted, so that's not a concern anymore.
237.
▲
by
agent327
5y ago
What if C++ actually allowed that comma? Because... it does.
238.
▲
by
agent327
5y ago
I've been a professional C++ programmer for 24 years now, and neither I, nor anyone I've worked with over this period, used this ridiculous style.
239.
▲
by
agent327
5y ago
The first article specifically says: "They are endowed with REASON and CONSCIENCE and should act towards one another in a spirit of BROTHERHOOD." (emphasis mine) That pretty much rules out using human rights as a stick to hit othe
240.
▲
by
agent327
5y ago
If you really cared about readability , you'd put your commas where normal human beings put them . Instead of in a silly place like that . Prefering structure over normal communication is not , typically , seen as a good thing .
More ›