Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
WoodTree
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
WoodTree
7y ago
Map, filter, and fold are higher order functions, functions which take functions as parameters. You are misusing the word callback. A callback is a function passed to another thread that will maybe be invoked later as a response (like it c
2.
▲
by
WoodTree
7y ago
Regulation doesn’t mean it would be safer, just more bureaucratic. There are plenty of examples in the US of regulators failing to properly regulate like in Flint. Adding these regulations often benefits the capitalists more, as it raises
3.
▲
by
WoodTree
7y ago
The Romans or the Chinese?
4.
▲
by
WoodTree
7y ago
In a functional language those details should be irrelevant. But of course they are relevant in practice, and map is usually just a for loop.
5.
▲
by
WoodTree
7y ago
The thing about C++ is that you need to recruit specifically for C++ programmers in a way that you don’t need to recruit for programmers in many other languages. The barrier of entry for C++ is high enough that you can’t just take your typ
6.
▲
by
WoodTree
7y ago
Most stuff is web stuff now. And I’m not talking about front end, we do a lot of back end work in TypeScript because node is lighter than the JVM which makes it a better choice for lambdas. I’d say it also has more sophisticated static ty
7.
▲
by
WoodTree
7y ago
C/C++ is not a language. I am also someone who has use C and C++ for years as part of my work and have mostly moved on to TypeScript because there isn’t much reason to use C or C++ anymore unless you are in one of those niches where y
8.
▲
by
WoodTree
7y ago
They don’t have to be glorified for loops, even if they usually are. Map and Filter should be capable of running in parallel or asynchronously, and some languages provide this.
9.
▲
by
WoodTree
7y ago
That is a niche, because most applications are IO bound and not compute bound. What even qualifies as “systems programming” is ill defined. Far more critical business systems run on Java and C# servers than C++. If there are C++ componen
10.
▲
by
WoodTree
7y ago
Java killed it for general purpose use in the 90s. It’s never your first option unless you are in areas like games, graphics, some embedded work, or quantitative trading.
11.
▲
by
WoodTree
7y ago
By compiling you mean rewriting it in C or Cython. Which is only a good idea for certain applications.
12.
▲
by
WoodTree
7y ago
Complex languages don’t result in better programs. Else we would see Scala and C++ everywhere instead of them being relegated to narrow niches.
13.
▲
by
WoodTree
7y ago
Python has become less functional over time. It’s also not a particularly good OO language either. It’s really a more descriptive sort of bash that became ubiquitous despite its short comings.
14.
▲
by
WoodTree
7y ago
Nesting functions like this can have a bad performance impact because functions in Python are objects. Normally, all of those function objects are instantiated once when you load the module. However nested functions will be instantiated a
15.
▲
by
WoodTree
7y ago
Optimizing compilers are good at optimizing obvious code, so this usually isn’t a trade off. Many of the clever hacks you can find in books from the 80s are irrelevant now because the compiler can figure out what your naive code is doing a
16.
▲
by
WoodTree
7y ago
Floats aren’t reals, at best they are an approximation for certain calculations. +0 and -0 are defined and distinct floating point numbers. Floating point math is known to be problematic and does not evenly distribute numbers on the real
17.
▲
by
WoodTree
7y ago
This is false. Integer division by zero is undefined, but floating point division is perfectly fine. Many languages have different operators to distinguish floating point and integer division, like pythons / for floats and /
18.
▲
by
WoodTree
7y ago
Infinity is a valid floating point number in the ISO standard. However integer division by 0 isn’t. div 1 0 will fail.
19.
▲
by
WoodTree
7y ago
Because / is floating point division, and infinity is a defined value in floating point numbers. Try it again with div for integer division.
20.
▲
by
WoodTree
7y ago
Apple has been selling laptops with broken keyboards for years, not to mention all of the other problems caused by insufficient cooling.