Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
syockit
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
211.
▲
by
syockit
7y ago
I'm not sure what you mean by safe in this context. A language that forces type casts to be explicit? That throws runtime error when invalid/imprecise cast is done?
212.
▲
by
syockit
7y ago
Why not nix the range check and just rely on the cast? As pointed out by another poster above, there are double values outside the ±2^53 but fits inside long.
213.
▲
by
syockit
7y ago
I'd say just put volatile and be done with it. Now your -O3 will also break, but at least it's consistent with -O0 :p
214.
▲
by
syockit
7y ago
When doing floating point arithmetic on the x86 though, it can extend to `80 - 1 (sign) - 15 (exponent) = 64` bits. So if the result of a floating point just so happens to have zero exponent, the mantissa can fit just right in a long int.
215.
▲
by
syockit
7y ago
If people are buying more then it means more demand, leading to increased price, unless there was an excess in supply (production capacity) in the first place.
216.
▲
by
syockit
7y ago
Here is a simple back of the envelope calculation to demonstrate the idea. Revenue Cost Gross Rate Tax Profit 1000 700 300 20 60 240 1020 700 320 25 80 240 1000 680 320 25 80 240 Of course, i
217.
▲
by
syockit
7y ago
And when the shareholders want to maintain their after-tax income, they can certainly pass the buck to the customers or the employees, to a certain extent.
218.
▲
by
syockit
7y ago
In fact, there's a new issue opened (again, from Rob Pike) in response to this article: https://github.com/golang/go/issues/36313
219.
▲
by
syockit
7y ago
I was about to ask the same. One of the things I badly needed was persistent logs. I googled around and found https://github.com/davisonio/awesome-irc which lists bouncers that serves the purpose. Not really looking fo
220.
▲
by
syockit
7y ago
Well, this is an arcade machine, and the setting is much more casual, so ikko is just as acceptable. The problem is, as GP pointed out, with ireru. I can think of some alternatives 1. koin wo ikko irete kudasai 2. koin wo ikko ireru no da!
221.
▲
by
syockit
7y ago
NewsGuard gave Breitbart green rating this year, citing that it regularly issues corrections. Facebook's choice of news sources probably works on the same guidelines. Of course, the good sources are the ones that do not publish errors
222.
▲
by
syockit
7y ago
That's not how big organizations work. Having 100,000 people doesn't translate to having proportionally as many people with skills to do testing and QA. Human resources are not really that fluid.
223.
▲
by
syockit
7y ago
I thought KOHCTPYKTOP would be featured :( It got me into pondering how actual logic circuits work (as opposed to theoretical circuits with instant output).
224.
▲
by
syockit
7y ago
Is the OOM problem still there even after Quantum release? This was the main turn off factor for me with FF long ago, and when the OOM fails to even trigger, the famous swap thrashing occurs. I tried again with Quantum, but then there were
225.
▲
by
syockit
7y ago
> now the Trump administration builds walls to keep out immigrants like the Lehmans I couldn't find sources stating the Lehmans immigrated illegally.
226.
▲
by
syockit
7y ago
Interesting that the concept is based on steam engine. Would there be a way to recondense the steam for reuse, or did they plan to just release all of them? Then they would need to run on water, much like the steam locomotives of the past.
227.
▲
by
syockit
7y ago
Sometimes I wonder how the Chinese felt about the blatant IP theft by the British ages ago. I however am grateful for the fact that tea became more accessible due to that. We wouldn't have Assam and Darjeeling otherwise.
228.
▲
by
syockit
7y ago
Reference is among one the things I really want to be included in C. Does it break anything if it's introduced to the standard? On the other hand, I still prefer C to C++ mainly due to the compile time (an incremental compile in a typi
229.
▲
by
syockit
7y ago
Yes. # fmt: off unformatted code goes here # fmt: on
230.
▲
by
syockit
7y ago
The part when they said they spent a lot of money to port to C/C++ but couldn't get same efficiency/speed, that's the problem with most porting endeavours: you need people who grok both languages you're porting from
231.
▲
by
syockit
7y ago
Sometimes I confuse the meaning of light-weight to be something that "does simple thing quickly" instead of "easy to setup". The last time I played with Mathics (maybe 2 years ago) it was still much, much slower than Sym
232.
▲
by
syockit
7y ago
It could also be mostly text, but mixed with ligatures having their own codepoints (sometimes non-Unicode).
233.
▲
by
syockit
7y ago
Wow. That somehow explains why we end up having very dull monotonous icons in many things today. One of the GUI desktop applications in my company had a redesign for a new release, and they opt to go for the Material Design[1] icons. I rem
234.
▲
by
syockit
8y ago
My experience with Delphi-based Windows software is that they always load quickly and and most things are snappy, in contrast to most modern programs. I've always wondered if it's due the language itself, but then again modern pro
235.
▲
by
syockit
8y ago
I'm rather interested in what kind of software developed after Y2K still exhibiting Y2K bug, and how it affects the usage. Is it made with the assumption that it's going to record only post-Y2K dates, and somehow user manages to i
236.
▲
by
syockit
8y ago
Regarding #4, I don't write Java at work, but don't people use IDE to write them? It's easy to check the parameter order with it. (When I used Netbeans for C programming, the hints that automatically come out really helped me
237.
▲
by
syockit
8y ago
That requires you to have ssh server running if you to use it with WSL. You can't use it as the frontend to powershell or cmd. That said: yes, it's alive and well. I'm using it at work, mostly because that's what everyon
238.
▲
by
syockit
8y ago
You could reshape it ( https://docs.julialang.org/en/v1/base/arrays/#Base.reshape ). But if you're interfacing with libraries written with C interface you'd still have to subtract for both offs
239.
▲
by
syockit
8y ago
I couldn't find other IDEs that fulfill my need for remote C/C++ development (not just debugging). Maybe Eclipse has that feature as well, but the last time I tried it required me to install Java on the remote machine and start th
240.
▲
by
syockit
8y ago
Something to do with python 3 using long† integer as the default int, which can be arbitrarily long, so it may have slower arithmetics. † not to be confused with the typical C long int type.
More ›