skysight-inc/HackerNews huggingface dataset:
yes, and to be fair, most driving is pure drudgery, going back and forth to the same places over and over, often zoning out on the tail lights of the car creeping along in front of you. it's understandable how things got this way, but it's certainly not desirable.
The original was not better. More importantly, recall that Haskell's type system is unsound, so it's not like you can trust your Haskell code either. Just because it type-checks does not mean that it works. In either language, you'll want to write some tests. I mentioned Hypothesis for Python; for Haskell, there's also QuickCheck.
Neat. How did you do that? (Seems like something a language ought to forbid, anyway).

edit: ok, from what I've deciphered from your Ruby code, it's nothing special. You've declared a global boolean and every invocation of function "p" flips the value, so it's only a parlor trick and nothing to do with the expressivity of the language. Any language with side-effects and mutable globals will achieve this trick in the same manner. It's a trick because your first "p" and your second "p" aren't the same "p", so there's no real violation of the "law of non-contradiction".

What about the rest of my comment? The expression problem? That getters/setters are an anti-pattern in OOP languages (just ask Alan Kay...)?
I definitely understand the concerns that make people want encryption for everything -- preventing governments and ISPs from messing with your content or spying on you. I don't want that either, and I'm glad we have HTTPS to help fight that.

But everything is a tradeoff, and there are actual downsides here. Nowadays, Chrome and Firefox try pretty hard to make you think all non-HTTPS sites are bad for you. What about old web servers that people never bothered to update? They effectively become "broken" without actually breaking. There's tons of great information on sites without updated certs that becomes that much harder to access because of this.

There's also the concern about your actual codebase. Hypothetically, if you're building an HTTP client from scratch, you can write, know and understand every line of code in your project yourself. If you want HTTPS support, you're basically forced to link with OpenSSL, and this is almost guaranteed to take the total percentage of "your code" in your project from 100% to less than 10%. (Probably more like 1%.) You no longer actually know what's going on in your program anymore. Maybe this isn't a concern for most people, but it does matter to me -- and I suspect there are a lot of people who would care a bit more if they thought about it for a few seconds.

So yeah, HTTPS is great. But everything is more complicated than it seems.
I don’t think you can simply educate people not to text and drive.

Governments are ramping up signs and laws against texting and driving and it doesn’t appear to be doing anything to stop the problem. People know it’s bad but they don’t care because they haven’t personally killed someone yet. Just like they’ve treated speeding laws for decades.

Surveillance apparatus that directly hits people in the pocketbook on a frequent basis with fines is the only way to solve this problem that keeps humans behind the wheel IMO (we had a thread recently about such cameras that are being tried in Australia). Or autonomous cars or a massive and incredibly expensive redesign of our cities and transportation network to get people out of cars.
But you can do something else if you’re not driving.
Environmental impacts of training AI models
I miss bathroom humor scribbled on the wall, such as:

What are you laughing at? The joke is in your hand.
Commemorated in a comic here:

http://www.veritablehokum.com/comic/the-pig-war/
> Anyone remember the FBI and Apple case a few years back? How quickly the FBI hacked the phone after Apple wouldn't cave?

To be fair, Apple is working to ensure FBI won't be able to do that next time.
Oh wait I think it was hql from hibernate
I see a lot of similarities between this and YC's attempt at UBI[0], one thing that was pointed out a few times in the YC launch thread was that if you give a small subset of people $500/mo, then yeah of course they'll experience immediate relief, because nobody else they're competing with also got $500/mo. But if everyone gets $500/mo at the same time, we can't be sure the same will happen. The market might respond differently and suddenly rice will cost $50/lb (or it might not, I don't know, but this study doesn't prove it won't)

Overall this is a cool idea, I'm glad that 125 people got the help they desperately (according to the article, anyway) needed, but I don't think this really indicates anything broader.

[0]: https://basicincome.ycr.org/
The idiom is damaged by careless use. It reminds me of some friends who insist that "penultimate" means "ultimate"...
What is TLS?

> Part of libc such as pthread is very hard, and so does the dynamic linker.

What does this mean? I'm having trouble parsing this as English much less making sense of the argument :)

> It's a pretty hard task to tackle libc (not just string functions, obviously), maybe for the same reason there're only a few libc implementations (support full dynamic linking).

Why does libc ship with string functions in the first place? What is special about strings that they are included in libc while other data structures (to my knowledge) are not? Presumably you don't need strings to implement malloc or other parts of libc?
Any example what you mean process control chart ? Is it in sense of process control theory ?
I know it’s not ideal from the point of view of UBI proponents, but why wouldn’t they have blocked cash withdrawals from the cards? It would have provided much more useful data (if made it a little less convenient).

I suppose it’s a useful datapoint in itself that the recipients did choose to withdraw large portions as cash. They’re probably largely unbanked segments of the population.
To be honest, I think wind resistance would play a lot bigger factor than people give it credit for since its force scales nonlinearly with velocity.

At 1000 or even just 600 km/h, wind resistance would do some damage just by letting off the accelerator.
Isn't this a bit like saying we need to install government controlled cameras in everyones houses because people are selling drugs from within their living rooms?
Why not let the function in the coroutine exit normally?

Maybe I should go read the docs. Killing a coroutine from the outside looks like poor design/bad idea.
I commute by train to New Haven on the same tracks that Acela uses.

The existing track corridor in New England is not appropriate for true high-speed train service. That really requires new right-of-ways, which would be extremely expensive in the Northeast.

There are currently plans for the next version of Acela but it is more about replacing aging equipment than any true speed upgrade. The Acela trains are almost 20 years old but I've never been on one as the price difference from the regular service isn't worth the small increase in time. Here are some numbers. I'm showing the cheapest "Saver" fares which are limited, must be purchased in advance, and have strict refund rules. I just picked November 4 as the date for advanced purchase (about +30 days):

NYC to Washington DC.

Acela Non-Stop: $137, 2h37m
Acela Regular: $137, 2h57m (+20m from non-stop)
NorthEast Reg: $54, 3h25m (+48m from non-stop)

Here are Boston to D.C:

Acela Non-Stop: $144, 6h39m
Acela Regular: $144, 7h5m (+21m from non-stop)
NorthEast Reg: $81, 7h59m (+1h20m from non-stop)

Everyone swooning over the train infrastructure in China seems to overlook the raw power that the Chinese government wields to claim right-of-ways, fix labor rates, and so on. It is also almost impossible get a good sense of the financial structure of those projects. How much money was put into them? Could that money have been better spent elsewhere? What is the debt structure? The ROE? The environmental impact?
Yes, I know, it's been brought up plenty. But keep in mind "hate speech is protected" is not popular in most legal circles (but is kind of accepted with most people I know, and has some major dissenting legal opinions in support of it).
Or at least stop carrying a black umbrella dressed in all black, the umbrella doesn't need to be fluorescent yellow, but at least non-black -- I think pedestrians don't realize how hard they are to see on a rainy night. My umbrella is yellow (not fluorescent), my jacket is brightly colored with reflective accents and my backpack has reflective tape.
You're already linking against far larger libraries that you probably don't understand completely anyway! For example, glibc... So I don't think this is a valid excuse against the "HTTPS Everywhere" initiative.
If pedestrian fatalities are up, and other traffic fatalities aren't (I don't know if that's true), I'd lean toward pedestrians are staring at their phones, rather than drivers. Personally, I walk around while reading all the time.

I assume driveways/parking lot entrances count as non-intersections. I pay attention when I cross an intersection while reading. I pay somewhat less attention (though not none) when passing the entrance to a parking garage or a driveway.

(But this is all conjecture. No data to back this up.)
Glassdoor often has good hints.

Whiteboard sessions focused on algorithms and data structures will probably resemble CS20X college courses.
>People in the program get $500 each month on a debit card, which helps researchers track their spending. But 40% of the money has been withdrawn as cash, making it harder for researchers to know how it was used. They fill in the gaps by asking people how they spent it.

If they know they're being studied they're gonna tell the researchers they spend the money on "good" things. Wanting to please people who are helping you out is very much human nature.
Speed limits in cities and towns where pedestrians are walking are already typically the highest safe speed limit, or even higher. The odds of a car-pedestrian collision resulting in a fatality increase dramatically in the gradient from 20 to 40 mph, and people love to speed in cities and towns where the limits are usually 25 or 30 mph.

Limited-access highway speed limits are a different story of course and a lot of highways still have old 55 or 65 mph speed limits that are set for fuel efficiency due to the 1970s oil crisis, not necessarily the maximum safe speed.
You mean to say "semiannually", of course. As I've been told by many people for whom English is a second language, no one speaks English worse than the English. b^)
I have no idea how many people it takes to negotiate global real estate deals, maintain locations, etc.

IWG plc which is their major competitor has 9,000 people so I'm not sure it's that crazy. Might explain why they want to trim 25% also!

https://en.wikipedia.org/wiki/IWG_plc
There’s an apology for ‘causing confusion’ due to bad timing and a promise to update the community, but no news here. Just seems like a link to a heated fight.
Barr Pushes Facebook for Access to WhatsApp Messages
The benefits of projects like this always seem to quote how massive distances can be covered in a few hours. In this case it’s a 2200km journey being done in 2 hours.

That is of course amazing, but doesn’t seem very impactful to boring people like me. I’d be much more excited about my 30 mile train journey being over in 5 minutes instead of 45.

Even that seems selfish. Wouldn’t it be more exciting to have trains that carried 10x as many passengers, reducing fares by massive amounts?

Who is pushing for raw speed over throughput?
I’m not a huge fan of postmodernism, but agree that Foucault is a worthwhile read — at least a bit.
That's why it would have been great if the Verge did some journalism so we actually had some clarity on the situation.
People definitely spend their money differently if they know their transactions are being monitored in a study such as this. Blocking cash withdrawals definitely biases the results
> I don't know how long you've been doing this

Much less than 30 years :-)

Thanks for the insight/encouragement!
It’s still significantly better than driving.
> about 38 percent of purchases each month go toward food, and 25 percent on sales and merchandise such as clothing, home goods and items from discount stores such as Walmart.

> Gas, electric and telecommunication bill payments make up the third largest spending category, about 11 percent. Less than 1 percent of total money tracked has been spent at alcohol or tobacco retailers, according to SEED spokeswoman Amanda Blanton.
yes, that's the fundamental insight of foucault's model of micropower: that no one but you need be watching for power to change your behavior. the panopticon was essentially just a visual aid for that.
Here is a description of the experiment design:

https://www.stocktondemonstration.org/wp-content/uploads/201...

One detail I found interesting:

> Participant recruitment began with a random sample of households within census tracts at or below Stockton’s household AMI of $46,033, providing a representative sample of Stockton residents within those census tracts.
Yes, the driver is responsible for the deaths. This doesn't mean changes in pedestrian behavior can't be the cause of the change in death rates.
Citation?

I mean, I know atheism is popular in some circles, but the presumption nothing cares about souls is a minority opinion.
Interesting enough the new version of the Acela trains in the Northeast will not have to be built to those freight train standards. On of the reasons is that the tracks are not generally shared with freight trains in the Northeast corridor.

Some details in this article: https://www.wsj.com/articles/will-new-train-guidelines-impro...
High grade plywood can look and feel nice. My desk is a height adjustable base, with 3/4" baltic birch as the top. I put a chamfer on the top edge, and drilled desk grommet holes, and then put a couple coats of lacquer on it.
I came here to ask the same question. I use having to filter select a lot. I use BigQuery, but it should hold up
Hacker News Is Down
For comparison, ARIN went dry in 2015. RIPE had a rationing policy (one /22 per LIR) for that last /8, which is why it's lasted until now.
Show HN: Simple Scala Interface for Graphviz
So the inverse--could an OS distribution like alpine profit from using picolib instead of musl? What would be the tradeoffs (presumably performance for size, but to what degree)?
Do you think prices will increase if the overall money supply does not increase - i.e. the UBI is taken from the tax revenues?
Yes, that's what he's saying. It was actually more expensive than other cheap options, uncomfortable to work at, inconvenient to move, and was basically all downside except that it helped sell the frugal image they were trying to push to starry-eyed investors.
Not sure why you're being downvoted, drop-C tuning is a real thing people do (which would bring you down to C2):

https://en.m.wikipedia.org/wiki/Drop_C_tuning
I'm guessing once it is marked as lost the library may re-buy it.
"In the US, much like anywhere that cars have taken hold, drivers screaming at pedestrians (and cyclists) that they are doing it wrong is a fixture of national life."

Just walking or riding down the road you get people screaming at you that you should "Get Off the Road!" At which point you are stuck wondering where the heck they want you to go! There aren't any bike lanes or sidewalks. So where? Sometimes they yell at you in the bike lane. It's insanity!

The US has become a slice of Fahrenheit 451 dystopia where it is illegal to travel without a car. (At least in the minds of 1-2% of drivers)
Consumers who choose these kinds of vehicles for no other reason than aesthetics are also a big part of the problem. In my view, a responsible vendor would steer buyers away from an inefficient use of materials & fuel unless particular use cases were presented.

The fact that the scenario I just described seems ludicrous to us is a pretty solid example of the abandonment of long-term thinking in our current marketplace, I think. I'm hoping to live to see the day when the right company figures out how to flip this around and win a huge pile of lifelong customer-fans in the process.
All the more reason for people to remain vigilant. Truck driving is often described as 95% tedium and 5% of unexpected nerve wrenching events. It's that 5% we all have to be in good shape for even if you are 'zoning out on the tail lights of the car creeping along in front' - that's when something might come flying out of nowhere at you and you need to be ready...
If the speed limit on that road is 20 or 25 mph then it isn’t as deadly as a higher speed crash, pedestrians can survive collision at that speed.

Slower speeds also give both pedestrians and drivers increased time to notice and avoid a collision.
That sounds similar to what I would tell my parents I spent my money on when I used to ask them for money when I was addicted to heroin. This “study” is total garbage.
Open Letter from Governments to Facebook Is an All-Out Attack on Encryption
I seem to remember somewhere that insurance companies have been reluctant to factor the risk of injury to others into the liability premiums for cars. This was in the context of a discussion of the externalities when SUVs and trucks became popular.

It's hard to separate driver inattention from the effect of having vehicles that are much more deadly these days, too. If you get hit by a sedan, it'll take out your legs and you'll get flung up on the sloping hood/windshield. If you're hit by a truck/SUV, on the other hand, the majority of your body will take the direct hit.
Certainly nobody who would survive within Amazon at the level required to make a deal this big. Amazon would retain expensive counsel at all times to ensure complains with FCPA. All major corporations do so.
AFAICT (as a non-manager), it was entirely manager’s discretion, within a budget, at Apple.
I don't think it is made to have a positive/negative outlook. It just allows you to understand the structures as they are which gives you the knowledge to potentially change them.

It has actually given me a hugely positive outlook since it means I don't feel so lost when I need to affect change. I know what power structures to target as opposed to feeling lost.
Sports Illustrated shaken by major layoffs and reorganization
I'm sorry you feel that way.
I really miss the old internet where people would have personal sites dedicated to their passions.
Yes, because people with more money than they need will easily absorb the higher prices even if they have slightly less more money than they need.
Author here. Glad to see this on HN!

This article is quite dated. I ran the Statistics for Engineers class at various conferences over the years, and updated the material. I literally just did a session at SRECon EMEA today [1]!

The course material is here:
https://github.com/HeinrichHartmann/Statistics-for-Engineers...

Todays version includes new material about:

- How averaging percentiles breaks down

- How sub-sampling affects percentile calculations

- Comparison of "mergeable aggregation methods" like HDR Histograms, t-digest, etc.

If you liked the article, make sure to check out the github course material. It's much broader and more up-to-date.

[1] https://www.usenix.org/conference/srecon19emea/presentation/...
Are you confusing Oleg Grenrus (OPA) and Oleg Kiselyov (http://okmij.org/ftp/)?
You are on the right track in terms of preparing for a FAANMG-level interview. But it pains me to say that this just only meets the bare-minimum that they are looking for as in to prove that you can 'program' as the other thousands more candidates will be applying too.

What you need to differentiate yourself is to learn the undocumented dark arts for whiteboard interviews that the FAANMG are really looking for in a technical interview.

Firstly, [0] explains where these data structures are used in Computer Science and should be a start on implementing them and understanding their complexities and use-cases. The rest from [1 - 4] goes straight into the advanced details of areas like competitive-programming which will give you explanations and clever solutions which are better than the typical DS and algorithm answers that even the interviewers will suggest.

Some of these resources might even give a walkthrough of a proof of these complexities if you really need to convince the interviewer who wants to rigorously test your understanding.

[0] - https://cstheory.stackexchange.com/questions/19759/core-algo...

[1] - http://courses.csail.mit.edu/6.851/

[2] - http://jeffe.cs.illinois.edu/teaching/algorithms/

[3] - http://cp-algorithms.com/

[4] - https://concatenative.org/wiki/view/Exotic%20Data%20Structur...

If you really don't know where to start, you can search and pick a specific topic here to study it in depth:
https://github.com/jwasham/coding-interview-university

Personally, If I were preparing for a FAANMG interview, I would contribute to widely known open-source projects that utilise these concepts such as compilers like LLVM, Rust or V8 and operating systems.
Better to just call it a substantiated theory at this point.
Basically I'm not willing to go to this level of drama unless the consequences of going the other way are really, really obvious. That means things like illegality, safety of life issues, ethical breaches, total project failure, etc. If you just think they're wrong and don't want to deal with their wrongness anymore, tell them so in your resignation letter. Hell, maybe by the time you have an offer in hand they're have realized you're right. Won't that be fun.

But ultimately there is no substitute for good judgement here. You have to decide, sometimes quickly, whether a particular situation demands immediate action of whether it can be forestalled or defeated by other (less risky) means. And you're absolutely right that it requires good judgement and preparation to ensure that they cannot contain or deceive you.
> Then there is the new concepts you need to learn. With dynamic typing, you can write "add(a, b) { return a + b; }". But how do you do that with Static typing? Well, now you need to talk about generics. But what if you want to catch instances where things are strictly "addable?" now you are looking at constrained generics...

You lost me here. All of those "what if's" seem to apply equally to dynamically typed languages. If I want "a + b" to work with two Python classes that I just wrote, I'm probably going to have to implement __add__ methods on both classes, and possibly with non-trivial implementations. It's not like dynamic typing makes everything magically addable, with no burden on the developer. Wouldn't you agree?

Not to mention that languages such as Haskell and OCaml have REPLs too. They are not at robust as, say, Common Lisp's -- but REPL-driven development is hardly a stranger in the statically typed camp.

I agree that both camps have their appeal, though!
Maybe the http://www.arielatom.com/ ? Excellent visibility and low to the ground so you won't hit any vital parts in the event of a collision. Plus most people will probably notice you... ;-)
You'd probably expect a short-term price shock if it was introduced all-at-once (probably a bad idea, it would be better to phase it in).

But long-term, surely the expected outcome would be for the change in wealth distribution to affect supply, such that our economy actually moves to produce fewer luxury goods and more basic goods and services.
"Renter" would also be ambiguous, although "lessor" and "lessee" do have specific meanings.
Lua point releases, 5.1, 5.2, etc. are major releases. The numbering scheme isn't semver. It is only accidentally that Lua even has an ecosystem. It is meant entirely for embedding within a larger application and not used as a stand alone application server.
Let's face it these things will be used mostly in situations which can at best be described that way. France's Yellow Vests, Hongkong, China and whatever is happening in India at the moment.