skysight-inc/HackerNews huggingface dataset:
I think the point is that programs written in a dynamically typed language aren't that dynamic most of the time. With static analysis, you're able to get at least some benefit from autocomplete and automatic refactoring. The parts of the code where it doesn't work - well, the developer has made the tradeoff that it's worth it there.

Sometimes I wonder why there aren't more 'empirically' typed languages, i.e., you write a function and some unit tests that exercise it and from that the compiler can determine what are the actual types and values the function sees for every variable.
Microsoft put out a study where they had done TDD or at least extensive unit testing. I don't recall the numbers but development time took longer and there were a lot less bugs. Which is what I would have expected.
I have an Intel i750 NVMe SSD. It has about a 60 microsecond latency.

This device is supposed to be on the order of 10 microsecond.

The only people that would notice that are people running database servers serving hundreds of thousands of users.
Since I think rails 4 or earlier it's preferred to use `find_by(id: 4)`, but could instead be `find_by(email: "email@example.com")`, or even `find_by(first_name: "Franky', last_name: "Tomato")`.

IMO returning nil instead of an exception for the above is practical for me. Much easier to work with.

Having `find(4)` raising an exception is because you'll typical use it in your member actions for a controller where it's reasonable to want an exception if something can't be found.

It's just Rails being Rails (practical sometimes at the expense of possible interpretation of correctness). You do have to retain stuff like this in your head, but it becomes habit pretty quickly.
Trivially, a UUID is wider (128 bits as opposed to 64). You can choose to generate your UUIDs using a Instragram[0]-like strategy so you can, for example, benefit from temporal/spatial locality in the indexes. There may be performance consequences of using the wider datatype, but I suspect this could be overwhelmed by other application concerns if you're dealing with data that benefits from the wider type.

[0] https://engineering.instagram.com/sharding-ids-at-instagram-...

Edit: Update to correct snowflake to Instagram's strategy. I make this mistake often enough that it's now self-reinforcing :/
I remember when the rule of thumb for big storage arrays was "100 IOPS per disk." It's still only that with common desktop disks and only 200-ish for enterprise SAS disks. This device provides the equivalent of 2500-5000 disks of IOPS. Latency, particularly write latency, should be better than flash as well.

The price isn't too bad really; a Samsung 960 PRO M.2 1TB is $600 for a little more than twice the storage. It's still early days for 3d xpoint; Intel and Micron will build on this. Exciting stuff.
Exactly, most bugs I see are in integration, mis-matches in data-models or state. But I also work on business-y applications which tend to be more integrations than local business logic.
Do you know what? I was there, I saw the transition, I saw the people and I saw the evolution. What you say is not even wrong. It's just nonsense.

PP is a standard conservative party, equivalent to Puigdemont's CiU (now PDCAT) and that has been in the government with the support of CiU for years, during Aznar times.

PP turned a blind eye to catalonian nationalists' abuses when they needed them to keep power. Now they're starting to see the consequences.

Rajoy must be the laziest prime minister the world has seen. He wouldn't move a finger without absolute need for it. Even in this dramatic situtation he has hold his breath until he was risking stiff penal prosecution for himself had he not acted!!

Suggesting he is promoting the escalating is not only untrue, it's ridiculous.
It really must have taken a lot of foresight for Vladimir Putin to establish a distinct language and culture in Catalonia a thousand years ago, all in a bid to destabilize Spain.
Twitter, for example, will place the username at the first level (twitter.com/username). Most of the other interactions occur under a small group of other addresses, such as /i/ and /settings/. However, I can still see this being a helpful resource so that you don't have to think about all possibilities from the outset.
>What about folks who don't have the luxury of jobs where they can work remotely?

I would bet >50% of the people working in the bay area who say they can't work remote are doing jobs that could very easily be done remote.

Do you work on a computer? You can do that remote.
I don't think handling is of serious concern to the people buying the kinds of cars these will go in.
How does it fall in that group? That's a referendum taken out of the blue, just weeks after Russian military takeover of the region.
Spain is different. Spanish regions control big chunks of the public budget and Spanish parties rule everything. It was a matter of time that the population of the richest region and its own cultural stuff went nuts because of their rulers. Spain is broken, has suicided itself with this stupid regime.
I am from Kerala (South India). Hindi imposition never bothered me until the last 2 years. I don't know if it's media's effect, but it is a really valid concern for me. Considering that Kerala exists more or less thanks to money from Gulf countries and little help from the center, I won't mind a separation either.
I suppose it depends whether a city is a hub that serves other cities too, on the shape of wealth distribution and how the rents are shaped. As far as I know NYC has rent control laws and it serves as financial hub for many other cities. If you dismantle it, another city will take it's place, but one not multiple - that's pretty much how finance works.
If Google Trends is to be believed, it looks like Kotlin is pulling ahead world wide. If you look only at the US though, interest is much more neck and neck.

https://trends.google.com/trends/explore?q=%2Fm%2F0pl075p,%2...

At the end of the day, your choice of language should come down to matching the language's strengths with what you are actually trying to develop.
Waymo Will Test Self-Driving Cars in Snowy Detroit
Hops and Handshakes Ep. 9: Helping Small Businesses Bring Their Ideas to Market
Around 1600 companies had left the area since 1 octobre. If i'm not wrong recession index are defined as two consecutive trimesters of economical decline, so we'll need to wait until June 2018 to answer correctly how (and if) this was affected the economy.
I agree. NYTimes has led with technical prowess the past a few years.
I presume this is just you and me talking right now, right? So, just man-to-man, how have I provided less substance than the comment I replied to? That comment was 100% opinion about causality, and that opinion left out an extraordinarily salient facts about other conditions with the Quebecois Separatist Movement and Canada in general.

I understand if you dislike my tone, and if you want to purge this place of people who aren't as docile as you'd prefer, and that's obviously your decision. But I'm not trolling. I am like this. Prior to hitting post, I turned to a colleague who was reading that comment and called the previous commenter names that I did not include in my post. But that's what you get with me. I'm quite possibly the best participant on this board when it comes to fintech, and my job is to think out of the box. That may mean that I act outside of the box, too, and if you want this place to not include people like me, so be it.
If you open the box their wave state collapses and they are either excited or bored. :-)

(ok that was a long way to make a Schrödinger joke) There are a lot of people who are very excited about Quantum computers and working on them, as they get more 'real' people on the fence move over, etc. I watched this on a smaller scale with 3D printers, as only a few people were excited about them and then as they demonstrated more and more interesting things the wave of excited people expanded outward from that core.
Thanks. My response to you was a bit off (hence obscuring the point I was trying to make). I do apologize.
Circular Economy Is the Answer
All 12 of the members in the Spanish "top court" (Constitutional Tribunal) are appointed by the king himself.

8 of them are proposed by the legislative branch (parliament and senate), 2 by the executive, and 2 by the judicial.

Whether that makes the tribunal as a whole independent from the government or not is an opinion I leave to the reader.
I think it would make sense (in a lulz way) to run the 4chan clone on one of the Ethereum testnets, instead of the mainnet. It's a lot cheaper, because you're not paying for permanence!
As I recall the EU does not allow countries that have the death penalty (even if only on the books).

Also, worth remembering, it is not High Treason if you win.
What I never understood, if China is so great, why then do large parts of their upper middle class/upper class buy property in foreign countries and send their kids to school their? It's not as if the American upper class are purchasing houses in Beijing for their kids.
India overtakes the US to become the world’s second largest smartphone market
Risk vs return. That's okay that you prefer the Bay Area. I would have no problems if I knew that Google were committing to a permanent HQ in Kansas City. If they close down, they close down. I have no control over that, but I do have control over saving money and still maintaining a high quality of life because I'm not obsessing over property prices, private school for my kids because the public schools are so terrible, etc.
The US is, if anything, moving further to the right. The rest of the world is moving to the left. China's decision to abandon absolute equality and move to a less equal system is pragmatic and based on the idea that a rising tide lifts all ships.

I wouldn't call 50% state ownership of most if not all large companies anything but "socialist"; they just found a way to introduce incentives into a socialist system by abandoning the idea that everyone should be a "worker". But wealth redistribution is absolutely at the center of the Chinese system.
Also, if you're interested in some background and process, here are the slides from the Toronto Hack && Tell presentation I gave last week: https://docs.google.com/presentation/d/19tQgPg9Wb9xwuregHCGF...
Is the image data itself on the chain, or just a url?
The two biggest things it gets us is an identifier that is unique across the database and also something that the application layer can generate and then provide to the database - instead of inserting a record and finding out what the id is after the fact. Secondarily it means that someone cannot guess what the next record is by trying to increment or decrement an integer key but like you say there are ways around that.

We do plan to eventually convert the text versions into real uuids but our performance/size isnt an issue at the moment and its a lot of risky engineering work to do.
> Reading your comment, it's not clear to me whether you're aware that the UUID datatype in PostgreSQL is a 128bit value as opposed to a text field

I was speaking towards the idea that some people throw UUIDs into text fields, as implied by the parent;s clarification that they were not doing that. For example, in years past when that type may not have existed yet. People have been talking about "just use a uuid for the primary key" for at least around a decade now.

> As 'craigkierstens points out, the index performance of the native UUID datatype is very good: it's not a string comparison.

I would assume so! Any database that implemented an actual 128 bit numeric type (no matter if it's converted to hexidecimal notation for display, ints aren't stored in decimal either) as a text field would deserve quite a bit of ridicule, in my opinion.

> If you're using the UUID type to encode information that you may want to access subfields of

And that answers a question I raised somewhat implicitly in my other comment, which is why use a UUID in the first place. Because you can encode specific sub type information into the parts. Thanks!

Edit: Forgot some words in my paragraph that mentioned ridicule, so I added them to make sure it was obvious what and why I thought they would deserve some ridicule (which is actually a bit stronger than how I generally like to come across).
In particular, to apply a law passed by the Catalan parliament a few weeks ago that has been deemed invalid.
I was objecting to a mischaracterization in the article. I took a literal quote from the article and objected to it; I did not make it up, or change topics.
Please don't. If you have a substantive point to make, make it thoughtfully; if you don't, please don't comment until you do.

https://news.ycombinator.com/newsguidelines.html
Does anyone even believe in 100% coverage?
Even the word nationalist implies that Catalonia is a nation that was never true.
That article is from 2012. It's a constant battle, which has changed a LOT in 5 years.

https://blog.torproject.org/breaking-through-censorship-barr...

https://www.torproject.org/docs/pluggable-transports
Because the referendum still took place means that some people don't care about it being illegal.

Politics affects you whether you find it "illegal" or not
Yes. It's about 18KB of JavaScript.
The author raises good points which are hard to disagree with. I'm troubled by the decision to choose the odd and seemingly arbitrary "95-20 ratio" though, instead of a more typical 80-20.

Does anybody know what these graphs look like at 80-20?
This article is from 2014 so I thought it would be interesting to see how things are going.

It's hard to tell whether the subject of the article, Protean, is having success with the in-wheel motor. Their website is vague about who their customers are: http://www.proteanelectric.com/about-us/

At the end of the article they mention that China set a goal of 500,000 non-fossil fuel cars on the road by 2015, it looks like they probably got there: https://en.wikipedia.org/wiki/Electric_car_use_by_country#/m...

They also stated the goal is to have 5M on the road by 2020, which also looks like they'll get close since there were 352,000 sold in 2016: https://qz.com/972897/china-is-selling-more-electric-vehicle... and what looks like a 72% growth rate over 2015. That would mean (if the 72% growth holds, it could even increase):

Current: ~600K
2017: 600K sold
2018: 1M sold
2019: 1.72M sold

Total: ~4M
> Eisenberg cautioned the study should not be misinterpreted as having proven a causal link.

So alternatively, people who are promiscuous may also tend to smoke more weed?
Two different beasts.
This might be right. But also note that Spain already features a lot of decentralization and Catalonia is at the head of this.

This is very illustrative https://en.wikipedia.org/wiki/Autonomous_communities_of_Spai...
Thanks for the suggestion. I'm the co-founder of Educative where this course is hosted. We'll fix it.
The niche for this device is high random read performance in workloads where the dataset is too large to fit in RAM, for a significant price premium. Random write and sequential read/write performance is poor value compared to cheaper and higher capacity NVME ssds from Samsung.

The one standout feature apparently is that performance is reliable and not subject to GC stalls or degradation as the drive fills up.
Ask HN: What is your “I wish I did it sooner” moment?
This isn't a new problem… https://www.quora.com/If-illegal-material-e-g-child-porn-wou...
On the wheel, it's unsprung mass. That extra mass hurts the ability to the wheel & suspension to quickly respond to bumps, and causes energy to be lost into the suspension and tire.

It's even a problem on trains - early electric trains had connecting rods between the motors and wheels just like steam trains. Later ones have the motors in the bogeys, but the motors are sprung and can swivel on the same axis as the drive gear.
True - you don't even need to venture into quantum mechanics, the concept of infinity has been useful in practical science far before anyone dreamed of quantum mechanics - but there's a difference between a definition of what happens to a formula when a limit approaches infinity and claiming to somehow understand infinity as a concept. I mean when you deal with infinite-dimensional operators, infinite-series etc. does it matter what ordinal of infinity is used?
The reason to be skeptical of the "shining success story" ideal is the underlying, incorrect assumption that success is about being free of faults.

Success is about achievement far in excess of the average. When a change is massive, it usually hurts someone. Sometimes things that seem really positive, like facebook helping kids stay in touch, contain massive negatives, like amplifying polarization in society.

That's why we need to evaluate these things with more nuance. Just because Google's search engine is a massive boon to internet users doesn't mean none of their businesses should ever be regulated. Just because Uber's culture is misogynist doesn't mean taxi licensing is great policy.

And if you succeed in doing something massive, remember that it isn't permanently good, and doesn't make you permanently good.
How about Slack ($5bn) and Stripe ($9bn)?

That being said, when you get that big, of course there's problems. You have targets on your back, you're managing thousands of people, etc. Especially if you're entering into a market with regulations... someone is going to fight back.
I guess if you have usernames in a shared namespace with system components this'd make sense - it's not something I'd consider a feature.

consider:

website.org/aloha

website.org/contact

website.org/u/aloha

website.org/users/aloha

users.website.org/aloha

u.website.org/aloha

aloha.website.org

with the first two examples, yes, there is a potential for collision - so you'd want something like this.

I consider the next four examples to be best - the final example I consider potentially administratively painful depending on implementation.
How can I get first party isolation in regular chrome or firefox? That is exactly what I've been imagining/wanting since Firefox announced their new container prototype.
I mean, you're welcome to have a look at it https://github.com/IEMLdev/Intlekt-editor

An example of how I put together a component is here https://github.com/IEMLdev/Intlekt-editor/blob/master/src/sc...

- My "view" function takes a template string and replaces the node's content whenever "render" is triggered.

- I create a "model" object which triggers a "render" event anytime it changes. You can also give the model object methods which act as Redux-style reducers.

- The controller method is a shorthand for registering multiple jQuery events at once.

That's pretty much all you need for a complex app. It's the entire React-Redux architecture à la jQuery + ES6.
> OK, AIUI the law in Spain means that only central gov can order a referendum. The vote was declared illegal and those party to it were thus breaking the law, conspiring to harm the constitutional standing of the country.

My understanding is the same. Which is why I wrote above that they should have gone out and actually arrested the separatist leaders who organized all this. This could have played out in the courts (up to the Court of Justice of the European Union, I would guess).

But sending a few thousand (or tens of thousands?) police against millions of voters was not about this. Whatever they thought they were trying to do, it was not possible with these numbers. And as far as I can tell, they did not try to arrest people. They did not try to get people's personal data to get them before of a court at some other point. They did not show up in time to simply barricade the doors of polling stations. In short, they were not enforcing or upholding the law in any meaningful sense.
Those words are different in my mind. They can be the same in yours, if that's the way you prefer it. We are not beholden to the Academy of English to use words only in an officially sanctioned manner.
Fullstack Academy (YC S12) is hiring devs in New York who love teaching
Brings to mind images of Conway's Game of Life, with computations moving about a grid of memory as they create and destroy new bits of data.
Great article! I like the call for bold strokes. We seem helpless in the face of our big problems.
Why do we think a lawyer would be less likely to be duped? If they are relying on physical paper and pen signatures...aren't those all incredibly easy to fake?
What a great idea, naming your tool almost exactly the same as biggest code quality / static analysis tool that people already use. /s
> it gets us is an identifier that is unique across the database and also something that the application layer can generate and then provide to the database - instead of inserting a record and finding out what the id is after the fact

That's a good point, and makes sense. Also, as gzrm noted in another comment, you can make use of the different parts of the UUID to encode specific information, which may be helpful (but at the loss of uniqueness bits).
the wheel must change direction and move quickly to follow imperfections in the road surface. Increasing this weight decreases the wheel's ability to follow the undulations. Increased mass also contributes to centripetal force, inhibiting the wheel's ability to change yaw (turn). It acts like a gyroscope.
This is true, but incomplete.

Strictly, the entire area is paying the price for the entire area being willing to add jobs but not add housing.

San Francisco is no different from Palo Alto and Mountain View in that regard.
It's a URL.
“Peak Framework” and the runtime barrier: why libraries&frameworks are exhausted
Not quite. memristors are resistors with a memory.

Specifically as current is run across it, it builds up more and more resistance. Then as the current is reversed (the plus and minus ends of the resistor is switched) this resistance will go back down.

Thus it can be used as non-volatile memory in the sense that certain tiers of resistance can be designated as a bit.

Note that as it is fundamentally an analog component one can potentially also used this property to emulate a neuron.
Is the proof of incorporation not presented on physical paper? Seems easy to fake.
Very true, and I definitely didn't mean to imply in the article that the areas around SF should "make the sacrifice."

What I'm advocating for is regional ("metropolitan") leadership and planning. We all have to make sacrifices. That doesn't mean we can't have planning - I think urban planning is essential to building a city that works. But we need to do the planning at the level we're having the problem - which is, the Bay Area level.

Maybe high-rises do make sense on Golden Gate Park, but then we'd better have BART stations there taking people down to Mountain View and Sunnyvale (or wherever they're working).
Exactly. It seems that people from outside of Spain is so confused about what's happening here because they can't believe how lenient and forgiving our authorities are.

In any other country, included every single one of our close neighbours like France, UK or Germany, what we have seen here would have been inmediately stopped in the blink of an eye.
If they didn't use vanity names, then people would only remember the first/last few random characters and the phishing scheme could very well still work, just it'd be less readable for visitors. I don't think we can assume that if all the characters were random they would remember them all better.
Sorry, my questions might reflect that I don't know much about China / Chinese culture. I'm curious about compensation. Can Chinese AI researchers earn equally well in China as abroad? Or are they going to suffer from brain drain eventually? How does the Communist Party / society deal with large pay gaps? Are Chinese companies with AI departments looking for international talent that's not at the uppermost level?