skysight-inc/HackerNews huggingface dataset:
What you're describing is closer to what Ron Jeffries attempted than to what Peter Norvig did. It's Jeffries who started with input and output and then faffed about for five blog posts while attempting to figure out a way to get input to match output. What Norvig did was start by thinking about the representation of the problem and the constraints that the problem imposed. He then found a way to elegantly represent those constraints in code. And, only then did he write tests.

Moreover, the process you describe is quite similar to the parody of "how to draw an owl" [1]. It completely glosses over the fact that "create an implementation that produces the desired output from the given input" is where 99.5% of the complexity lies.

[1]: https://i.kym-cdn.com/photos/images/newsfeed/000/572/078/d6d...
Yeah - probably better way to understand it is the predictive mind hypothesis. (https://en.wikipedia.org/wiki/Predictive_coding)
HK is an offshore banking heaven. Running from taxmen is easier if they can't bust your scheme by pressing CTRL+F.
5 unicorns that will probably go public in 2019 (besides Uber and Lyft)
To be fair, if I even think of Santa Cruz, I end up in a 15 minute traffic backup
That is awesome. Did you see this in the footer?

https://flexboxfroggy.com/
Looks super cool. I wonder if multiple subjects in the same photo could be animated. I sorta expected that from the picture with the Beatles ( assuming that gang of 4 Brittish looking guys was them )
The benefit is that hot files get served from the swarm instead of just your nodes, just like bittorrent. It also prefers closer nodes, so data doesn’t have to travel as far. Also, like bittorrent, a single multihash or gateway URL is enough to strongly validate the file contents, unlike S3 URLs.

I keep meaning to write a sniffer that watches the p2p net for file objects, runs magic on their filetype, and indexes the indexable ones. That would be moderately useful.
Exactly. It's one of the biggest issues in trying to help people out of poverty. As Sam Vimes's "Boot Theory" sums it up:

>The reason that the rich were so rich, Vimes reasoned, was because they managed to spend less money.

>Take boots, for example. He earned thirty-eight dollars a month plus allowances. A really good pair of leather boots cost fifty dollars. But an affordable pair of boots, which were sort of OK for a season or two and then leaked like hell when the cardboard gave out, cost about ten dollars. Those were the kind of boots Vimes always bought, and wore until the soles were so thin that he could tell where he was in Ankh-Morpork on a foggy night by the feel of the cobbles.

>But the thing was that good boots lasted for years and years. A man who could afford fifty dollars had a pair of boots that'd still be keeping his feet dry in ten years' time, while the poor man who could only afford cheap boots would have spent a hundred dollars on boots in the same time and would still have wet feet.

>This was the Captain Samuel Vimes 'Boots' theory of socioeconomic unfairness.

It's essentially true. Poorer people have to buy the smaller quantities/cheaper materials because it's all they can afford. And because of that, they end up having to buy it more often, often spending more in the long run. I'm actively trying to change my wardrobe now that I've realized that, and buy clothes that will last longer as opposed to cheaper ones that I have to replace more often. Thankfully, I have the money to do so, but many do not.
Everything you said has nothing to do with lenses and everything to do with trying to satisfy some statically-typed aesthetics.

> First, it's possible that different elements of an array or different properties of an object has different shapes

I can't imagine how this would introduce any sort of difficulties w.r.t. lenses that aren't already present with normal getting and setting of nested structures (aka probably not much).

> Second, it's just difficult to get things right without a compiler's help

This has nothing to do with lenses and everything to do with you preferring the feel of static types. You go on to talk about a bunch of issues with complex constructs that really only exist in static typing.

Sometimes you write a wrong thing and get a runtime error. This happens in all dynamically typed languages (and many statically typed as well).

> Furthermore, without types... this rather elegant unification of getter and setter seems to be lost.

Like ya do. I don't see how this has any impact at all on developing applications.
Ask HN: PhD in the UK or US?
Hey HN,

I'm a 2nd year MS student and I'm looking into applying for PhD programs. I've gotten my dual Master's in CS and Biology, and I'm looking into doing a PhD. I have a very specific idea of what I want to do, focusing on Neuroscience inspired ML architectures, and I've found potential advisors at Oxford and a few US universities. What do you think are the advantages of doing a degree at one or the other?

Also, I'm a US citizen! Went to undergrad in the US and am currently attending a US university for my masters
Behave: The Biology of Humans at Our Best and Worst

this is not very well known, but it is an amazing book about why humans behave this way, it has genetics, history and lots of cool stuff in it.
I'm not the one arguing that the practice is universally valuable. I'm responding to the grandparent's assertion that if you don't understand the problem well enough to write tests, you don't understand the problem well enough to write code. I'm suggesting that that's not always the case: oftentimes when encountering a new problem domain, it's easier to hammer out a crappy solution and watch it fail than it is to deliberately think through test case after test case. Moreover, writing test cases, in my experience, is often a form of fake productivity. It feels good. You're writing code. Hundreds and hundreds of lines of code. But you're not really making any headway on solving the problem.
Considering the Type-flexibility of SQLite, would it necessarily be too difficult to have an object-relational mapping that works across both DB's?
I guess it depends on the application. Surely it would be a pain, but perhaps still a possibility.
Sorry isn't fully a game a chance. You make choices about which pieces to move and some cards give you further options
I am currently on my fourth military deployment. I have just learned to get used to living in a pseudo-isolated vacuum from life. I have missed many important life events. Facebook would really help where it doesn't matter and not where it does.

I just learn to focus on what is actually important and fortunately I have people that keep me in mind so that I don't get completely lost. Simply being married solves for much of this.
Just want to say a huge THANK YOU for your work on UO!!!
Only if designed with microcode interpreter/JIT instead of pure hardware gates.
A long-term disaster that needs massive short-term action to avert is really kind of a perfect storm for killing humanity.

You are absolutely right that the discussion needs to be far heavier on what the concrete consequences will be, not in abstract numbers, but in how it will actually affect the lives of their children and grandchildren.

The messaging needs to be ubiquitous. Climate change should be the main topic every single damn day.
> Really wonder if articles like these are produced by people shorting the stock.

Everything is about money, so I always assume that to be the case for all these kinds of articles. Regardless, I’m pretty sure snap will be gone in a couple years. No way they can stand up to Facebook imo.
No, again, I'm saying the gap/niche/market/whatever is the specific unserved groups, not unconditional service. Which is why even when people try to exploit a perceived gap by pitching unconditional service, all it does is become a service for the specific groups excluded by the current incumbents.

Let's say the incumbents cut out virulent racists, for example: then their is a open niche for service to virulent racists. There's not for unconditional service, because, but for (in this hypothetical) except for virulent racists, there's no one left unserved by the existing, albeit potentially conditional, service.
I think the parent meant Jubal Hershaw, who does rather read like Heinlein's dream image of himself.
It might help to know which country you're a citizen of. For example, having to deal with visa issues or adjusting to an unfamiliar culture could be a distraction from your PhD work. Also, trying to finish up a PhD while interviewing for jobs in a different country might be stressful.
That's Google Book's estimate as of 2010, so there are more now: http://booksearch.blogspot.com/2010/08/books-of-world-stand-...
> Each entry contains a bunch of IPFS address pointers - to the last entry on that "database", to any extra entries you found out about, and to a bunch of previous entries (just to speed up reading)

How bad is the latency to read the entire database state? Even git can become pretty slow fetching and processing objects on large repos, and all of those refs are local after the initial fetch.

Seems like with the additional latency on IPFS, resolving the entire DB state (for snapshotting it or otherwise backing it up, for instance) would be unusably slow for anything even somewhat large, no?
I agree but I also disagree. I think there is always a line of confusion between distributed and decentralised.

The Protocol is decentralised, then the users/services can decide how to replicate the files. If everybody will have the same files, it will be 100% distributed.

We can argue that Bitcoin with SPV clients is just decentralised and not distributed as well.
you can do the same (except loading certs) with python3 these days thanks to asyncio.
To my knowledge, the recent French protest wasn't quite as black and white as that.

The fuel tax Macron was planning was going to hit the rural middle/working class and the poor the hardest.

On average, many of these people have to commute around 30 miles to work at low paid service jobs. So their work commuting costs are a big part of their monthly bills.

And then Macron came along and asked them if they'd kindly help with paying some of the costs of climate change.

The proposed fuel bill didn't hit the people living in the cities as badly, because, on average, they're better paid, have better public transport options and live closer to their workplace.

You can understand why people living in rural towns and outside the cites got a little-pissed off and decided to protest. The increase fuel tax was going to hit them way harder than those living in the cities. And those poorer people are being squeezed already, due to having a longer work commute, crap work pay, crap job options, and worse public transport options.

Anyway, if you want more info on this listen to this video by the Mark Blyth. He can explain it better than I ever can: https://youtu.be/Sk87JHTyozo?t=641
Not permanently, but yes, I stay deactivated nearly 100% of the time. Facebook's algorithm doesn't seem to work for me, as the feed is cluttered with mostly old college acquaintances and (maybe worse) older relatives sharing crazy articles and posting things that look like they came straight out of r/oldpeoplefacebook.

In many ways, I preferred Facebook and other social medias when my family members were not following me on the platforms. I am an adult and nearly 30 years old, but it feels a bit like your parents watching you at your first school dance. That is, it's hard to be yourself when you're worried what people think. This includes peers, but maybe it's easier to brush off the opinions of non-relatives than it is relatives.
Patently not true, although not obviously so: https://www.mail-archive.com/kragen-tol@canonical.org/msg003...
How much time did you spent in CS literature for compilers?

One of my focus areas during my degree was system programming, including compilers and language design.

Already in the late 90s, there were several good books about compilers.
These things do in fact happen:

https://en.wikipedia.org/wiki/2011_United_States_listeriosis...
The sequence beginning at 1:58 is (I think) a still from the Hard Day's Night movie. The sequence beginning at 4:29 uses the Help! album cover
Of course! But that's a double-edged sword.

As a user, I'm lazy. I want to watch a movie, not deal with billing bullshit of some company. For them it may be the most important part, for me it's just an incidental task, a speedbump on the road to my goal. As a user with some disposable income, I'm actually willing to pay extra to make this problem less inconvenient.

Having to worry which platform to pay this month in advance, who streams what at which point, and whether or not the movie isn't already gone from all of them because of $reasons, is making things more inconvenient. Very quickly, torrenting looks more attractive again - it offers better UX, and you get to keep a file in the end, DRM-free.

(And if you're afraid of torrenting while living in a country where only uploading is illegal, there's plenty of bootleg streaming services that offer worse movie quality and throw in occasional cryptominer with their ads, but are still less of a hassle than juggling multiple "legit" streaming services, and give you movies & series that are no longer available on any "legit" one, again because $reasons.)
Not really. The point is if you are with _a_ city. The particular one doesn't matter. While the UK is general more dense the US, surely you know if you are surrounded by neighbors in a suburb or a bunch of fields and sheep?
the OP was referring to this incident https://github.com/stevemao/left-pad/issues/4

where a very basic package everyone depended on was yanked from npmjs.

azer's original post: https://news.ycombinator.com/item?id=11340510
That's nice, but usually I need more features like multiselect, html-formatted option rows in the dropdown, etc.

Currently I use Selectize.js and Chosen.js:

https://github.com/selectize/selectize.js

https://github.com/harvesthq/chosen
Can someone please explain to me why this is cool? What are the benefits of using a decentralized url shortening service?
I like your points about when working with a new developer and how it creates intermediate goals. Are you Pair programming when doing this?
pretty sure the design changes were to monetize it, not improve it.
Stopped using Facebook in July in 2016 because the election had turned it into a terrible place. Never found a reason to go back, so just deactivated my account earlier this year.

I can understand why some people can't do it, but for me it was a minor upside vs major downside situation. I found that my overall level of happiness increased after I stopped using it (and Twitter.)

I still log onto Twitter occasionally but my rules are:

- Always log in with a specific goal in mind, like DMing someone or making a tweet

- When not performing that goal, log out

- Prefer direct navigation/bookmarking of interesting people and reading their feeds vs looking at logged in timeline

It works a lot better but if you want to tweet something you still need to wade into it.
No URL.
You can have access to larger open datasets of images if you want, but it's expensive to train on such a large dataset. So the real advantage is having money for training models.
Curious as to how OP managed to get the registry data. HK government is infamous for sucking at opening their data. This guy: https://webb-site.com/ is famous for spitting in their eyes regularly to remind them.
I've been evaluating different services and for now, I'm liking https://larder.io/

It's not perfect, and no archiving yet, but it's in active development
Off-topic, but I finished reading your book suggestion "East of Eden" from this thread [1] and loved it. Do you have any other book recommendations?

[1] https://news.ycombinator.com/item?id=18662420
I don't think of TDD as being confined to unit tests and I was taught to test from outside in, meaning I'll have acceptance and integration testing as a matter of course.
Speaking of spines and copyright issues:

In K W Jeter's excellent dark cyberpunk novel "Noir", intellectual property theft is viewed as literally killing people by removing their livelihood, so copyright violators were punished by having their still-living spinal cords stripped out and made into high quality speaker cords in which their consciousness is preserved, usually presented to the copyright owner as a trophy.

"In the cables lacing up Alex Turbiner's stereo system, there was actual human cerebral tissue, the essential parts of the larcenous brains of those who'd thought it would be either fun or profitable to rip off an old, forgotten scribbler like him."

https://marzaat.wordpress.com/2018/01/27/noir/

>There’s a lot to like in the novel.

>My favorite section is the middle section where the origin of the asp-heads is detailed via McNihil’s pursuit of a small time book pirate and the preparation of the resulting trophy. The information economy did, in this future, largely come to place. As a result, intellectual property theft is viewed as literally killing people by removing their livelihood. Therefore, death is a fitting punishment. McNihil, in his point by point review of the origin of asp-heads, notes that even in the 20th Century there was the phrase: “There’s a hardware solution to intellectual property theft. It’s called a .357 magnum.”

>Actually it’s decided that death is too good and too quick for pirates.

>Their consciousness is preserved by having their neural network incorporated in various devices. (Turbiner likes to use stripped down spinal cords for speaker wire.)

>This sounds like a cyberpunk notion but, in other parts of the novel, Jeter takes a swipe at such hacker/information economy/internet cliches as information wanting to be free (McNihil destroys a nest of such net hippies) or the future economy being based on information. Villain Harrisch sneers at the notion stating that information can be distorted but atoms – and the wealth they represent – endure.

>Still, his novel is chock full of the high-tech, low-life that characterizes cyberpunk.

(I'd quote some more, but as a high-tech, low-life net hippie, I'm afraid of having my nest destroyed and getting my spine ripped out!)
It's a mistake, man (or woman). Shit happens. ¯\_(ツ)_/¯

We have to expect as users of cloud software there is a chance our data could be compromised by BUGS or human error. I think that should be a given in any scenario. There's a difference between releasing data to third parties (or internal employees having access) as a matter of standard practice, and an unexpected breach or error in process leading to accidental disclosure of personal data.

As a reader, I am uninterested in articles about the latter. It's clickbait / doomsday journalism. The most interesting stories are those about grave errors in judgment/behavior and cases that indicate a company has routinely breached user trust. I do not agree that "employee mistakes" fall in that category.
Finally spent some solid productive time deploying various AWS architectures for the new job. Ironically I was hired to be their GCP guy.
It is indeed lazy thinking; but it doesn’t make it insincere or wrong, just inaccurate.
The first basic income experiment in Germany will start in 2019
Fantastic explanation of the impact of working through SICP.

Scheme notation is effectively AST, thus you can mentally map any PL to it and at the same time avoid getting caught up in the syntax issues of any given language.

Agreed working through SICP is a non-trivial experience. However, what you learn will provide solid foundations for your professional future regardless what languages you end up using.
I can understand the view from his perspective. What I can't understand is, how can you have a level of pragmatism to be excited and supportive mainly based on how cheap a mission could be.
Casinos. Pornography.
How to estimate time for a project/task accurately
Just in case you didn't know, deleting posts or your account here is impossible.
Sure, I think this is reasonable. Spiking and prototypes are legitimate. I've done both and I expect I'll do both again.

I don't necessarily agree about the fake productivity. I don't think of SLOC as the metric of success. In fact, I rarely think about SLOC at all. What matters to me is proving to my own satisfaction that the software works, now and in the future.
I do this too in cases where I’ve got an “extreme” amount of learning to do. (Learning a new language, a library, or something I’m trying to make work just simply won’t do I break it down into a tiny test).

This isn’t my usual TDD workflow but I use it when my understanding of the mangauge or language feature are blocking me.
No and not planning too. It's how I keep in touch with my far flung family.
All of snapchat's changes felt like a game transitioning from paid to free to play. similar levels of confusion and forum visits required to navigate the UX changes and how i would now "pay" by viewing ads to view the content i had before.
I still write little http servlets like this sometimes, especially for something like gluing IoT services together.
Another motivation is not being tied to Internet. It's pretty ridiculous, if you think of it, to require an Internet connection to play a piece of music. Yes, some services do offer "offline mode", but when you store the data locally anyway, then why not get it as a file you can actually own, edit, and move between devices yourself?

(The same argument applies to movies, books and video games, but all of all these, a piece music is most likely to be re-listened to many, many times.)

Another motivation is data formats. Streaming services don't exactly offer highest quality, and while a normal person may not even hear a difference (especially with cheap sound equipment), audiophiles care about this.
Brilliantly said!
Ask HN: When have you been using Django compared to Flask?
Yeah, this does kind of feel like condemning people for having the gall to not shop at Trader Joe's.

Realistically, what's the difference between Dollar General and Woolworth's 5¢ & 10¢ stores? What's the difference between Amazon and the Sears Roebuck Mail Order Catalog? The names have changed, but merchandise really hasn't.
I never had a Facebook account.
Daily Horoscope DECEMBER 24TH
Not sure if you were asking about products specifically, but just finishing up our first full year on our consulting firm Alpha Particle (https://alphaparticle.com). Working with some really interesting clients and excited to expand into 2019!
Building WebRTC Applications in Python Using AIORTC (Interview)
It’s a false equivalence to equate TDD to religions as the effects are observable and measurable with TDD. In contrast, none of my loved ones have contacted me from the afterlife nor has any diety ever responded to my exhortations.
I am a co-author of the Froid paper, and am around if people have any questions/comments/feedback.

Froid is now available as a feature of SQL Server 2019 preview. The feature is called "Scalar UDF Inlining" https://blogs.msdn.microsoft.com/sqlserverstorageengine/2018...

Available to try out for free here: https://www.microsoft.com/en-us/sql-server/sql-server-2019
Twitter’s problems aren’t confusing: fix the abuse problem and add an edit button.
Real-Time Analysis of Time-Series Data in PostgreSQL with PipelineDB (Interview)
This also covers a case that I don't see discussed much, the cost of going shopping. Even ignoring wear and tear, if you have a truck or an older car that gets maybe 20 mpg, a 10 mile 20 mile round trip costs you a gallon of gas or $2-4 right now and sometimes more. That's not much as part of a weekly shopping trip, but if you just need a gallon of milk it's a low-visibility jacking up of the price.