skysight-inc/HackerNews huggingface dataset:
As a Haskell n00b, I'd like to mention something I can do in about 20 other languages but not in Haskell:

( UPDATE: I stand corrected, in a reply by tome. )

I'm writing and debugging some functional code - in Clojure. There's a function I've smoke-tested on its own but that's failing me with "real" data. Lacking a decent debugger for Clojure and being too lazy to isolate my problem into a test setup, my tool of choice is the lowly "debug print."

In Clojure, the body of a function is essentially imperative, and I can insert a `(println "label:" value)`. To do the same thing in Haskell, I'd have to restructure my whole damn program.

I understand the rationale for purity in Haskell, but sometimes I see it as badly standing in my way of accomplishing what I want to do.
Yeah, my university did something similar. The very first computer science course was a bog-standard Java course - this was often an elective that engineers or science folks took also. The first CS-specific course used Haskell, and it probably turned off 75% of the people that tried taking it.
Pen CellPhone Dual SIM Card GSM Mobile Phone BT v3.0 MP3 FM Voice Recorder
Did you click through to the article? The HN title is (currently) "Learning Haskell is no harder than learning any other programming language". The article's actual title is "You are already smart enough to write Haskell".

You appear to be responding to what a zealous mod wrote not what anyone actually believes.

(See also https://news.ycombinator.com/item?id=21171360)
You may have a point with Rust, but you don’t have a point with C++, and certainly not with other mainstream languages like Python, Scala, Java, C#, and others.

In C++, you can focus on subsets of the language that eschew whole huge paradigms (like templating or inheritance) and you’re roughly no worse off in terms of the scope of practical programs you can write with basic software patterns.

You can’t do this in Haskell. You really do have to learn all the complex hierarchy of paradigm-committing patterns and use nearly all of them nearly all the time, making it much harder to learn than C++ even though C++ is complicated.

Languanges can be complicated in different ways, and Haskell is unique in that you have to engage with every complicated aspect of it nearly all the time.
Yes, and no. I'm afraid you've missed the point of the article. It's not about blame, but about good design that prevents human death.

(Mainly) in Western culture, humans tend to believe that what other people do reflects their personality, responsibility etc., and disregard the extent to which the environment influences people. This is called the "fundamental attribution error". https://en.wikipedia.org/wiki/Fundamental_attribution_error

The point of the article is that the existing environment makes it easier for people - both drivers, and pedestrians/cyclists - to suffer gravely in the event they get distracted.

It's unreasonable to expect people not to get distracted - you can think of it as "baseline" level of distraction inherent to us all, which cannot be optimised beyond a certain point.

It's a much better solution to shape the environment so that people's distractions do not cost lives. _That_ is the point of the article.
Mmmm. Look at the size of this subthread. It's like catnip.

And I said I'll use whatever pronouns people want, already, in one of four short grafs. Yet it didn't stop you from wondering if I'm some 'stealth enemy'.

It's funny, these culture war issues.

In the case described, it doesn't seem to have involved any actual trans people either. It was all theoretical, talking about the CoC.

I suppose my talk of 'rise above' means waiting until someone is actually a jerk before correcting them. We don't need cultural uniformity, we just need people to be nice.
Eric Lippert's blog series on Monads[1] follows this approach and is very effective in teaching the concepts behind Monads. He starts out with standard concepts from C# that are Monads and shows how they're implemented and what they have in common. It is very approachable for an object-oriented programmer who's curious about functional programming.

1: https://ericlippert.com/2013/02/21/monads-part-one/
Attaching a crypt coin to it only makes sense if it's more fully decentralized. The fact that it is centralized is why it's confusing. We run the VPN and they get the money.

In something like Lokinet, the whole thing is distributed and the people that run the service nodes get rewarded with coins. But normal end users don't have to think about the coin at all.
Have you heard of Debug.Trace? It gives you exactly what you are looking for.

https://hackage.haskell.org/package/base-4.12.0.0/docs/Debug...
Answers to the title question:

* Transition away from physical controls to touchscreen controls in new cars

* American's love affair with the automatic transmission

* Car-unfriendly "progressive" movements and the return of population towards city centers

It seems like people have very little actual interest in making things better but only interest in blaming something they have a built-in bias against or promoting a technology they find interesting.

The article completely failed to mention manual transmissions in America and the rest of the world while wondering loudly why it is so different here and the prevalence of touch-screens not just on phones in cars. Automatics are much more popular in the US and having a manual transmission forces you to pay much more attention to driving and simply occupies both hands more often especially inside cities.

One thing emphasized way too little is the responsibility of the pedestrian for not getting hit – the feeling of entitlement to right of way leading to people just not paying attention to cars or expecting behavior instead of watching for it.

I grew up around farm machinery often with little visibility and it teaches you to pay attention to what is going on around you a lot more. Not just in a way of being ready to react because there are circumstances where reacting is impossible, but in knowing what movements a machine is capable of and what the operator intends to do as well as if the operator knows you are there at all.

This is one of the primary reasons I think robot cars will go absolutely nowhere. It is impossible to come up with a theory of mind for a robotic car. As a pedestrian all you usually need to know the intentions of a driver (or vice versa) are an instant of eye contact. We are evolved to use tiny signals to decide intent and many people are barely aware of this. That kind of information just can't be reliably exchanged with a machine.

And people just aren't expecting the kinds of things which will happen when people start to believe robots with super fast reaction times will do anything not to hit pedestrians. Pedestrians will start running into the street without a care (or as a cheap thrill)

The article missed a lot and spent too much time on the wrong topics.
I don't see how "the emancipation and education of women" will work towards "abundant opportunity, not scarcity and existential threat".

If anything, the entry of women on the job market decades ago increased the supply side of the equation and competition. And whereas before one working adult could provide for a family, now it takes both of the adults working to provide for the same family.
yes - i hate that there are platform exclusives (and not just on PC, but on phones).

Now you want the government to force software developers to pour resources into supporting all platforms? Should Sony be forced to develop for the Xbox and the Switch?

Things being a commodity is how competition occurs, and how the average consumer reaps the benefits of improvement.

That’s completely backwards. When everyone is forced to compete on price, no one is going to spend money on improving their product.

Imagine if computer CPUs were not commoditized, and you had to buy into a particular instruction-set.

CPUs aren’t commoditized. Intel has had a monopoly on the x86 instruction set for decades and licenses it to one minor competitor. You do have to buy into a particular instruction set to have any hope of having a viable product - x86 for desktop and ARM for mobile.

Gov't should try to combat that, while keeping the playing field fair for all.

And now you are suggesting that the government gives power to middle men - you are already see that in alcohol distribution in some states. How is it giving producers more freedom by introducing a middle man that will raise prices? Are you also against people selling software on their own website? Authors selling books on their own site? Musicians selling music on their own website?
Can't you take Metro-North for a bit and then rent a car outside NYC (and its surcharges and taxes)?

Is it really faster to drive a rental car from NYC than to take a train out, especially on a Friday evening?

Also, one reasonable approach to this particular problem is to permit cars on West Side Highway and FDR Drive but not otherwise in Manhattan. You can go around the city core but not through it.
But it I throw mature Python/C++ code at you, with concepts you don't know, how is it easier?

Those Haskell threads are full of exaggerations. I don't know/use a lot of Haskell concepts and I can still produce software with it. You can be just fine with IO and passing everything as arguments. Which is, well, what article is talking about.
May I suggest this reading:
The origin of bursts and heavy tails in human dynamics https://www.nature.com/articles/nature03459
Indeed. It won't replace the need for inner city car based transportation infrastructure, but it can shave off expensive peak car load.
Show HN: Use libFuzzer to fuzz test Python C extension modules
>you are free to ignore the things you don’t understand

Is that why you are ignoring the complexity behind persistence/mutability/state?

Even the Abstract Turing machine has ticker tape you know...
I personally like "VPN Aught".
No what I’m asking is that if you want all products - including your labor operating like the “radio model”, that means you want the government deciding what a fair wage should be and deciding that everyone should get that wage.

He thinks that 10% is a fair profit. Who should decide?
>we noted that existing dVPN designs fail to provide strong privacy guarantees...their decentralized nature requires strong guarantees on the traffic a dVPN node carries without violating a user's privacy, at any time.

I suggest looking into the Loki project https://loki.network/

I'm not completely sure how these two efforts compare, but Lokinet is essentially a more privacy protecting version of Tor.
Max Dama on Automated Trading – Brain Teasers – Answers
Obviously, anyone can blacklist anyone for any reason on the Internet and relay nodes' IPs are public. But do they?

I run a relay node on my personal server and never had any issues. But 1) I rarely browse the Internet from that IP and 2) it's in OVH so if it were blacklisted, it could be because of that.
You still didn't explain how a feature that you'd never use affects you in any negative way.

Every browser has features that you don't use.
Sure and at that point you need to learn those internals. That's just the way it is with everything, no?
Why do you write Python and C++ in one line? C++ is an extremely hard and esoteric language. Python is very easy language. They are like two opposite points.
It's been pretty dead for a while (https://github.com/zdevito/terra/graphs/contributors).

These are all deep and well investigated criticisms that seem out of place when levied against a language abandoned by it's original author and apparently maintained by a single person, with a website that doesn't even have functioning HTTPS.

I'm not sure what the author was expecting.
> The failure here is in the way Google has set its Android development process.

I think it's still the won't layer. Google may be able to put some pressure to change things, but it's describe the issue as "the failure is in the way SOC manufacturers have set their kernel porting process". You often get chips which work with one version and a dump of specific drivers. Beyond pressuring the company to upstream their changes, or writing clean room versions, I don't see many solutions.
Whois privacy doesn't work on all domains, for example the .de TLD requires the Whois to be the legal address of the domain owner and doesn't allow any obfuscation (until GDPR). Other domains have similar or different obligations that resultin Whois being not private at all.
No i am 180cm and 61kg i always has trouble gaining weight. When younger i was actually 53kg for a long time. Also have constant intestinal trouble no one can diagnose me with (5 shits a day)
That's not the only cost. We'll start seeing the real cost when these internet-connected and internet-updateable vehicles inevitably get hacked.

It's lunacy to do OTA updates for cars, but here we are. And other manufacturers are following.
I wonder if this gets mostly upvoted because of the notebook or because of Void Linux. For me, mostly the notebook (Huawei MateBook X Pro) looks interesting, as I'm a MacBook Pro (Mid 2014) user, and I'm slowly looking for a good modern replacement (and I'm obviously not happy with the current MacBook Pros). As my future notebook would be non-Apple, I would want to install Linux, and want good Linux support, and otherwise a high hardware quality.

I like that this Huawei MateBook has an all aluminium unibody. (How much other notebooks are there? Maybe not necessarily unibody, but I like a solid body out of aluminium.)

A touch screen is also a nice addition.

His choice of Linux distribution is maybe a bit strange. I would probably go with Ubuntu or so, and hope to have even better support. E.g. I would want to use software like CLion, PyCharm, Steam, etc just out of the box.

Also, I would want to make use of the NVIDIA card. This is also nice for CUDA development. I wonder (I would hope) that this works fine with a more standard Linux distribution.

I wonder how the long-term usage quality is. My MacBook Pro 2014 works still mostly fine now (2019), and even the original battery gives me still about 3-4h of usage.
There was an interesting comment on this topic by gok two days ago: https://news.ycombinator.com/item?id=21153030

It cites a study [0] claiming almost all of additional pedestrian deaths happen at night, while daytime fatalities haven't increased much.

[0] - https://www.ghsa.org/sites/default/files/2019-02/FINAL_Pedes...
>Cars don’t kill pedestrians; drivers kill pedestrians

Is the world really this absolute to you? Would you mind thinking out your position more carefully or alternatively defending a position that prejudges one group and absolves another of any responsibility?
> You can’t do this in Haskell. You really do have to learn all the complex hierarchy of paradigm-committing patterns

Err, no you don't. The only slightly unusual concepts Haskell 98 has (from a functional programming point of view) are monads, type classes and laziness. Haskell 98 is a perfectly decent language to write computer programs in. In fact it's even perfectly decent if you largely avoid monads and type classes!

The "you can focus on subsets of the language" claim is no weaker for Haskell than it is for C++.
F# is really a very nice pragmatic language. C# keeps cannibalizing features from it, which is both good and bad...
Until that update flips that flag and the opt-in becomes the default. Do you trust Facebook to honor your privacy settings?
At whatever point one party pisses off another in some way.

You can delay that point by been open and reasonable up to a point, if you can't then reach consensus you need to escalate it to a lead/PM.

It can get both messy and personal if you aren't careful because two programmers might often solve a problem equally well but differently and therefore there simply isn't a clear correct answer.

In those cases I'd tend to default to the solution of the person who wrote the code (simply because they'll have put more thought into each part than the person doing the review usually).

Team dynamics will largely play a part as well, you may have an incredibly good programmer who can't take criticism at all well (seen that) or whatever and then it becomes a management problem rather than a technical problem.

A lot of it is simply tone and empathy though, "I'm curious why you did A instead of B here?" against "Why the hell didn't you do B?" or "B is clearly superior!" (with no explanation of why or the trade-offs).

Asking clarifying questions is often a good way to drill down to the meat of the problem (and in a good code review environment imo one of the strongest benefits, it increases comprehension of the code and intent for all parties).

One of my lecturers used to say "there are no technical solutions to a people problem".
Looks like these exercises all target the lower back, does anybody know of a method to help avoid/correct hunched shoulders?
this is great. thank you very much.
As someone who was once accused of killing a dog as a result of speeding/drink driving, I'm hoping I never have to appear in your court?

I was guilty as hell until it turned out I hadn't been drinking, wasn't speeding and the dog suffered only a few bruises and a bit of embarrassment for his owner who had a tendency to wildly exaggerate.

The owner was warned not to let her dog run off the lead near to traffic in future.
https://www.usenix.org/system/files/conference/woot12/woot12...

If you want more, literally google “baseband attack host processor memory” or “baseband exploits DMA” or “baseband exploits memory”.
Henna Tatto
Went to rent a bike ("zagster") yesterday. required 242MB app. no space on phone and that's a good chunk of my monthly data.
This interesting, I work as a data engineer but never had to really understand how joins or indexes work because I work 99% of the
time with denormalized data. I also do not know much about b-trees. I think you come from the database developer point of you rather than the database user point of view.

There is also other aspect of this, even if I do not understand joins or b-trees I can measure performance so I can figure out which combintion of joins are the faster. The reason that I prefer performance testing over getting to know the theorethical background for certain things is because in many cases your performance also depend on the implementation details, not only on which tree data structure backs your implementation.
Dress Weeding
Scheiße works in every kind of situation. Sort of like блядь in Russian. (Still amazing that you can have both strings in one message, as well as my dribble in what goes for English, thanks unicode!) I wonder how other languages handle this kind of situation (I am vaguely aware of merde)
What it's like to intern at Facebook in 2019
Learning Chinese is objectively more difficult than learning alphabetic languages. Although learning Chinese really would be more like learning APL.
As someone who has worked extensively with XMPP in the last ~6 years let me tell you that it works fine with network hopping, multiple devices and everything else you'd come to expect from a modern IM experience in the likes of WhatsApp and Signal.

I have written a lengthy article in 2016 in the state of mobile XMPP: https://gultsch.de/xmpp_2016.html

The situation has only improved from there.
A while ago, I wrote (1) about an old toaster I had bought at a thrift store 7 years earlier and that I’d been using daily since. Now, 5 years later, I’m still using this same toaster, and it still out-toasts most newer toasters. I really believe it’s getting harder to find quality products that are built with longevity and repairability in mind.

(1) https://medium.com/@wkjagt/i-love-my-toaster-d9b335d4abf9
I didn’t miss the point of the article; I simply strongly disagree with it. I oppose the constant drive to diminish the need to act responsibly. The idea of “baseline distraction” is used to provide an excuse for killing and maiming other humans. If your loved one were killed by a “baseline distracted” driver who blamed the collision on vehicle and road design, would you consider it fair? Would you willingly lay your child, spouse, or parent on the sacrificial pyre signaling the need for better cars or roads?

Life isn’t some kind of A/B experiment. Stop treating it like one, and stop moving blame from yourself to others.
Now we are going to have a government board that decides what can be advertised? Since the majority of Americans are Christians does that mean in a democracy people can decide banning advertising for mosques? What if the majority decided to ban commercials featuring gay couples? Interracial couples (a large percentage of Christians in the south still think interracial marriage is a sin)? With the electoral college and each state having two senators regardless of population giving a disproportionate amount of votes to smaller states, what are the chances that they would ban advertising for companies that employ the “liberal elite” in California?

The “will of the people” led to laws in the south like Jim Crow, laws against interracial marriage, and criminalizing homosexual sex.
I remember Rob Pike unveiling Go at a Google talk years ago and some Googler got up and said "why would Go be better than Haskel?" and Rob said "Because I can't understand Haskel source code and I'm pretty sure you could understand Go source code right now."
The main uncertainty and weak point in these studies are the incorrect assumptions about combustible fuel loads in cities. Nuclear winter (or cooling) requires strong firestorm that lifts soot and black carbon (BC) high in the stratosphere.

Authors make the same increasingly erroneous assumption as previous studies. This starting assumption is the weakest point of the study.

>1. We first assume that the area subject to fire ignition for a 15-kt nuclear explosion is the same as that observed in Hiroshima (13 km2). For different yields, we take the area subject to fire as proportional to the yield (15).

Hirosima had fire storm because it was densely build old Japanese city made of mostly wood and paper buildings. It was was full of breakfast burners that where thrown around in the blast (time was 08:15). There had been no rain for almost 30 days. Nagasaki was similarly build city but the fires were five times less intense.

I don't understand why nuclear winter studies keep using Hiroshima as their city model. They don't take into account changes in urban construction or overall decrease in fuel load. The increased use of electricity, different building materials and underground fuel tanks reduce the combustible fuel load several orders of magnitude.
Haskellers do tend to be very identitarian. Not unlike vegans, or CrossFitters.
I want to do something like this. Take a hiatus but work a minimum wage job so that I appreciate what I have.
Does anyone recognize the task app in https://pragli.com/blog/content/images/2019/10/image-9.png ?
It's also limited by the number of people that want to pass through that road per unit of time.
The world is absolute. Anyone denying this is in for a rude awakening sooner or later.

Consider a car that is parked on a flat plane. Can this car kill a person? Assuming the car doesn’t explode due to malicious intent or internal malfunction; assuming the car doesn’t spontaneously roll downhill (hence the flat plane); the car won’t kill a person under any circumstances.

Introduce a driver to the car, and suddenly everything changes. The driver is the weak link, as the driver is solely in control of where the car goes and who it kills.
i like little ribbings like this. like with friends and football teams. it's part of the fun.
Yes, if what usually happens in private (and what you are hoping to demonstrate to another person or an audience) is different from what happens when you demonstrate it, you can [0] call it Vorführeffekt.

[0] since it's not an actual effect [0a], kinda like Murphy's law isn't a real law, you can call it that way, but you're not required to.

[0a] other than maybe nervousness of the presenter affecting things, but I don't think Windows is ever nervous about crashing.