7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions
comment 7y ago · link · parent
Obviously I am not taking in information without skepticism, otherwise I would not have asked the question.
But if I can't read something like that and refute it, then obviously I don't understand the issue very well. The best way to remedy that is to ask (not ignorant silence), so I'm a bit disappointed with the other replies who ridiculed me for asking.
comment 7y ago · link · parent
If you want your language to be suitable for any purpose by using an intricate web of libraries depending on each other, you need those language features and deep theory. Think haskell, lisp, rust, etc.
If you kind of know what people will use your language for, and you build in the most important functionality, you aren't nearly so dependent on libraries. You just make the language accessible and as productive as possible. Think Go, erlang, PHP, SQL, javascript, VB.
comment 7y ago · link · parent
http://wattsupwiththat.com/2014/04/11/methane-the-irrelevant...
Can someone who knows better tell me if that's good science or not?
comment 7y ago · link · parent
I suggest more people read the first few chapters of Specifying Systems by Lamport. Maybe the rest is good also, but that's as far as I got.
It works through a trivial system (display clock) and combines it with another trivial system (display weather).
Nothing Earth-shattering, but it really stuck with me. Thinking about it at that level gave me a new appreciation for what combining two systems means.
comment 7y ago · link · parent
I looked specifically at Ada, and for my use case macros are quite important. If I were to use Ada, I would need a separate code gen step.
I also need concurrency without making new threads. I know Ada can do async but it doesn't have something like tokio.
A shame. I wanted to give Ada a try, but didn't get very far before losing hope.
comment 7y ago · link · parent
I need a language with minimal runtime, good support for the C ABI and structure formats, decent macros, good ecosystem and community for mainstream programming needs, and support for async.
Where else can I find that whole package?
Go has too much of a runtime, GC, and doesn't support C structure formats very well (i.e. best case you need to copy/translate them to Go; you can't operate on them directly).
C++ can do it, but the details are ugly and the result unsatisfying.
Ada lacks macros and a mainstream ecosystem.
So... what do I use if not rust?
comment 7y ago · link · parent
See my example where a pure-rust postgres extension can start a background worker, listen on a port, and handle concurrent network requests, multiplexing them over a single backend calling a non-thread-safe internal postgres API.
That's possible because rust has no runtime to get in the way, it can use C structs natively and seamlessly, tokio offers the CurrentThread runtime (which doesn't spawn new threads), and a bunch of other details that need to be done right.
Try doing that in a pure-Go postgres extension.
comment 7y ago · link · parent
I can't imagine doing that project it any other language.
comment 7y ago · link · parent
Rust is the first language that is both truly good as a low-level systems language and also truly good as a high-level modern labguage at the same time.
To me, it's amazing to finally have another option aside from just C/C++.
Technically, I might have had some other options before, but rust gets it right.
comment 7y ago · link · parent
For instance, I use the CurrentThread runtime in tokio, because I'm using the rust code as a plugin to Postgres, and it accesses non-thread-safe APIs.
What you are asking for is essentially for the futures runtime to be hidden from you. That's fine for some languages that already have a big runtime and don't need the flexibility to do things differently, but doesn't work for rust.
comment 7y ago · link · parent
Not exactly insightful.
Go ahead and point out whatever bad policies you think lead to this outcome, and why you think they should be changed. But calling people hypocrites on a tangential topic (social services) doesn't add anything.
comment 7y ago · link · parent
[1] https://www.supremecourt.gov/opinions/17pdf/16-1466_2b3j.pdf
comment 7y ago · link · parent
This isn't limited to movies. Economic stimulus is ever-present, eliminating the business cycle and creative destruction. Our modern conception of politics (at least before Trump was elected) was to be boring and risk-free, moving along the same paths even if a course correction might make more sense.
And as for personal safety, we are amazingly safe, but terribly frightened (I assume becasue we lost all calibration for danger).
As for life in general, everyone seems compelled to go to college because it's the safe life plan.
I'm not suggesting that we give up the gains we've made. But I can't help but wonder what we've lost in terms of true creativity and freedom.
comment 7y ago · link · parent
I don't think that's quite it. People get comfort from following a plan. Go to college, take a bunch of loans, and it will all work out.
They think if it doesn't, someone will bail them out because they followed the plan. Everyone else is in the same boat anyway, and maybe one of them will find a solution, or they can band together and demand something from someone else.
That doesn't line up with reality though. A lot of people do get left behind. The people with the "plan" are nowhere to be found, and were just repeating what worked for them without looking at the new numbers.
comment 7y ago · link · parent
Does is it still sound easy?
No. Most people would go easy on someone who stays up late studying or has some insomnia, and still drives the next day. Or a designated driver that got to bed late because they drove their friends home. But why? They are impaired and a threat to life as much or more than someone who has a glass of wine or two with dinner and then drives.
comment 7y ago · link · parent
So, go ahead and punish people for impaired driving. But punish them like you'd want your daughter, cousin, or yourself punished. Not like a criminal who has crossed a major moral line.
comment 7y ago · link · parent
Driving drunk 100 miles an hour the wrong way when kids are going to school in the morning is different than driving 40 on major roads after having a cocktail or two with dinner. Yet the law basically treats the latter like the former.
comment 7y ago · link · parent
Then, all of a sudden we are in a spiral of high interest rates.
It's like we are hooked on debt, and that's fine as long as it's free and keeps coming. But when the party is over it will be very painful to see that federal spending has to fall by a third overnight.
comment 7y ago · link · parent
Neonicotinoids are probably good compared to a lot of alternatives. But by being one of few approved choices, they are used to such a huge extent that minor problems become major.
Another example is gasoline. It's very clean, especially with a catalytic converter. It's so clean that one of the worst things you can say about it is: if billions of people use gasoline, it upsets the balance of CO2.
If we use a little more variety, even if average "badness" seems worse, we will be better off. But our policies push us toward homogeneity.