3 ms·
> You realize they're just hash maps / dictionaries right? That's only a conceptual idea. In reality, the JIT uses real arrays and dynamically generated struct
by hajile 4y ago
> You realize they're just hash maps / dictionaries right?
That's only a conceptual idea. In reality, the JIT uses real arrays and dynamically generated structs.
You can't actually implement them directly as conceptually described anyway. You have to have a has of boxed pointers and when you get around to adding functions with types, things get really weird. The class implementation is actually much more simple in many ways (not to mention being much faster).
> You realize you can write everything you wrote pretty directly in C++
I know you can't write curried functions "pretty directly" in C++ (Python and Lua are the languages I was discussing directly and both are far better for UI work than C++). Give it a try and post the results. I'd be very impressed if it took even just twice as many lines of typical C++ code.
- CyberDildonics 4y agoI don't even know what point you're trying to make anymore. You originally said you think C++ takes five times as long as javascript and that most C++ programmers learned it before javascript existed. Have you ever used modern C++?