skysight-inc/HackerNews huggingface dataset:
Update Intel's Rapid Storage App to Fix Bug Letting Malware Evade AV
The Legal Innovators Conference Is Back for 2020 – Now over Two Days
A good example would be a case switch, that ran the first block that evaluated to true (lisp has this, many languages don't). That being said, custom control structures can abstract away some things.
Companions are in Kotlin too.
Apply and unapply - I never saw this being a problem even for some new programmers switching from Python.

Implicits are kinda harder to use, but this is an advanced feature meant for library writers, not application programmers. Despite their power I find them much nicer to use than c++ templates. And there is nothing comparable in Kotlin, and insufficient abstraction can sometimes lead to actually more complex code than in Scala.
I've converted a lot of Java backend code to Kotlin. You usually start out with the intellij converter. I tend to go class by class. That leaves you with something that nearly compiles but not quite. After addressing that, you typically end up with some needlessly nullable types, lots of mutable types, some misguided generics and a few other java-isms that are easily fixed. So, far you've not really changed the structure of the code, you're merely improving it and making it more safe to use. I usually get the process above over in a few minutes for a single class; it's not hard and I would argue the resulting code is already massively better than what you started with.

After that, there are probably a few places where idiomatic use of Kotlin library and extension functions can improve things. I tend to that as I stumble on opportunities to do so. This stuff is great for getting rid of boiler plate. E.g. Kotlin's internal DSL language features can replace a lot of ugly builder pattern code. Also having constructors with default arguments removes the need for having builders or having multiple constructors. Same for functions.

Converting streams to sequences and restructuring statements with nested returns to return the result of a complex expression helps to. Using when instead of if makes things nicer. Etc. Lots of stuff to use.

My programs are definitely shorter in Kotlin and safer (e.g. nullability). Shorter is correlated with lower maintenance cost in literature on software engineering. Some things that Java is ok with are compile errors in Kotlin. So, safer is better in my book as well.
Cars are heavily regulated. They have a visible registration plate on them, with a unique number associated to the owner. Operating one requires to be a license given after a test on both theory and operation. They need to be insured. All these are actually enforced by police.

If you are arguing for all this to be equally applied to guns (as would be fairly rational) then congratulation, you are pro-gun control.
interface ThrowingConsumer<T, E extends Exception> {
void accept(T value) throws E;
}

// ...

<E extends Exception> void withThing(ThrowingConsumer<Thing,E> callback) throws E { ... }

The problems are that (a) you need to add an extra type parameter for exceptions all over the place, (b) exception unification (sum type) doesn't work generically - you can say E1 | E2 in a catch block but it's not a real type, and (c) it composes poorly with existing libraries that expect Consumer<T> throughout.

For one level deep callbacks (for resource handling and the like) it works reasonably well though.
Agreed. I think it becomes clearer when you start to look at the human dynamics of group belief systems, and the process of changing those beliefs and consequent turmoil.

The fact is, we don’t have enough evidence yet to decide one way or the other, but there is a commonly accepted interpretation that is quite strongly cemented in the minds of practicing physicists, which works well for their purposes. When challenged by a fringe group, they will naturally defend their beliefs in ways that are both scientific and human-reactionary.

Being scientists, they will be open to changing beliefs given enough evidence, but being human, they will instinctively defend their existing beliefs, even if poorly supported, until sufficient evidence arrives.

I suppose the perfect Bayesian physicist would hold a superposition of beliefs, and use this set to decide on the most promising allocation of research resources. Of course, having incomplete information, there is always the chance of a hidden dynamic that, to uncover, requires chance investigation of an unlikely theory. :-)
Will We Run Out of Helium?
Performance is only half the battle. Companies need high SLAs, compliance, easy integration, familiarity, and a whole lot more.
Writing JavaScript with Only Six Characters
No, it never occurred to me, so I'll have to check. It'd be nice to resell a refurbished board to someone, someday... at least the connectors are all labeled, so testing it is still possible without the TV. Thanks for the tip.
Stanford's Intro to DBs course is probably the best introduction to SQL available online.

https://lagunita.stanford.edu/courses/DB/2014/SelfPaced/abou...
Yes, I am uncomfortable with androgen suppressants for the same reasons -- they have quite far-reaching effects, including some dramatic personality effects. However, doctors tend to view them as minimally invasive (which I agree with) and harmless (which I don't).
I am trying out the pen and paper version of it. Writing stuff down with pen on paper has some therapeutic effect, at least on me. It slows my thinking down so it is coherent and in an meaningful manner. But I hate that I can't see the find my own notes or thoughts easily.
Excerpts:

"In physics, the reciprocal lattice represents the Fourier transform of another lattice"

"In normal usage, the initial lattice (whose transform is represented by the reciprocal lattice) is usually a periodic spatial function in real-space and is also known as the direct lattice. While the direct lattice exists in real-space and is what one would commonly understand as a physical lattice, the reciprocal lattice exists in reciprocal space (also known as momentum space or less commonly as K-space...)"

"The reciprocal of a reciprocal lattice is the original direct lattice, since the two are Fourier transforms of each other."
Somewhat related - I made the mistake of putting effort into learning how to stereo free-view Google Cardboard / Daydream VR apps. At the time it was kind of interesting what it felt like.

Except I must have made something super-sensitive in my visual system, to the point where now it’s almost TOO easy to stereo-fuse repeated patterns — though having said that, my visual system is kind of different I think anyway. Now if I see repeated patterns I’ll start getting phantom stereo fusion if I keep my eyes looking at one spot and relaxed too long. It’s not distressing or anything, it’s just really unusual.
I have used IDEA for 4 years doing Python development. Now I am using PyCharm, where the only difference is that it doesn’t support multi-module projects.

Please specify the differences as I am seeing none.
You can't feel the arguments from the gun-control crowd are any less boring than your arguments, right? It's been the same shit for ages.

The whole debate is boring, crazy that we keep delving into it.
Would you mind listing these differences? I have used idea for 4 years and PyCharm for a year.
I always preferred using the record instead of the user input for follow up operations like that.

So far it was only a gut feeling. Now I know why I do it ;)
Get a few different translations of "Meditations". I recommend the ones by Gregory Hays, Martin Hammond and Robin Hard. The book is basically a collection of thoughts on various aspects of cultivating one's character and developing a "stoic" approach to whatever life may throw at you. It has no overarching framework/grand theory and thus you can read the individual thoughts in random order as the mood strikes you. It is quite practical and needs to be practiced in everyday life (with some commonsense changes to adapt to current time period).

You might also want to look into the works of Epictetus, Seneca and Cicero.
Yes - bear in mind the URL class has been around since 1995, when the landscape was somewhat different!

At that point, URLs resolving to the same IP were considered equal, even if the host names were different. Even now, there’s no real difference between say “http://example.xn--com-9o0a and “http://example.com:80”; it would have been reasonable to consider these equal.
This is correct. It's a proper compiler (on top of llvm) and when you use it, you can't use Java classes or libraries. Instead, Kotlin has a notion of multi platform libraries with e.g. serialization, http, and IO libraries that you use. Short term this is aimed at mobile developers looking to build libraries that compile to IOS and Android. Long term this will likely pop up in other places as well.

There's also a javascript transpiler and tools to adapt typescript definitions so you can use Kotlin for react work or node.js work as well.
Not if you’re using the nightly (EAP) IDEA, however.

I have used IDEA and PyCharm for enough time to say there’s 0 difference between the two.
By the same argument police departments don't respond in the two minutes it takes for a violent incident to take place, even more so the further outside a city center you are. So even though fires don't happen often, you still keep a fire extinguisher, the same argument is used for home defense.
I think its growing because its the only way to do Android dev if you don't want to do Java 6. For that, its still great, but for any backend programming, you should consider getting the real thing (Scala) and not its watered down copy.
Doesn't this already exist in Google Maps and/or Waze?
So we don't to worry about lab environment anymore while getting acloudguru courses
I learned to code well enough to get a job for free in the '90s and it was certainly much, much easier than it would be now.
Its the opposite. Now you are defenseless online and off.
I don't write alot of blog posts. Appreciate any feedback you might have :)
Flying already evokes an illogical visceral fear in most humans. (Listen to the screams, and white knuckled grasps, during strong turbulence.)

The 737 Max is likely dead, forever, for passenger traffic.

There's just too much for every stakeholder, but Boeing, to lose.

Most likely Boeing will need state help (like the auto company bailout) while it transitions to some new post-737-Max reality.

The 737 Max rise and fall will likely become a popular business school case study.

(I could be wrong, but I just don't see this plane ever being palatable for much of the flying public. The fear of flying is just to visceral, to simply act like none of this ever happened.)
I believe this specific problem exists in Unicode, and not just in the Julia language.
If the assailant is armed, they can still fire at you. It won't really work. If a criminal can shoot back or attack after getting shot, especially one that is high, mace isn't going to do it, just ask law enforcement. Criminals will always have access to guns despite the law.
Great article. I've seen articles about this concept before, but none of these had such a thorough explanation!
Often multiple, which makes the suggestion rather less suitable.

Take a Japanese name like 麻生太郎. He may find his name romanized (ignoring the issue of surname/given name order) as Tarō Asō (preferable), Taro Aso (usually), Taroh Asoh (occurs on passports), Tarou Asou (‘I can't figure out diacritics’-style), Taroo Asoo, or even Tarô Asô.
Possibly: low income earners lost jobs in substantial enough numbers to affect the median (that to some extent is robust to outliers).
Deadly ‘superbugs’ destroyed by molecular drills
Portland, Oregon also had a Free Zone that was eventually canceled for similar reasons.
And not just shelters. Proper shelters.

Shelters without forced religious services.
Without forced NA/AA.
Shelters that will allow families to stay together.
Shelters that don't take away walkers and oxygen tanks due to being "weapons".
Shelters that are safe, for everyone, especially if you are trans.
Ones that allow folks to actually improve their life instead of waiting hours for food and mandatory classes.
Bonus points if they provide for pets as well: I know of at least one woman that stayed with an abusive partner because of this. Her only friend in the country (!) was her dog. (He died while she was pregnant, so she got a better life, but no dog).

It is unfortunate that the shelters we do have are rarely good enough.
Its really amusing to consider Java somehow simpler than Scala. Take any Java class and rewrite it in Scala, you end up with at least 3x fewer lines of code.
My favorite review of this book is:

> That’s not writing, that’s typing.

( it was written in 2 weeks, on a typewriter, on a single roll of paper. )

(( kind of like a speed fueled nanowrimo attempt, but successful. ))
Then elect better legislators to reign them in or will at least pass laws that will disallow that sort of thing.
> 1) A sophisticated compiler might read the length of a file before loading it, so that it can allocate a buffer of the right size. Doesn't work with /dev/stdin.

gcc does this. It appears to be why /proc files don't work. gcc sees that stat calls it a 'regular file' and 0 bytes long, and actually performs a read() syscall with a length of 0.

> 3) Furthermore, it might check whether the file is a regular file. If not, it is almost certainly not what the programmer had in mind.

gcc probably does this. (It would explain why /dev/stdin works)
It's also why Amazon/Apple/Google/Roku/etc. basically gives away their beachhead-building boxes that are launching-points for their content platforms and integrations as cheaply as inkjet printers or razor handles. It's "razor blade" economics of a near-zero marginal unit-cost service bought on a subscription-basis, and analytics resold.
Alternatively it's part of the human condition.

I can imagine someone complaining about the phases of the moon and how they are hacking up their month in 10,000BC.

>Why do I need there wretched months to know when it will be cold and when hot? The snow on the ground is all the time keeping I need.
> On the Road is a terrible book about terrible people. Jack Kerouac and his terrible friends drive across the US about seven zillion times for no particular reason, getting in car accidents and stealing stuff and screwing women whom they promise to marry and then don’t.

> But this is supposed to be okay, because they are visionaries. Their vision is to use the words “holy”, “ecstatic”, and “angelic” at least three times to describe every object between Toledo and Bakersfield. They don’t pass a barn, they pass a holy vision of a barn, a barn such as there must have been when the world was young, a barn whose angelic red and beatific white send them into mad ecstasies. They don’t almost hit a cow, they almost hit a holy primordial cow, the cow of all the earth, the cow whose dreamlike ecstatic mooing brings them to the brink of a rebirth such as no one has ever known.

https://slatestarcodex.com/2014/12/02/book-review-on-the-roa...
>There is no news feed. Rather than showing you a massive inbox of new posts to sort through, you see a list of recently active individuals. No one can noisily take over this page, since every follow has a summary that takes up a mere two lines.

Pretty much what Telegram does.
Yet people are finding their ways to abuse this approach and "noisily take over" your attention.
How does one block the traffic?
My wife’s family is from Puerto Rico, but we live in Spain. When the hurricane hit and the comms where knocked out, we where not able to talk with them for weeks. One of the things I told my wife was to remember when we where young, and it was normal to not get an update on everyone’s life on a daily basis. It was a bit of a wake up call to me of how used we are to instant comms.
How to Prepare a Game for Localization
Excuse me if I don't believe you.

The Win 7 VM we (sqlitebrowser.org) use for our Windows nightly builds stopped receiving Windows Updates a few months ago.

Microsoft seems to have decided to not honour the (legit) serial from MSDN. With no warning or explanation.
The screams during turbulence are one of my highlights when flying. Doesn't happen very often these days unfortunately... 20 years ago flying used to be like going on a theme park ride.
I'm in Madison now. Nobody is actually in charge, but all the CDs are still at the storage facility for now. It's truly an impressive sight.

The person answering the CDreturns2u email address has collected some money from customers and is paying 3 of the last employees to slowly ship media out. He's overloaded with requests and is attempting to answer each one in order, but has several hundred still in the queue. Even sending all requested media back can't solve the whole situation here though. There's just too many disks and not enough time.

I met with one of the creditors and the landlord, and have a meeting scheduled with the other major creditor. Nobody wants to see the CDs thrown away, but the landlord wants to be paid. I've proposed a plan to move all the media to my facility where I could store it as long as needed and would handle all the returns. I'd also work to restore digital access for media still in storage.

There is still hope. Maybe even the start of something better? I've been procrastinating on the launch of Crossies.com for far too long, but it looks like fate is forcing my hand.
But you will never get customers without drivers and you will never get drivers without customers.

Plenty of Uber/Lyft competitors have tried and failed. Heck, a few different companies tried here in Austin once we grew a spine and banned Uber/Lyft, only to die as soon as they came back to town.
Instead of replying with a bunch of counter arguments to some random person on HN, why don't you make a proposal?

What is your idea? How should guns be regulated in America.

I'm fucking tired of this same "we need to do something" argument all the time, with nobody ever actually saying anything at all.

Like no shit, something should be done.

You got a idea? What is it?
Naively, superconductivity could serve as a partially closed system for experiments in this theory.
Well there are still a lot of 737 Max around, I don't think they will all be written off? Maybe if passengers continue to avoid the plane.
But this is also not the first time in history something like this happened, usually people forgot after some time. Or is it the broader media coverage this time around?
They did not win based on their "higher standard of service", but based on their price, which was only possible due to their non-compliance with regulatory requirements.
Tim Palmer (the other author of the paper) has a talk[1] on youtube titled "What Physics Needs is Not So Much a Quantum Theory of Gravity As a Gravitational Theory of the Quantum" in which he discusses Superdeterminism.

[1] https://www.youtube.com/watch?v=GqeTTAFjDYY
http://internalserver/resource

http://internalserver.initech.com/resource
And more do not. I do not want every rando who scores a backpage delivery job to hve access to my building.
Wait, is MWI compatible with superdeterminism? That is, the sequence above seems to show that MWI is an effective way to calculate, but does not actually rule out superdeterminism underneath it — just like ordinary quantum mechanics is an effective way to calculate in certain domains of applicability but cannot effectively claim to be the “underlying reality”.
I think it's great they are helping to educate about safer ways to engage with swimming sports and driving.

They could do the same with guns.. but I guess we instead rely on the NRA, NSSF, and a few others.. some hunter's education classes that some places offer and the very few schools that teach these things.

I do not see the CDC recommending less pools, or less cars, unlike their 'conclusion that less guns would mean less kid problems' - so maybe they are way ahead of themselves.

I am all for more education the better, and as it would not affect me personally - ban swimming pools, get a special license to have more than 10 gallons of water, and if someone breaks one of the top 4 bullet points from the CDC on safe swimming, then make them a felon and take away other rights.

Won't bother me, and it will make the world a safer place for many kids.

/not-serious, don't take it too seriously, just sayin' for thoughts sake
I think photon self-interaction might be thought of as a confirmation of photon's existence. Particle ontology is a tough question, but I don't think there is a reason to exclude photon from the list without excluding all other particles.
> For what it's worth, Google (or at least parts of Google) agrees that the closed-source drivers are a problem for extended security lifecycle, and they're working...

I thought you were going to say that they're working to open source the drivers.
> Is there an equivalent like that now for game development?

dosbox is your equivalent.
Yes, I know what dosbox is, thank you. That's ... why I mentioned it ...
i think you mis-interpret 'surplus value' when you refer to 'more money' from the corporate employer. When I say surplus value, i really mean equity. Equity in the asset you create when doing work. With the exception of equity payments like shares (which, a lot of tech companies do), most workers do not receive any equity for the work that generates equity value.

By making sure equity is generating returns for you, that is how one prevents oneself from being automated out of a job - a job's value is an equity that is fully captured by the employer, esp. if it's a long term asset like code. You only capture this equity if you work for yourself. It is risky - failure means certain death (or realistically, just go back to being a worker, and you lose your chance to get out of the rat race).

May be a paradigm shift in society can occur to change this situation, but as i can see it, the only way one can be sure of having a retirement is to ensure one has equity that can generate the funds needed. And the only way to do that is to either work for an employer who will give that equity to you (which a lot of tech companies do), or work for yourself.
Did Brexaustion kill Corbyn's media strategy?
The same is true for taxi services, fast food, and cashiers...

We're moving to a point where all low-value jobs will be replaced by either self-service or automation.

The question is what happens to the people who filled those jobs?

I can recall working in retail as a HS student and observing some of the full time staff and wondering what the heck these people would do without their job as cashier, now 25 years later that same store has replaced most cashiers with self checkout. What happened to those people? What job do they have today?
Also, UTF-16 is not fixed width in modern usage. As soon as someone uses an emoji, boom!, surrogate pairs. So unless UTF-32 is used at a glorious four bytes per character, you won't get fixed width.

> For me the really troubling trends are conventions like Rust Utf8Error,[…]

Interesting. Isn't that only returned when the input bytes contain a non-UTF-8 byte sequence? How is Rust's approach different from other languages?
I wouldn't generalize over all books. However, I am pretty sure getting a degree in literature is mostly about signalling status.
Did you read it in reverse?

Reducing the salary is cheaper for the company. Or more accurately employees and contractors cost them the same, it's just do they pay it as salary or as benefits?
it depends on your threat model
Well, it's definitely not an upgrade. There's no way to maintain privacy with Win10 by simply turning off telemetry once and calling it a day.

Sleazy bastards.
No, it's called "history". At least that's what the poster means I think.