skysight-inc/HackerNews huggingface dataset:
TL;DR I totally agree. This can be done with Crystal and Lucky but I wanted to keep the example simple.

I totally agree with your sentiment and you have a lot of great points. This post was not meant to get too deep into things right off the bat, so it left off a lot of this stuff.

In this case the phone number always has a country code with +1 because we have a validation that ensures it won't make it into the database without it. We also only accept US country codes in the validation.

I get your point though that just having a `String` doesn't really guarantee that those validations took place, luckily, LuckyRecord has the idea of custom types that can define their own casting and validation behavior. So we could have done this:

```
field phone : UnitedStatesPhoneNumber?
```

And it would validate that the string param is a valid US number before saving. It would also do that for queries and you could add whatever other type specific methods you want to it. so you could do

```
def formatted_fax_number
phone.try { |number| number.without_country_code }
end
```

But like I said, I think this is fitting for a whole separate post, rather than an intro style post :D
Hwang Jang-Lee is probably better, and has had more of an impact. In Jackie's older films, he plays many of the villains, and he is the one behind the iconic Silver Fox villains like pai mei that Tarantino lifted for Kill Bill.

https://en.wikipedia.org/wiki/Hwang_Jang-lee

He is almost always amazing to look at, like in this clip from the Buddha Assasinator, where he plays the main villain in red at the end.

https://youtu.be/ehqAgeewn_o
Why oh why the brackets? Obfuscates currying too much.

let make ::message ::extraGreeting=? _children => ...
let make = (~message, ~extraGreeting=?, _children) => ...

Plain OCaml:

let make ~message ?extraGreeting _children = ...

Fortunately bucklescript is a completely separate project. After this change I might ditch Reason and just write OCaml. There were some little improvements with Reason vs OCaml but now OCaml appears to be a clear winner!
I a lot of ignorant "Why shouldn't Jackie be a patriot?!" replies to this. Jackie Chan was not born in China (the country), but in Hong Kong (the then-British colony). Hong Kong and mainland Chinese culture is not the same, and a great many Hong Kong people are not thrilled to be "Chinese" as defined by the CCP. I'm sure plenty of Jackie Chan's fellow Hong Kongers would see his CCP-shilling as selling out his home.
Your snark doesn't make my comment less true.
I express strong dislike of industries lobbying for laws which are non democratic.

Does the people of EU want this law?
They have the ability to control what you see and do — they push content at you that drives their perception of engagement.
> asking the user about themselves then finding a simile

I do this when in conversation, but how do you do this in broadcast?
> I like the irony.

In my home country in the BBC there was a woman pretty much saying that White British people are racist.

http://www.bbc.co.uk/news/av/uk-41148872/sacked-model-all-wh...

This is one example but I been seeing this shit turn up on social media for the last 2 years. It could be cognitive bias, or I am noticing it more. But it is definitely there.

> Except one side keeps pushing tax cuts for the rich and the other tries to implement some of things we in Europe consider standard.

Except as someone that lives in Europe (I lived in Spain, the UK and Germany) most of the things that are standard in Europe don't work. The NHS has botch the treatment of my right shoulder and while I am not disabled, I now have a permanent weakness in my right side of my body.

In Spain there is massive unemployment and the country economy is permanently crashed (I lived in La Linea and the unemployment rate was 48%). Regular utilities like rubbish disposal stopped for 2 or 3 months because there was no money to pay the bin men (Garbage man for those in the US).

"Tax cuts for the rich". LOL. You know if you tax the rich too highly they basically leave the country or they find a loophole round it. That is why there is are measures like an affective tax rate.
In the UK where they keep on tightening up tax laws most of the large companies are in Ireland or off shore in one of the crown dependencies such as Isle of Man, Jersey, Guernsey, Gibraltar etc. I paid more tax than Starbucks last year and I run a small hosting company. So I get fucked by tax rate increases for businesses and individuals because I just about fit into that bracket of the so called rich.

Also a lot of these tax the rich laws never take into account where you live. I used to live in Manchester in the UK and I was earning £30,000 and I lived very comfortably. If I lived in London I would barely be able to afford the rent.
It was the first episode of “Why’d you push that button”.
Is there an easy way to get interop working between crystal and ruby? It would be nice to be able to simply require a crystal module that calls out to a compiled binary in the middle of my Ruby code.
In a previous century I learned to program using Roger Kaufman's "A FORTRAN Coloring Book". It uses a very similar technique (and style!). Here is a link to the internet archive: https://archive.org/stream/9780262610261
Do we really have that sort of system, though? This company and its former CEO just got fined just shy of $1M combined. Is that a deterrent or an added cost of doing business? I think it's the latter.

And I wonder how much the SEC spent in manpower to arrive at this outcome. I can't really remember the last time any of their enforcement actions ended up as anything significant.
You are lucky to even have a second choice for broadband. In large parts of the country, the list of choices is only Comcast.
More popular in households in Asia than western europe/US is a machine that holds your water at tea temp (it looks almost like a water tank.) You can look up Zojirushi on amazon to get some examples.

So you hit a button, water drops into your cup at the correct temperature, and all you have to do is drop in your tea bag / infuser of choice. Considering tea needs to steep, it's about as close as tea is going to come to espresso.
And for a Ruby/Elixir/dynamic lang programmer just catching `nil` is actually a pretty big win, even without the custom type.

I will go more into depth about leveraging the type system with Lucky for even better data modeling in one of the Lucky guides
You want to read an interview with the Google Manifesto guy not because it’s not propaganda but because it’s propaganda you agree with: massive political agenda, big claims unsupported by evidence or logic, designed to sound science-y to people without prior experience with the issue, etc. — that’s worse on every axis than the journalists you’ve been attacking.

This also neatly sums up why “tell every side” is the same disastrous pitfall it’s been since creationists were advancing it on USENET. Expertise and facts matter, and on many issues they’re very unevenly distrusted. On things like climate change, evolution, etc. increasing the number of sides is simply increasing the number of known-incorrect things you’re exposed to, and most people lack the time or background to tell them apart, especially when many of them are actively being gamed by people who stand to profit from spreading those falsehoods.
The term makes it sound more conspiratorial than it is. It’s simply Marx’s framework of power imbalance and exploitation applied directly to social relations. That’s in contrast to Marx’s use of those ideas: applying them directly to economic relations, and seeing social relations as merely as the superstructure of economic relations.

“Critical theory” is a less loaded and more specific term, and there is no doubt that critical theory emerged from neo-Marxist thinkers of the Frankfurt School.

There are certainly conspiracy theories about critical theory, but critical theory scholars themselves used to use the term “cultural Marxism”. Modern day radical feminism and identity politics is without a doubt philosophically grounded in critical theory.
>And I would say it's a good thing even for the media because essentially they are being cut off of access to the race to the bottom that's killing them.

I would completely agree if it wasn't possible for a media page to pay to have their posts back in the news feed again. Which it is.

If FB was genuinely trying to "make users happy" then I'd be more charitable. But they're not. They're trying to monetise more.

As a publisher affected by this test, it was a nightmare. All our users are on mobile, and use FB as their search engine. We saw a ~75% drop in engagement for the main site affected by it.

Yes, people can type a url into a browser. But they don't. they scroll their newsfeed.

Our choices are: take FB head-on trying to get engagement with our users outside FB, or pay FB to regain our old levels of engagement. Not fun.
If you don’t read the article and think the Intercept is being hyperbolic as they normally are. Rest assured the title is exactly what happened. Walker was charged under terrorism laws not for planning, conspiring, nor performing acts of terrorism. The prosecutor made the argument that possessing the book was an act of terrorism. A book he downloaded from the school library. Also equally available on the Amazon and downloadable from internet since the dawn of the WWW.
Your comment made me wonder whether i hadn't miss anything : are car actually able to drive themselves in clear condition at the moment ?

I've seen the demos of the start ups in the valley, the local experiments, but i'm still waiting for a single real-world deployment, even limited to local driving, such as city to city taxi driving, or item delivery.

On the other hand, i did hear of the trouble with tesla's autopilot "2" not driving properly on regular roads under the sun (https://www.youtube.com/watch?v=UZ1XLqc5IUg).
Libertarians are not on board with the idea- libertarians are absolutely be against mandated handouts without critical purpose. A disingenuous claim at best.
Jackie Chan is really idolized in the West, but not much is known here about him as a person. My wife is from Hong Kong and has told me all about his reputation as a womanizer. The typical Hollywood "Want to be the leading woman in my movie? Sleep with me." sort of thing. He even has an estranged daughter as the product of an affair.

It's really not so different from a lot of Western actors, but it seems like Westerners are ignorant of it in Chan's case. As others mentioned, his films have a certain innocent quality. But the real man, not so much.
Show HN: I just made a webapp that helps young EU people to start a new dream life
Wow, that is some beautiful hardware. The cartridge, control panel, switches, wooden sides - such a nice esthetic. I wish more electronics went for that look.
Thanks for the confirmation :) Added to my shopping list!
When Founders Go Too Far
Building a Movie Recommendation Service with Apache Spark and Flask – Part 2
Inform7 is mostly for text adventures. I'm sure it's not bad if you give it a go as many people with little to no coding experience write expansive text games using it.
I remember gmail before it used AJAX. In many ways, I miss that interface - it just worked. Sure, I didn't get real time email notifications, but come on, it's email. Sure, there were a lot of page refreshes, but they were super quick since there wasn't several MB of scripts being parsed and run with each load. Just some HTML with a few JS interactions.

They even still offer that interface - check it out. It works remarkably well (and quickly) to this day.
You are not the market.

If the government pays above market rates for gold then they are clearly losing money. Why do you think there is a difference if they offer a loan at say 1%?
> pay (say) $50/month for a news source that feels less of a need to pander

That's about the price of a print subscription to the Financial Times, who are dry but reliable with good worldwide business-focused coverage.

> I'm still financing a bunch of think pieces on the fashion industry, their cooking apps, "78 hours in X" articles, movie reviews, Bret Stephens op-eds

That kind of stuff unfortunately pays for the serious stuff like the opioid crisis coverage.
Gmail started out as a multi-page flow, and it worked perfectly fine. Page loads were quick because there wasn't several MB of JS to be interpreted with every page load, just some HTML and CSS.
This is very interesting as the story sounds a lot like what I deal with. I have done the sleep apnea testing but that didn't show anything. It might be time to find a sleep clinic :)
I like that I'm reading this while coming off night shift (medical resident). I wholeheartedly agree that sleep is essential to life and healthiness.
yup, reading this comment I couldn't stop thinking about Rumble in the Bronx. Police Story and a bunch of other more obscure HK movies are pretty dark as well.
How much of that single-page interactivity is really required, and how much is developers and designers chasing the new shiny?
Except for a bunch of small buses that go at walking speed in a very limited area there are no commercial autonomous cars currently deployed.

There are self-driving cars that drive themselves well in clear conditions, but these are the R&D cars with an expensive sensor suite on the roof and a bunch of processing power in the trunk that can't be found in production cars.
> It's journalists who sold their soul so that they can make money.

Nobody goes into journalism for the money, the pay is terrible.

> It's impossible to come across a mainstream publication with unbiased point of view nowadays.

Is this actually possible? Does believing in e.g. global warming constitute bias?
The first two grand challenges also lacked oncoming traffic.

In general, however, I agree that doing what a prudent driver would do in the situation is probably not an insurmountable problem.
Thanks for your attention!

Any hints on implementation details would be very welcome, also it would be very nice to find a chapter about these important real-life issues and how to handle them in the book!

Have a nice weekend!
FWIW I did PM @jordwalke and got a very satisfying answer: this change has dramatically increased the number of JS devs that want to use Reason when they see it. It’s not that they are just guessing, they’ve actually tested this within Facebook and found a huge difference in adoption.
In French : 16 hours (seize heures)
In Polish even simpler: 16-th (szesnasta)
This, so much. I went through a very similar experience - having tried spending longer and longer in bed in frustration at my insomnia, I did a course[1] that measured how much of that time I was actually asleep, then restricted my time in bed to that amount and no more. Having trained my body to sleep when in bed, I could then extend it slightly week by week, until I found the optimum I need (7.5 hours).

[1]: https://www.sleepio.com/
All I meant by bringing up the web browser is that for a personal computer to be usable in reality by a lot of people they'll need a web browser. But just that user application alone gets them really far: email, office productivity, etc. It's a good first application to have in any system.

Therefore we could have all kinds of exotic, bespoke personal computers again, except that unlike the 80s and 90s we now have fairly standardized formats across systems. This gives us the freedom to make whatever kinds of architectures and OSes we want. In this case, that could even include a machine whose board is designed from the ground up to run Lisp or Smalltalk or something we evolve out of those as its operating system.

The web browser that would come with such a default system would be written in one of those languages. Yes, I know making a web browser is an enormous undertaking, but at least some totally new personal computing system wouldn't have to then also implement office productivity etc.
We have some pretty scary laws on the books here in the UK, not least in terms of chilling effects. Those of us who support human rights and generally democratic and civilised society have always expressed concern about broad reach and excessive powers and lack of effective oversight. Unfortunately our voice is not loud enough when fear is the opposition, even if that fear is mostly irrational and stoked more by the government and media than the bad guys. Sometimes I wonder who is really causing the most damage in the first place these days.
Just because the pay is bad doesn't refute the point that they haven't sold their souls, it's a race to the bottom where selling out for terrible pay is preferable to having integrity for no pay.
Have you tried the new versions with Zero Latency Typing? As the name implies, they managed to basically eliminate all latency on typing, even beating apps like notepad++ and emacs on latency. It's switched on by default in the current release.

https://pavelfatin.com/typing-with-pleasure/#windows
Chains are typically required in the western US on mountain roads. [ADDED: during snowstorms.]
Facebook Steps Up Efforts to Sway Lawmakers
Slack has raised insane amounts of money at really good terms just because they can. The funding world is insane right now and they are taking advantage.

They can easily do what Facebook or Oracle did and just buy up any competitions with their huge warchest.
Known problem: https://feedback.canny.io/bug-reports/p/fix-widget-for-users...
It appears he had a bad experience with them:

https://news.ycombinator.com/item?id=11833815

and is writing a book about it:

https://news.ycombinator.com/item?id=12749364
I am still waiting for the combination of Perl and Applescript.

You have to write it in Applescript, but you get to read it only in transliterated Perl.
Depth-First Merge Sort Algorithm, Visualized
How so? The prosecution had nothing to do with syria. That helped his case.
Basetools underground #hacking #forum was breached, hacker demands $50K ransom
> Spain can enact laws "overriding" the transferred competences at their will

So is Europe. Does not mean that Spain or Catalonia don't have powers on the topic.
Show HN: App Fixers – App Maintenance as a Service
Maybe this is a dumb question... but do larger companies like Google attempt to set up their own CA so they can be sure of the longevity and security, and not rely on a 3rd party?
Blast from the past. I took his course. As I recall we actually had a mimeographed copy of the book although, now, I think I have the real book around somewhere. At the time, the joint computer facility still had an IBM 360 so you had to submit jobs via punch cards with very little CPU time leeway for coding errors or typos.
I think today the web is trying to be two things. 1) classic text documents with links to other text documents. 2) a cross-platform runtime for desktop class apps.

Over time 2) has been increasigly shoe-horned into limitations of 1) and its all a giant cluster fuck now. Leave HTML to linked documents and give us an efficient runtime that we can plug into to deliver desktop class apps written in whatever language we want that works with a standardized runtime and UI language shipped built-in with every browser.

Why the hell cant we build web UIs With a standardized UI markup (not HTML), wire it with whatever lanaguage our company uses, and compile it down to WebAssembly and ship it to clients browsers? Instead we have to write these monstrosities in shitty JavaScript with virtual doms, and hacks everywhere. Madness!
SFOX (https://sfox.com).
JavaScript – From Mocha to ES8 and beyond
Twitter has been urging firms using their data streams to delete data that users have deleted since they implemented deletion.

Want to get cut off from Twitter? Don't delete posts marked as deleted.

This comes back to a previous point I've made: Twitter has a set of corporate morals, and isn't afraid to stick to them, even when there's a cost. I admire that trait.
What is the logic of having the orders sealed? Why don’t they just arrest the people in question? Or is this a thing where they don’t want to mess up their weekend?
A lot of them are just nervous or have performance anxiety.

It’s a real thing. I’ve seen brilliant coders completely bomb interviews.
It's possible to develop a personal computer whose hardware has been designed to run a programming environment as its operating system. In fact, these existed before. Lisp machines did it, and Smalltalk was developed precisely as this kind of system (on the Alto).

In the 80s and 90s when there was a lot of diversity in consumer personal computers, we were all missing a couple of important things: standards and standard interfaces / formats. The web is one such standard. If a system has a web browser, it can do a hell of a lot with other types of computers everywhere. But also notice how today, unlike 10-15 years ago, we don't worry as much about file formats etc. We don't worry as much about which piece of software runs on which platform, in part because of other standards.

All of that frees us up to try more unique personal computing environments again. At minimum, any such system would need to have a web browser as a user level application, since it already gives them access to email, calendar, and basically the rest of the world. In other words, the web browser no encompasses all of this crap that personal computing environments needed to develop in order to have something usable.

Personally I'd want something Smalltalk-like all the way down in the system. Want to inspect TCP/IP packets as they come and go? No problem, they're just Smalltalk objects like everything else in the system. Stuff like that.
That would drive US corporations to reincorporate overseas and cost the US most of its corporate tax revenue.
A sinologist discusses Unicode
Yes, but from the end-user perspective, it's nice to not have to do a round-trip to find out that you entered something wrong.
That is a reasonable question, though we already have the situation where people are driving in snow with little current, or even previous, experience of those conditions. The biggest problem is going to be with people who have never driven.
Yes, I left that detail out for pedagogical purposes.

As the other respondent wrote, it still works the same way but with parentheses, and the to:do: exists as a convenience.

In Objective-Smalltalk[1], I added | so you can do this without parenthesis:

(1 to:10) do: [ :i | stdout println:i. ].

can become:

1 to:10 | do: [ :i | stdout println:i ].

This is nice when you are constructing a statement interactively, for example on a command line and don't want to go back. It also makes things less convoluted when the chain gets longer. It also "fixes" the asymmetry that chaining works with unary messages but not with keyword messages.

Of course, the whole thing becomes even more elegant, IMHO, with a Higher Order Message (HOM)[2]:

stdout do println: (1 to:10) each.

YMMV.

[1] http://objective.st/

[2] https://en.wikipedia.org/wiki/Higher_order_message
I like French too, but the number of French-speaking individuals worldwide is rather limited.
That's red-green color deficiency, not "colorblindness" as in "I only see grayscale".
The english wikipedia says it's about 0.025% of the population [0]. So I'll take that instead of the german one.

[0] https://en.wikipedia.org/wiki/Achromatopsia
OpenZipkin – A Distributed Tracing System
Probably more about seeing if anyone starts behaving erratically this weekend.