Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions

Submissions

comment 7y ago · link · parent

Thank you for a simple, intellectual answer.

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

I think the tension is more between people writing executables and people writing libraries.

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

OK, let me change my question to:

Some random person told me that the parts of the spectrum that are absorbed by CH4 are already absorbed by H2O, which is way more prevalent, so the CH4 doesn't matter much.

Is that true/valid/scientific?

comment 7y ago · link · parent

I didn't see that garbage; reading on mobile. Was just looking at the charts and it seemed like a reasonable argument.

Basically it's saying that the spectrums absorbed by CH4 are already being absorbed by H2O. What part of that is not correct?

comment 7y ago · link · parent

The following says that methane is not an important greenhouse gas:

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

"We are blending complex systems that had never interacted together before with the expectation that they collaborate forming a single, larger system."

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 was planning to look more carefully at D if rust didn't work out.

comment 7y ago · link · parent

Ada does have a good ecosystem and community, just not what we'd call modern and mainstream.

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

Features aren't just checkboxes. It's about the whole package and how they make everything work together.

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

https://github.com/jeff-davis/postgres-extension.rs

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

There is a reality behind the hype. I know, because I've been working on https://github.com/jeff-davis/postgres-extension.rs, and I've hit real problems. Those problems have been resolved one by one over the years.

I can't imagine doing that project it any other language.

comment 7y ago · link · parent

Yes!

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

In rust, they separate the concept of a future from how it's actually run. Tokio is one way to run a bunch of futures, and it has many different options.

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

So... Many people are hypocrites and/or inconsistent in their politics?

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

"Lots of people vote against “socialism” and then collect Medicade, social security and disability."

That reasoning is shallow. They can't opt out of paying the taxes that support those programs; so what sense does it make opting out of the benefits?

comment 7y ago · link · parent

It's quite possible that there will be a court challenge to the non-political requirement. The recent case[1] about union dues for public-sector employees made clear that SCOTUS doesn't want to be in the business of deciding what is political speech versus some non-political opinion.

[1] https://www.supremecourt.gov/opinions/17pdf/16-1466_2b3j.pdf

comment 7y ago · link · parent

"the gradual but steady elimination of risk"

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 have all of your personal data. But it's OK; I don't share it with anyone outside the Milky Way Galaxy.

At least, it will take a while for our radio transmissions to reach that far. By the time it does reach another galaxy it will be a part of history.

comment 7y ago · link · parent

"People are generally more optimistic about their futures and irrationally excited about what they consume."

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

Can someone comment on:

http://projectvesta.org

And it's viability? It seems to offer a way to scale carbon sequestration in step with fossil fuel extraction.

comment 7y ago · link · parent

Don't drive unless you've had a solid 8 hours of restful sleep. Drowsy driving is actually more lethal.

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

Even without other significant violations, the difference between 0.079 and 0.08 is hugely punative.

comment 7y ago · link · parent

What it does is make people realize that nearly everyone who drives, drives a little impaired sometimes. That stops us from thinking this is about "other" people who can be punished to an arbitrarily high degree. Instead, now we have to acknowledge that it will be our sons, daughters, spouses, uncles, and cousins. It's just a matter of whether they got pulled over after a restless night or trying to finish a school assignment or working too late thr night before.

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

Drowsy driving causes more deaths than drunk driving plus drugged driving combined. Ever driven on less than a solid 8 hours?

See _Why we Sleep_ by Matthew Walker.

comment 7y ago · link · parent

I think what's missing is any sense of perspective or judgement in the laws.

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

Social exclusion is an overused form of punishment. It eliminates any chance of education or understanding on either side. Done often enough, and it polarizes everyone.

comment 7y ago · link · parent

A "walk out" is a form of protest that doesn't mean quitting. It does risk being fired, but the risk is pretty low in this case.

comment 7y ago · link · parent

They seem bad because they are everywhere and neither you nor the bees can escape.

If we employed more variety, then some areas would be good for bees and bad for owls, other areas would be good for owls and bad for bees, and things could sort themselves out a bit.

comment 7y ago · link · parent

The problem is not that we can't repay the debt. The problem is that we are so dependent on increasing our debt with deficit spending. If we inflate our currency to get out, then new debt will be at a higher interest rate and so will all debt we roll over into new debt.

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

There's a big enviromental problem with the notion that things are either approved/acceptable or not; binary.

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.

1
151617
87