HNHacker News
TopNewBestAskShowJobs

wireprotocol

7,244 karma · joined September 25, 2010

submissionscomments
wireprotocol··on California’s Criminal Cops
One thing weird to me about the gun debate is that it always seems to exclude police -- on duty or off, current or former -- and nobody questions that in the slightest.

For instance, California has a handgun roster. If a citizen buys a handgun, it needs to be on a special list. The last time a model was added was 2013 [1]. Supposedly it's to make sure pistols are safe. But if you are a police officer, go ahead and buy a 2019 model! In fact, go ahead and buy a 2019 model, and then sell it for 2X to a normal citizen, if you want. A good side business!

How does any part of that make sense?

I guess the theory is that officers are well-trained and responsible, but where is the evidence of that? And why can't anyone else take the same magical steps to show their worthiness?

[1] Due largely to the "microstamping" requirememt, which is impractical to meet, but required for new models (some very minor variants are still allowed without microstamping). See https://en.m.wikipedia.org/wiki/Microstamping

wireprotocol··on Vaping Illnesses Are Linked to Vitamin E Acetate, CDC Says
Most people who die of cigarettes do so after quite a long time of using them. I'm not sure that the data are comparable yet.
wireprotocol··on Go Turns 10
It seems that you are agreeing with me.

A standard library for a language with a purpose (like Go) should include a lot of stuff related to that purpose. That avoids the need for an intricate web of dependencies and specialized third-oarty code, but ties the language to its purpose a bit more.

A standard library for a use-for-anything-and-everything language (like rust) might be smaller because it relies more on third-party libraries for the specific purposes you have in mind.

wireprotocol··on NASA Flew Gas Detectors Above California, Found ‘Super Emitters’
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.

wireprotocol··on Go Turns 10
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.

wireprotocol··on NASA Flew Gas Detectors Above California, Found ‘Super Emitters’
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?

wireprotocol··on NASA Flew Gas Detectors Above California, Found ‘Super Emitters’
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?

wireprotocol··on NASA Flew Gas Detectors Above California, Found ‘Super Emitters’
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?

wireprotocol··on Blending complex systems made my latency 10x higher
"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.

wireprotocol··on Async-await on stable Rust
I was planning to look more carefully at D if rust didn't work out.
wireprotocol··on Async-await on stable Rust
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.

wireprotocol··on Async-await on stable Rust
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?

wireprotocol··on Async-await on stable Rust
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.

wireprotocol··on Async-await on stable Rust
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.

wireprotocol··on Async-await on stable Rust
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.

wireprotocol··on Async-await on stable Rust
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.

wireprotocol··on Farm country feeds America, but try buying groceries there
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.

wireprotocol··on Farm country feeds America, but try buying groceries there
"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?

wireprotocol··on The IRS has granted nonprofit status to a daily newspaper
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

wireprotocol··on Martin Scorsese: I Said Marvel Movies Aren’t Cinema. Let Me Explain
"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.

wireprotocol··on I Got Access to My Secret Consumer Score
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.

wireprotocol··on U of Chicago projected to be the first U.S. university to cost $100k per year
"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.

wireprotocol··on Flood of Oil Is Coming, Complicating Efforts to Fight Global Warming
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.

wireprotocol··on Alcohol breath tests are often unreliable
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.

wireprotocol··on Alcohol breath tests are often unreliable
Even without other significant violations, the difference between 0.079 and 0.08 is hugely punative.
wireprotocol··on Alcohol breath tests are often unreliable
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.

wireprotocol··on Alcohol breath tests are often unreliable
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.

wireprotocol··on Alcohol breath tests are often unreliable
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.

wireprotocol··on Those People We Tried to Cancel? They’re All Hanging Out Together
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.
wireprotocol··on Some Blizzard employees are dreading BlizzCon
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.
Page 1 of 34Next →