Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_0w8t
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
1.
▲
by
_0w8t
3y ago
The error handling verbosity in Go should be blamed partially on the formatter that replaces one-liner if err != nil { return err } with 3 lines.
2.
▲
by
_0w8t
3y ago
From a technical point of view nothing prevents the scripting package to be just as informative with errors as bash and have a helper to log and clear the error. If it is not already the case, I call it a bug.
3.
▲
by
_0w8t
3y ago
There are plenty of web site builders that allow for a drag-and-drop construction. But people who use them are not programmers. I.e. programming is not supposed to be easy. So if one sticks to it, the problem has to be hard at least from th
4.
▲
by
_0w8t
3y ago
Experimentally one never observes waves. Light is detected based on its interaction with electrons and that is always by an electron absorbing a quanta of energy, not via some continuous process as would be the case with waves. Classically
5.
▲
by
_0w8t
3y ago
This describes 32 bit CPU. As opposite to V8, SpiderMonkey, Mozilla’s JS engine, uses 64 bit words and NaN boxing, even on a 32 bit CPU, to represent a generic JS thing.
6.
▲
by
_0w8t
3y ago
When there are more bits in a pointer than NaN 52 bits allows, the trick is to replace pointers with indexes from the start of JS heap. This is not efficient even with arrangement like having heap aligned, say, on 4GB or even more granular
7.
▲
by
_0w8t
3y ago
I.e. C# and many other languages transform a function with the yield statement into a state machine implementing the iteration protocol. This proposal does the opposite. It transforms the loop body into a closure passed into the iterator.
8.
▲
by
_0w8t
3y ago
Defer will be executed normally when the function exits. yield here is not a statement but a normal function.
9.
▲
by
_0w8t
3y ago
The big plus of stellarator design is inherent absence of plasma instabilities affecting tokamaks. Notice that future upgrade of Wendelstein may allow to hold plasma for a hour compared with minutes at best with tokamaks. Many physicists fo
10.
▲
by
_0w8t
3y ago
In modern JS engines with 64-bit CPU when the engine cannot deduce types and must use a generic word to represent any kind of values numbers (double values) are not boxed. Rather for everything else a NaN tag bit pattern is used. I.e. code
11.
▲
by
_0w8t
3y ago
The primary reason for Pimpl is to ensure binary compatibility for C++. QT uses it extensively precisely for this reason. Reduced compilation time is just a nice bonus.
12.
▲
by
_0w8t
3y ago
Chromium once supported unity builds. For me it speeded up builds from 6 hours down to 1 hour 20 minutes on a Windows laptop. And Chromium tries to make their headers reasonable. Chromium eventually dropped support for such builds. At Googl
13.
▲
by
_0w8t
3y ago
Bayesian inference is mathematically sound as it is based on a very generic postulates and allows to compare probabilities based in the current information and made a decision accordingly. With the proper approach the errors are automatical
14.
▲
by
_0w8t
3y ago
The article has not mentioned Bayesian inference, which allows to make sound decisions under uncertainty. For example, in practice the raven problem is not to guess if all ravens are black but to predict the color of the next raven if that
15.
▲
by
_0w8t
3y ago
Inferring the number of loop integrations or recursion levels is in practice impossible when the number depends on the user input. For a system language I would like to see that when the compiler cannot infer the bound on the stack size or
16.
▲
by
_0w8t
3y ago
To statically ensure a stack overflow does not happen requires that recursion is rejected by the type system. Austral does not do that so the stack overflow is a dynamic condition similar to memory allocation failures.
17.
▲
by
_0w8t
3y ago
Yet Austral returns optional types from any memory allocation function rather than calling abort. And stack overflow is a memory allocation failure, so why is the discrepancy? I.e. for the language focusing on correctness this is an unfortu
18.
▲
by
_0w8t
3y ago
One never writes such expression in a serious code. Even with move semantic and lazy evaluation proxies it is hard to avoid unnecessary copies. Explicit temporaries make code mode readable and performant: auto t = minus(vec1, vec2); mul_by(
19.
▲
by
_0w8t
3y ago
Markov’s variety of the constructive mathematics is just what Bishop did plus the assumption that Church-Markov-Turing thesis holds. One does not need to assume that to recover any result of classical mathematics applicable in the real worl
20.
▲
by
_0w8t
3y ago
The notion of uncountable set assumes certain axioms and classical logic. If instead one assumes rules of constructive mathematics, then one cannot construct uncountable set. Simplifying only computable numbers can exist.
21.
▲
by
_0w8t
3y ago
Also spot prices reflect the storage availability. The storage will be filled by October according to the existing contracts. I.e. there is no much room to receive more gas if it will have to be brought to Europe in the next few months. A r
22.
▲
by
_0w8t
3y ago
The E4X spec was just bad. There were too many corner cases with very unintuitive behavior or just plain spec bugs. I wish it was E4H focusing on needs of HTML with no xml namespace nonsense. It could have a chance then.
23.
▲
by
_0w8t
3y ago
QT is used for embedded systems that may run for 10 and more years. If a device requires certification, one does not want to upgrade to a newer QT as that may require to certify the software again, while for security fixes the requirements
24.
▲
by
_0w8t
3y ago
Spectre and other hardware bugs are not going to be fixed for code running in the same address space. The moment DB allows untrusted WebAssembly to run, then that code can read anything the DB server keeps in memory.
25.
▲
by
_0w8t
3y ago
In Norway there is no realistic option to have fiber cheaper than 45-50 Euro per month. Based on personal experience 10 MBit/s is enough for video including full HD options. In fact it worked better than 100 MBit/s that was shared
26.
▲
by
_0w8t
3y ago
It all depends on price details. In Norway one needs to pay about 20 Euro/month for a phone subscription with amount of data that allows, for example, watch YouTube or do video calls occasionally outside WiFi. Yet for 35 Euro/mon
27.
▲
by
_0w8t
3y ago
In Julia with multiple dispatch there is no problem to adding more things to the global namespace. But it does not work for Python, so it’s developers must be very conservative with global names.
28.
▲
by
_0w8t
3y ago
Naming intermediate steps require some non-trivial efforts. It can even distract from the main task of getting the results. In programming the code will be read multiple times and good names will help the future readers. But in data science
29.
▲
by
_0w8t
3y ago
With modern IDE writing JSDoc comments is a fast process
30.
▲
by
_0w8t
3y ago
10 years ago I have used Closure compiler from Google, https://github.com/google/closure-compiler/wiki/Annotating-T... , as a type checker. We had to use for production a different minimizer, not the closure
More ›