71 karma · joined Aug 10, 2017 (9y ago) · 249 submissions
comment 6y ago · link · parent
For any particular combination of compiler, OS and computer architecture there are no 'undefined behaviors'; you only care about the concept if you want portability to a different compiler/OS/architecture.
So the idea that C++ sucks because of 'undefined behavior', so let's use some random language without an ISO standard or any portability guarantees at all is completely and utterly insane.
comment 6y ago · link · parent
If you've done any serious (large, long, multi-team) projects in a dynamically-typed language, you know how quickly they turn into a big ball of mud where you're spending more time refactoring your refactorings than writing useful code.
comment 6y ago · link · parent
Good lord, if that's the kind of human capital that's involved in making next-generation languages, then I have no doubt what will still be used to write serious software in 2080.
(Hint: not Rust.)
comment 6y ago · link · parent
Yeah, they're called 'HTML forms'.
If you want a standards-compliant, accessible UI that works everywhere then just use them.
If you want some godawful 'SPA' with UI elements that 'communicate your corporate style', then no amount of standardization will help here.
comment 6y ago · link · parent
This doesn't match reality. In reality, many Python projects have way more lines of code than equivalent C++ projects. Probably because of the 'expressiveness' you cite; you can't really showcase your love of coding and job security though artificial complexity without 'expressive' bells and whistles. (This is the idea that lead to languages like Go, I'm pretty sure.)
That said, C++ is plenty 'expressive' itself.
comment 6y ago · link · parent
This never happens in the real world; not unless the 'very experienced' bit is experience only in languages like PHP or Python.
comment 6y ago · link · parent
The real-world fact is that Rust is, as of March 2020 at least, an entry-level systems programming language. It's used as a stepping stone by former PHP/Python/Go programmers, who are very intimidated by C++, to get into performance-oriented coding.
Nobody actually writing embedded or sensitive code (airplanes, nuclear power stations, etc.) is doing it in Rust.
comment 6y ago · link · parent
Performance-oriented code implies everything is on the stack and/or packed into large arrays, at which point you don't need a GC after all.
comment 6y ago · link · parent
The point of 'really really need to' has long been passed and you didn't notice it.
(Unless you use an entry-level $200 notebook for development, which you probably don't.)
In other words, please please eat your own dogfood. Your users aren't browsing your 'amazing websites' with a development notebook.
comment 6y ago · link · parent
I don't know of anyone who actually uses Rust in that niche.
Everyone who uses Rust is using it because of "C++ is hard, let's go shopping instead" syndrome.
I.e., at this point it's a language for beginners to ease themselves into programming without training wheels and eventually graduate to real big boy programming languages.
comment 6y ago · link · parent
If you're the kind of person who wants static linking then you really don't want these features.
The real problem is that statically linked programs under Linux don't (didn't?) support VDSO, which means that syscalls like gettimeofday() are suddenly orders of magnitude slower.
In the end, we had to do a kind of pseudo-static linking - link everything static except glibc.
comment 6y ago · link · parent
It's a clean, minimal, purely functional Lisp-like language. Nothing 'insane' or 'undebuggable' about it.
(Well, maybe if you're the kind of person who only ever coded Qt-style OOP C++98 in your life you might be shocked, but for the rest of us there is nothing surprising or special about C++ templates.)
comment 6y ago · link · parent
If you have text that's laid out with a fixed number of columns and a dynamic number of rows, than what you have is exactly a table.
Absolutely no reason to get your underwear in a bunch in a rage of hipster semantic pseudo-purity just because it's not literally a table of Excel figures.