skysight-inc/HackerNews huggingface dataset:
name: string;
constructor(name: string) {
this.name = name
}

You don't have to do this in TypeScript either, you can just do

constructor(public name: string) { }

Also, the "Empty collections" section doesn't do the same thing, the collections you created in Kotlin are immutable.

And the TypeScript ones have the value `undefined` (unfortunate that strictNullChecks doesn't catch things like that https://github.com/Microsoft/TypeScript/issues/8476).

And for some nitpicking, please be consistent with your semicolons, either use them or don't use them, but don't mix it randomly like that.
I don't know about making it the default, because there are tradeoffs with regard to the cache invalidation.

That said, offline-friendly app caching with Service Workers is extremely useful, and changed the way I see and make web apps.

Now when I use a web app that isn't offline-friendly, I get annoyed. Always demanding a live internet connection obviously creates latency and unreliability for apps.

I changed a former client's app to be offline-friendly with Service Workers, and the benefit was obvious: their app now loaded immediately for repeat users, and they could access much of their data even when they were offline (on a flight, on a crappy Wi-Fi, etc etc).

I made a side-project to help my band members share and edit chord/lyrics sheets (also using Web Audio to give karaoke-style chord playback!) and again I made sure to set up full Service Worker caching. I also used PouchDB for the user data, which was beautiful: I didn't need to run any database server (we just used Cloudant's free instances), all our songs were synced into local browser storage (in real-time when online), and most importantly, the whole app worked perfectly while in the basement rehearsal space that completely blocks mobile signals.

(I'm not working on it nowadays. It's up on https://sketch.band and the code is at https://github.com/mbrock/sketchband under AGPL3. If you wanna try it, the undocumented syntax for the song is: each line should look like "C Dm7 / Once upon a time you dressed so fine".)

Basically offline-first technologies really help make the web into a good platform for apps.
Incentivized installs forbidden on Google Play
Scala has it. With Shapeless, you can go all crazy with it.
I know and I haven't updated to Sierra just because of that. If I knew that Keyboard Maestro gives me all of the features of it I'd even pay fifty dollars to get it.
If you want your data to end up managed by the US you can use WhatsApp, if you want it to end up in Russia you can use Telegram. They are very similar in features, but I'm not a fan of Telegram storing all the conversation in their server.
So he can leave the embassy now?
Yeah, it turns out that a lot of environmental and energy stuff didn't exist until the 1970s.

Nixon created the EPA, Carter the DoE, 1970 and 1977, respectively.

It wasn't until the 1973 Arab Oil Embargo that concerns over automobile efficiency even registered for most Americans. Gas was cheap. Cars were big. Life was good.

(That being the thinking, if not the reality.)
Moment Mark Zuckerberg finds out he's got into Harvard
Egypt Government proposes social media license registration to use social media
Abstract Spatial Reasoning as an Autistic Strength (2013)
I find the title of this entry highly misleading. I clicked through expecting to see new colors (even though I knew that was going to be impossible). What I saw was weird color names.
Sweden drops Assange investigation
List of active mobile Banking Trojan botnets
How would you describe the people who go to each of those schools?
Swedish prosecutors drop case against Julian Assange – WikiLeaks
Better then mp3 and embedded devices (e.g. cars) almost never have support for opus (or even ogg)...
Have a look on bangood or gearbest.
On learning to Fail
I laughed so hard :D
Is this Kotlin the new "Erlang" of the HN' first page?
Kotlin is also like Kotlin
Yeah right now demand is outstripping supply, but I don't see that lasting very long.
LYREBIRD: speech synthesis technologies for developers
I don't think we're ever going to go back to that. Those UIs were pretty static, i.e. you only created the "initial state" in the UI designer, and then modified it during the application run-time (sometimes even creating new widgets in code), or attached some kind of data-binding models to it.

With the popularity of things like React, you now have a powerful way to express how the UI looks in every state, not just the initial one.
I'm guessing this doesn't absolve him of the offence of "skipping bail" or whatever it is the Brits will arrest him for.
He can't be extradited to Sweden now if he leaves. I wouldn't be surprised if the US attempted to pursue him directly on some other charge. Before something else comes up, he could get on a plane somewhere now though safely enough though.
Why woman?

Of course you can come near the percieved beauty of people, just take a good sample set with ratings and let it learn.

In general though, people will also disagree about beauty and luckily, when you get to know the most amazing people, they will appear much more attractive to you than just their physiology.
All I can say is... WOW.
Anyone know why they dropped it?
I think he still faces extradition to the US. This Guardian from a few days ago explains the situation quite well: https://www.theguardian.com/media/2017/apr/21/us-wants-to-ar...
Pity they couldn't have the imagination to write a more positive headline then.

How about - "MP3 music tech finally freed from license limitations"
According to his Swedish defence lawyer Per E Samuelson, Assange sent a text immediately after being noticed: "Seriously? Oh my god!"

Question kind of still remains: how "free" is he now?
Well in my case, there was only an 8 character limit, so there was a least a bound on it. I didn't investigate how far you could deviate from an old password before it was allowed though.
I wonder if the UK taxpayer will be asking some questions about the justifications of policing the embassy? A pretty abysmal ROI.

So, will the police presence now simply disappear?
You're trying to tell us that Scala is something better and we are just too stupid to understand it's power/beauty/importance?
Xamarin.Forms for macOS preview
He still can't leave. The US is just going to kidnap him off the streets of London. Wouldn't be the first time.
Yes, that would be its biggest differentiator.

Scala has it too indeed, but it's not the default mode and feels awkward, also has known limitations.

The nice thing with typescript is that structural typing makes sense for 90% of the use cases, and for the remaining 10%, you can very easily simulate nominal typing by adding a field like so:

interface Robot {
__Robot: true
}
Director of Public Prosecutions, Marianne Ny, will hold a press conference at 12:00 CET.

EDIT: Marianne Ny has been a subject of heavy criticism in Sweden for her handling of the Assange case (primarily for refusing to take his statement remotely, and claiming his fears for extradition to nothing more than conspiracy theories).
The Future of America's Working Class (2010)
Because it was a shady "character assassination" attempt without real standing in the first place...

"*The woman of whom Mr. Assange is accused of the offence
of "lesser rape" (a technical term in Swedish law) sent an
SMS to a friend saying that she "did not want to accuse JA
[of] anything" and "it was the police who made up the
charges". The other woman tweeted in 2013 that she had
never been raped. Both women’s testimonies say that they
consented to the sex. A senior prosecutor already dismissed
the ’rape’ accusation, saying that there were no grounds
for accusing Mr. Assange on this basis. But a third
prosecutor, lobbied by a politician who was running for
attorney general, took over the investigation and
resurrected the accusations against Mr. Assange.* [1]"

That's what happens when you mess with the big powers (and of course it doesn't stop to the "politician who was running for attorney general" being a single bad apple).

[1] https://justice4assange.com/
I am still waiting for Mandarin, IIRC it was announced a few years go but still not available last time I checked. If they release Japanese now there might some glimmer of hope.
Such a useful and important tool should really be documented in the React tutorial, etc...
Not sure where this leaves him. He is wanted by UK police for skipping bail. Presumably his US concerns still complicate his living arrangements for now.
Pure assumption based on speculation.

https://en.wikipedia.org/wiki/Appeal_to_probability

https://en.wikipedia.org/wiki/Burden_of_proof_(law)
No reason you can't be both.
You should try LINQ on C#.
I also have ADHD which has reached debilitating levels at times. Noise cancelling headphones, removal of computer games, and being disciplined has helped. In all seriousness though, it's a more complex condition than most people realize and seeing a specialist is never a bad idea.
Riding Shotgun with Uber CEO Travis Kalanick
> We need to teach children how to cope with all aspects of social media – good and bad – to prepare them for an increasingly digitised world. There is real danger in blaming the medium for the message.”

Or perhaps it is the medium that we should blame. I'm kind of getting tired of this cluelessness when it comes to understanding why we get so stuck just scrolling our lives away.

Instagram is owned by one of the largest advertising companies in the world (Facebook) and their goal is to make us, and our kids, to spend as much time in their application as they possibly can. I would argue they're doing very well and I don't find it hard at all to understand why spending that much time in real-time slavery doesn't make us happy people.

Let us find other mediums through which we can express ourselves. They might not be centralized and they're certainly not owned by a multi billion dollar corporation.
1 hour and 30 minutes from now for my lazy friends.

Correction: 23 minutes from now, thanks svip
Maybe it's just me, but I think "MP3 is patent-free" headline would get just as many clicks.
>He still can't leave. The US is just going to kidnap him off the streets of London. Wouldn't be the first time.

When was the last time the US kidnapped someone from London's streets?
I meant the justification for dropping it from the Swedes
Step 0: create the universe
Overcome Your Fear of Public Speaking and Performing with These Proven Methods
Their response (may 18): http://www.audioblog.iis.fraunhofer.com/mp3-software-patents...
I think tontonius meant to say 12:00 CEST. It's summer time. So only 27 minutes from now.
This is the first thing that popped into my mind also.

Also what about legal blowback if they give really bad advice?
What about the secret US charges?

I honestly don't understand how in our democracy there is even such a concept as "secret charges". It just sounds mind-bogglingly corrupt and out of place.
I think you're being a tad literal there. The last case I remember was Hassan Mustafa Osama Nasr who was kidnapped in Italy and brought to Egypt by the CIA in 2005. Italy's streets are not less intrinsically sacred than England's.
... and whoops, the next thing you know your left handed oral hygienist has apocryphally crashed into Venus.

https://en.wikipedia.org/wiki/Mariner_1
Five years living in a single room, not able to leave or walk outside.

Millions of pounds/dollars spent enforcing the same.

A gigantic show of idiocy from both sides.
Sigh, about time, even for the US this was starting to drag, I wonder how much it had become about saving face ? Either for the US actors or the Swedish assets.
I wonder what's the oldest and/or most maligned language that you can use to make a similar comparison that's still somewhat valid...
>Modularity is good and all

Up to a point though -- "break[ing] down functions into tiny components" doesn't seem to be on the good side of modularity, but more like the lpad npm fiasco.
SharePoint Project Management  Hubfly
He needs to face justice one way or another.
Its a verdict in the Supreme court that regulates how long you can keep warrant for detention out that lead to this, but I'm not an lawyer so there maybe details to this that I miss.
What is your legal protection on giving bad advice? It's all good to say something along the lines of it not being legal advice, etc. But what if some advice you give wrecks that person career? How are you and your mentors protected?
They have been popular with folks that owned 3D printer for a while. It could be something simple like a critical mass of 3D printers being reached. My wife was printing these for fun a few months before it all exploded.
While on the "how HN works" topic, where is the button/page to submit a "Ask YN" ??? Not a neophyte by any means, but what is to me a thorough web investigation came up empty. Just me?
Now we just need something which would take care of the 'R'.
The time you needed to develop an app with those 90's RAD tools wouldn't even be sufficient to setup the build pipeline for those trendy JS frameworks.
Get a library for a low-powered device that supports OPUS
They've kidnapped people from the streets of Milan, Italy.

http://www.businessinsider.com/cia-operative-extradited-to-i...
I will only agree, the day someone makes a RAD based React WYSIWYG editor that can at very least compete with Microsoft Blend, Android Studio or XCode just to give a few examples.
The UK police will arrest him for obstruction of justice the moment he tries to leave the wardrobe he's hiding in.

He'd probably be convicted, which carries a maximum sentence of [EDIT] 1 year in prison.
I get what you're saying.

I seemed like every girl I dated in my twenties was an Artist, or thought they were.

I always said their art was good, and I got back, "but you didn't go to art school!"

I did have a nervous breakdown.

Their art still looked contrived, and obvious.

Now--my appreciation of Modern Art took on a whole new level of appreciation.

Before busting a gasket, I didn't get it. Now, I do get it. (Still don't quite get Warhol, but I think his genius was he was one of the firsts?)

I'm at the point now, if you arn't a bit crazy, or you have been ruined by some art school; I just don't want to waste my time looking at your art.

I turned into the the people I despised, but a differnt philosophy.

To those that did bust a gasket--give modern art, or whatever art/craft/DIY project you find interesting a second chance. You might be suprised that the new you is different than the old you. These are just my antidotal thoughts. I don't want to debate. Those that know, will get this post.
I'm 100% we are.

Step 1: People realise that Electron apps look different and do not fit the OS.

Step 2: Big company invests and creates a library that supports Win/OSX looks.

Step 3: Same big company creates a RAD type tooling for it.

We present you a revolution - Big Corp. RAD Tooling 2020 a la Borland Delphi 2007.
...that we know of. The CIA and co have means of making people disappear.
> (thanks to Google for the kind gift)

Why am I spontaneously thinking "Trojan Horse?"
Show HN: Nsz.one – site for zone DNS lookup with favorite list e.t.c
Both sides? Makes complete sense from Assange, IMO. Better 5 years of prison than lifetime of torture.
Also this:

https://en.wikipedia.org/wiki/Repatriation_of_Ahmed_Agiza_an...
What is his crime? He isn't the one committing war crimes. He is exposing them.

Yet we continue to go after whistle blowers and journalist instead of the ones who committed these crimes against humanity.
There are already a lot of cases where LLVM can successfully optimize away things like safe Rust's bounds checks in loops.

There are also efforts to include "const generics" which will let you use e.g. array lengths as generics that may be able to teach LLVM new optimizations. Maybe someday in the far future that will grow into some kind of dependent typing extension for Rust? That could potentially allow for safe, bounds-check free array access that would currently require unsafe. But I don't know if that would allow for proving the kinds of things this article discusses.

Ultimately though, the unsafe subset is pretty small and is generally in my experience only interesting when building heavily reused abstractions (the kinds of lock-free algorithms OP discusses for example). It'll be really cool if these efforts expose some ways to shrink reliance on unsafe code, but I'm personally not sweating it.
Assange was basically, from his POV, defending his future freedom and poasibly his life, and still is.

Very likely, he was right.

How is Assange showing "idiocy" here?

Also, from the perspective of a government, any government, 10 million is not even a rounding error of a rounding error in the defense budget. The intimidation might have stopped the forming of another Wikileaks or the rise of a 2nd assange. From this perspective, it's not idiocy - it's a good investment.

Which is not to say I support this perspective - I don't. But it is important to understand motives rather than dismiss actions as idiotic.
let x = 1

const x = 1

val x = 1

var x = 2

It's unfortunate each language has a different keyword for constants and variables.
There is interest in enabling safe interface, that is, improving Rust the language so that you can provide safe interface with better performance. A good example is so-called "streaming iterator".

There is less interest in changing Rust so that currently unsafe implementation (not interface) of safe interface can be made safe, that is, verified by compiler. As grandparent stated, and I agree, as long as interface is safe I don't think it is important that implementation is verified by compiler (hence safe) or some external tool or hand proof.
If they do that, then it would just show that he was right all along. And I say that as someone who doesn't even like Assange.
It was a VW Polo Diesel and the others are gas :)
SUPERVERSE game teaser trailer published
Actually, that's a very good point - you did indeed have to submit the old and new passwords. I want to say that they checked against older passwords too, but I might be misremembering.
I believe they stopped actively guarding it a few years ago, but presumably still monitor it.
You didn't wrote about "reducing cognitive load". You wrote: "This stuff costs so much time".

So, my reply to that comes down to:

If you have so many imports that it costs you "so much time" to handle them manually, then you probably have QA issues -- like people adding tons of dependencies to your project.

But it was also meant in the way that if you code so fast, that manually adding some imports is what slows you down ("takes so much time") then probably you are not thinking about what you code enough.

Typically, even without automated imports, the time to handle imports would/should be a negligible amount compared to the time to write the actual functionality -- that's the difficult part, and that what takes one time to think, design and code right.
Check out the one designed by http://rama.works
Netflix Film Booed at Cannes Film Festival
You mean he should get a compensation?
There is a "kill list" [1] which is unbelievable on its own so I don't see this as much of a stretch.

[1] https://en.wikipedia.org/wiki/Disposition_Matrix
That strikes me as slightly unbalanced. The investigation may be debatable, but certainly not on the same level of idiocy as Assange self-imposed golden cage. And once the investigation had started, there really wasn't an option to drop it when the subject raised the stakes: there's just no concept of "oh well, if he really doesn't want to stand trial..." in any sane system of justice.
Do they really exist though? Assange travelled to the US on several occasions before the Swedish charges came up ...
Deconstructing the Database (2012)
>I think you're being a tad literal there. The last case I remember was Hassan Mustafa Osama Nasr who was kidnapped in Italy and brought to Egypt by the CIA in 2005. Italy's streets are not less intrinsically sacred than England's.

I'm being literal on purpose.

Look at the other replies to me; everyone talks about the CIA, yourself included, and ignores the fact that Italy was working hand-in-hand with the CIA:

https://en.wikipedia.org/wiki/Abu_Omar_case

That's very different, and it remains absolutely disgusting nonetheless.
Some of the TS examples also include an external library (lodash) to compare features; not sure if that's an apt comparison.
From Swedish news:

Defence laywer Per E Samuelsson identifies two reasons to why the charges were dropped:
– He had a solid explanation to what really happened that night. Which means the prosecutor can't expect a conviction in court. Secondly, we can prove that the US is after him. Proof which we didn't have when the Supreme Court tested this in 2015.
Kotlin getting love, this is nice, although in a very peculiar, syntax-comparison type of way.
I started a project to be able to conjugate as many languages as I could and I'd love to accept Japanese if anybody is up for the challenge: https://github.com/llipio/conjugator

So far, I've managed to understand enough korean, spanish, and french grammar to review merge requests. Its interesting reading stories of how HN community picked up Japanese, some of the suggestions are pretty helpful.
You're right, he is guilty of skipping bail, of which the maximum penalty is 12 months in prison.

See: http://www.cps.gov.uk/legal/a_to_c/bail/#a19
It's easier to normalize omnipresent surveillance with "free gifts".
Expecting the headline to be changed soon, original headline was:

Fraunhofer promoted MP3 as “dead”, because they get money from AAC patents
They introduced a third shift recently, but have been working around the clock since the very beginning. 5 years is way too much time for a management team to notice that working 12x6 with your body is way different than working the same amount of time behind a desk. That's what happens when Silicon Valley ethos meets the real world.

I guess nobody told the nerds that back-breaking work was not really a metaphore in the good old days.
There are however many people who find high-density living to be unappealing
You did cut off half the sentence, it concludes, " so long as it stays within the rules of the game, which is to say, engages in open and free competition without deception or fraud." But beyond that, that one sentence doesn't come close to summarizing his view which is nuanced, and more about corporate governance. If you can suffer through the bad OCR, this old NY Times Magazine article covers it.

http://www.nytimes.com/1970/09/13/archives/a-friedman-doctri...
>Step 1: People realise that Electron apps look different and do not fit the OS.

This is not an issue for most people. I like to use Spotify (the desktop app) as an example - it's a pretty good looking app, works nicely, and yet it uses an HTML-based UI.

Microsoft's own UWP also looks vastly different than native Win32-based apps.

The resource usage and slowness of Electron apps is a problem, but that is caused by using the entire browser runtime. When it comes to the capabilities of a UI framework, one of the questions I ask is "Could you build something like Spotify's UI with this? How difficult would it be?".
> We succeed when you succeed, so I don't think it's valid
> logic to have to worry about what Boost is looking to get
> out of the advice.

That's the only political advice you need, right there. Everyone is interested in your success, so stop worrying. sarcasm

It's funny to see this business that specifically targets people insecure about their understanding of complex political situations and tells them worrying that I would act against your interest is illogical.

Why get advice when negotiating salary? My employer succeeds when I succeed, so concerning myself with whether they are shorting me must be illogical, right?
Finally.

I am really looking forward to learn Japanese with Duolingo ever since I came across the site.