Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
commonlisp94
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
commonlisp94
3y ago
I assume you're using a screen to type this. Is there something inherently bad about videos on a screen? Or are you just unhappy with the content.
32.
▲
by
commonlisp94
3y ago
> there is no actual fact of the matter. This is true of all categories, so not a helpful comment. I suspect someone has a good enough definition.
33.
▲
by
commonlisp94
3y ago
All engineering technology is like this. The core of machine learning is multi-variable calculus and optimization that has been taught to math students since at least the 60s. I bet most EE graduates still couldn't provide a good inter
34.
▲
by
commonlisp94
3y ago
And your customers know that too.
35.
▲
by
commonlisp94
3y ago
The assembly example isn't a good comparison. We have compilers that can generate a lot of assembly tricks most programmers wouldn't write. We don't have a way compiler that can analyze the logical constraints of a programmin
36.
▲
by
commonlisp94
3y ago
> something about within an allocation and one past the end? Yeah, I forgot about that. So I agree there is some subtly which is likely to catch beginners. Your example could safely be: if (std::distance(begin, end) > 5) Ano
37.
▲
by
commonlisp94
3y ago
> A library author can spend ridiculous amounts of time That's true. But simply having knowledge of the goal and a few simplifying assumptions can beat all the optimization in the world. In other words, a polished sub-optimal approa
38.
▲
by
commonlisp94
3y ago
What does this have to do with the discussion?
39.
▲
by
commonlisp94
3y ago
> implemented in Python, A program which constructs an AST out of python classes and spits out GPU code is a compiler. The python is never executed. Trivially, compilers can generate code faster than their hose language, but that doesn&
40.
▲
by
commonlisp94
3y ago
> with lots of undefined behavior at the corners. What behavior is undefined in incrementing a pointer between a begin and end range?
41.
▲
by
commonlisp94
3y ago
A pointer is a valid C++ iterator. > but you trust it to optimize all that garbage away? Yep, if you learn about compilers you learn what kind of optimizations are easy and hard for them to make. The kind that just flattens a few levels
42.
▲
by
commonlisp94
3y ago
> It could be more performant No, it almost always is. The designers of a generic library can't anticipate the use case, so can't make appropriate tradeoffs. For example, compare `std::unordered_map` to any well written C hash
43.
▲
by
commonlisp94
3y ago
That's writing some other language in C syntax. You use arrays or you write a specialized version for the use case.
44.
▲
by
commonlisp94
3y ago
It's a nice thought, but in practice C binaries are orders of magnitude smaller than any other language. Also compilers make that tradeoff for inlining all the time.
45.
▲
by
commonlisp94
3y ago
> having the education/degree does not help you correlate the day to day work in the field with what you learned I also agree with that. The vast majority just aren't interested or did the minimum to pass classes, without real
46.
▲
by
commonlisp94
3y ago
I agree with that experience, but it's not clear how it relates to the topic we are discussing.
47.
▲
by
commonlisp94
3y ago
> US-centric view of tertiary education being a risk due to large capital investment I can't help but think European perception is a little exaggerated here. Yes, the live on campus and party at age 18/19 experience is expensiv
48.
▲
by
commonlisp94
3y ago
> I also tend to read more papers and technical books I have only met one self-taught person who reads anything like this. My experience is exactly the opposite. Most self-taught programmers are great at programming and solving business
49.
▲
by
commonlisp94
3y ago
I don't know, but this point is already refuted: > there can never be real progress ... > without having a programming language that is powerful enough Historically there have been plenty of interesting powerful languages on the
50.
▲
by
commonlisp94
3y ago
The operating system you are using is written in C.
51.
▲
by
commonlisp94
3y ago
I agree with this. Also, how/when did business sneak in here? that's the one that least belongs.
52.
▲
by
commonlisp94
3y ago
> they rely on the social norms of a society Norms like being honest and not stealing? society gets really expensive and unfriendly when we have to use enforcement instead of norms.
53.
▲
by
commonlisp94
3y ago
In modern times, this only applied to MSDOS
54.
▲
by
commonlisp94
3y ago
It would make a huge difference if that style were used more in practice. OOP is just functions that are only polymorphic in 1 argument, when you want it on all of them.
55.
▲
by
commonlisp94
3y ago
You're right, I left out a lot of life situations that could benefit. Let me be a little more specific: - if you're young you probably want to be around others to learn from. - if you're not well established, you want others
56.
▲
by
commonlisp94
3y ago
> it’s an obvious choice to use coroutines. I agree, but the other choice is to have traditional threads of execution that block. This simple strategy has delivered more successful projects than any other.
57.
▲
by
commonlisp94
3y ago
Organizations are structured as trees as a strategy to combat N^2 complexity. You talk up, or down. The tradeoff is of course N^2 relationships still exist in reality , so you duplicate effort, and sometimes collide, but it's a good tr
58.
▲
by
commonlisp94
3y ago
> Gee says that due to the demographic cliff they’re expecting 20% fewer students ‘over the next period of time’, > Alsop says that revenues will decrease over the next 4-5 years ‘given the demographic cliff’.
59.
▲
by
commonlisp94
3y ago
It's actually the other way around. Universities were originally for humanities, and science and engineering got attached. Maybe we just need separate engineering schools.
60.
▲
by
commonlisp94
3y ago
You just don't understand what's in a language degree. Also do you know a single person who has ever learned to actually speak a language with duolingo?
More ›