Viewing profile — WoodTree
WoodTree
HN member- Joined
- Sun, Dec 15, 2019, 11:26 PM UTC
- HN karma
- 13
- Public activity
- 20 items
- HN profile
- View on Hacker News ↗
About WoodTree
No profile information was provided.
Recent public activity
-
comment
Comment #21862968
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 threa…
-
comment
Comment #21855243
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 reg…
-
comment
Comment #21855064
The Romans or the Chinese?
-
comment
Comment #21855034
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.
-
comment
Comment #21855006
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 ent…
-
comment
Comment #21854811
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…
-
comment
Comment #21854650
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++…
-
comment
Comment #21854522
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.
-
comment
Comment #21854421
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 o…
-
comment
Comment #21854348
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.
-
comment
Comment #21854283
By compiling you mean rewriting it in C or Cython. Which is only a good idea for certain applications.
-
comment
Comment #21854274
Complex languages don’t result in better programs. Else we would see Scala and C++ everywhere instead of them being relegated to narrow niches.
-
comment
Comment #21854258
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 sh…
-
comment
Comment #21854193
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 t…
-
comment
Comment #21841435
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 …
-
comment
Comment #21840103
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 probl…
-
comment
Comment #21833076
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 integ…
-
comment
Comment #21833016
Infinity is a valid floating point number in the ISO standard. However integer division by 0 isn’t. div 1 0 will fail.
-
comment
Comment #21832958
Because / is floating point division, and infinity is a defined value in floating point numbers. Try it again with div for integer division.
-
comment
Comment #21799703
Apple has been selling laptops with broken keyboards for years, not to mention all of the other problems caused by insufficient cooling.