skysight-inc/HackerNews huggingface dataset:
Kotlin has compile-time null-safety. The ? denotes a type than can be null.

fun myFunction(x: Number?) {
if (x == null) return;
print(x + 1);
}

if you don't check for null first the compiler warns.

You can also do:

x?.let {notNullX -> print(notNullX + 1)}

or

print((x ?: 4) + 1)

https://kotlinlang.org/docs/reference/null-safety.html

It really is an awesome language. Especially the delegated properties are wonderful. I use them to fill javascript-state for redux/react-native.
July 30 Is National Whistleblower Appreciation Day
It's not that hard to tell. Fresh olive oil is green. Not piss yellow.
> unlike anything else installed on an average person's PC

MS Office, Open Office both come with an embedded IDE.
>Polish people
Well, that's just lovely. Because it is THAT hard to use google translator and write down "METAL THINGS IN GROUND BAD. CAN GO BOOM BOOM. NO TOUCHY"
Reverse Engineering a WiFi SmartPlug: Lax encryption and hidden debug protocols
Saxon-JS Third-Party Components: Big.js, URI.js
But if you have internet access then you can get almost any dev tool and documentation, but if you don't have access then you probably don't have Chrome or Firefox, and even if you have the browser, it has no offline documentation.
The 80s was different because internet access wasn't so widespread.
Why does mailing list archival software not contain basic css? Long lines make it hard to read the text.

You don't even need much css:
http://bettermotherfuckingwebsite.com
Probably not; google.com will still reply on HTTP, it's just that if you have a browser that visits the HTTPS page, it'll record a rule to never visit the HTTP version. I doubt the code doing captive portal detection supports HSTS at all, so most likely it'll still work just fine.
ApacheDirectoryS 2.0.0-M23 Released – LDAP, Kerberos 5
I've had a lot of difficulty talking to people here about the climate change - specifically people from business communities.

There seems to be a prevailing attitude of "We are now in a phase of development as an economy. First world countries had an opportunity to grow without regulating pollution. Regulating us will inhibit our ability to catch up".

For some reason the literal end of the world isn't a strong enough argument for them. When I mention it, I am frequently told that it doesn't matter because no matter what is done, the outcome in terms of climate change is going to be the same at this stage.
The article you linked says that whole clusters or whole superclusters could be made of antimatter. The problem is just how to fit them to current state of big bang model. I'd say that annihilation is sufficient mechanism to create sufficient separation between matter and antimatter. It produces energy that could keep superclusters apart and if all that happened before the microwave background we really couldn't tell.
Apache Traffic Server 6.2.0 LTS
Kotlin is a JVM clone of swift.
If it makes you feel any better, I don't think that paper refutes your claim through any general law. It just enumerates a bunch of side effects of current virtualization approaches, all of which are focused on performance/isolation. It's not inconceivable that someone could develop virtualization software that offers a significantly slower clock speed processor to the VM to give it plenty of time to do things in the luxurious gaps without giving away timing information.
What everyone is telling you is that your experience is not the "average case"...
I tried getting my personal blog added, it’s just impossible.

Why? https://hstspreload.appspot.com/ didn't work?
I understand that ISVs pick Mac because that's where most of the paying customers are but the OSX monoculture oozing from Bay Area today is even more tiresome than the Wintel monoculture of yesteryear.

Ask authors of Macaw what good it did them or did Web flow actually eat their lunch.

As far as I am concerned if a dev tool isn't three platforms crossplatform it didn't need to exist at all. Don't be surprised if it's another "yeah I remember them" niche thing in a couple of years. Existence of Postman and Insomnia is already a burden for this product, being OSX only will likely limit it's eeach to Starbucks dwelling hipsters from SoCa.
You could call your js function with a string, and rather than a compile time error you'd get broken behaviour at runtime.
To be fair, Canada plays hardball with foreign medical IP. The "evil tax" may be passed on to foreigners instead.

The US could be unique in that compulsory licensing laws and aggressive patent invalidation don't work--there aren't many desirable foreign patents to invalidate or inventions to compel licensure.
Israel has been recycling most of its wastewater since the 60's, today it reclaims over 86% of its wastewater this is a huge margin over the next closest contender which is spain at 17%.
The water in the toilet is drinkable, that doesn't mean it's wasted there is no need to overcomplicate your water management systems if you can reclaim most of the water back and reuse it, including as drinking water.
Countries with "dual feed" water systems don't do it for efficiency or water preservation, they do it because the main feed water quality is below drinking levels, so larger municipalities can supplement the main water system by providing a "drinking" tap into homes, in some places the drinking tap is communal for the building, block, or even the entire village while the rest of the water should not be drank without boiling or treatment if at all.
The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6
Show HN: Learn Japanese through classic short stories
DRAM Errors in the Wild: A Large-Scale Field Study [pdf]
I think cargo does too much. For example it has a bunch of meta information which could be extracted from the source code(i.e package documentation), the imports must be manually maintained in a config file(the Go way is to extract them from the source code automatically and snapshot the version). Shotly said I feel cargo is bloated, verbose and it wouldn't fit well with the Go philosophy(minimalist, convention over configuration). Why do you need both cargo.toml and cargo.lock? I also doubt Cargo would fix issues not fixed by the existing vendoring tools(e.g libraries that expose common types of different versions)
People frequently discuss exponential population growth, but rarely mention the terrestial confines of such thinking.

Then they say, oh but technology will continue to advance, and yet never mention pioneering space travel.

I feel like economists that extrapolate numbers into the future, but fail to consider space travel are like holy men, refusing to consider that the earth is round, and not the center of a flat universe. Doomsayers, warning that we'll sail over the edge, if we venture to far out to sea.
Certified Digital Marketing (SEO) Coaching in Chandigarh and Mohali
Write down each of your interview in a file. Divide them by parts of interview, questions asked and answers you gave. It helps you to visualise where it could have gone better.

I gave 24 interviews after graduating - in every single of them I passed coding or tests but failed in face to face interview. I just gave answer to question in interview and never expanded on it and was never confident enough. Writing about interview then helped. I was in a shell during interviews and only writing about it helped me recognise in first place and develop a mindset to overcome it.
Yeah, it's not like he was critically acclaimed in Ed Wood in 94.

Or turned in an iconic - movie stealing - comic performance in Kingpin in 96

Or won a Golden Globe in 98 for Rushmore.

Clearly you're right and nothing major happened in his career for 10 years.

You literally know nothing about this topic and keep digging yourself into a hole. It's kind of pathetic.
Because the earth is a sphere and microwaves travel in a straight line.

At my height, standing on the beach the horizon I see is only 5km away.
I realize that I made a factual error in my post and I thank you for pointing that out, but to me your post reads as very condescending, to the point of being rude. It reminds me very clearly why I don't often post comments here.
Will you publish your reverse engineering research as open source?
Regardless of spec, none of the major browsers accept HSTS policies from sites with self-signed certs.
I've written a lot of Angular code with Typescript and although you're right in saying functional code is preferrable I've found that a little bit OO when used correctly makes your code DRYer.

For example, if you have a lot of paginated lists you can write an abstract class that handles all the "get the results", "put them on a list", "display pagination", "on click display the next/previous page" trivia and then inherit from that to add the UI/presentation and any specific logic. It's absolutely possible in plain javascript but I shudder at the thought of writing something like that and even worse, refactor it. Typescript with OO and generics simplifies the task considerably.

As in everything in life: "dogma is bad", "παν μέτρον άριστον", "use the best tool for the job" etc. Words to live by.
> ... what are r and v here?

The program works by preloading a stack and then applying each permitted operator to the top two recursively until only a single value remains. The operators are, obviously, addition, subtraction, multiplication and division, but we also have to allow reverse subtraction and reverse division to recognise that naive subtraction and division are non-commutative.

> Can your code identify correct
> solutions when more numbers are
> added to the array

Yes - easiest for you just to try it.

> What modifications need to be
> made to allow it to handle other
> operators, such as exponents ...

Just an extra line for each operator, two if the operator is non-commutative.

> ... exponents (Right-To-Left
> associative unlike the LTR
> associative operators in the
> first example)

The issue of associativity is already covered as a fundamental part of algorithm.

> ... suspect that the cleanest
> solution would utilize the
> shunting-yard algorithm

This effectively is a cut-down version of that. Interleaving the operators into the stack of values has many problems, always having to have enough values above each operator, etc. Instead this externalises the operators from the stack, which is what makes it work.
Given that the laws are gender symmetric that poses the question why men enter business relations with rent seekers.
You forgot to mention these modern languages with a good dep system.
Extension APIs mostly are a minus. It's mostly used as an excuse for not shipping features.
It is interesting for me to follow how the community mindset develops around TypeScript/JS/... over the years. Many in the JavaScript community frowned upon GWT, Closure Compiler, Dart and other typed compile-to-JS tools, most of which predate TypeScript, and provided state-of-the-art tooling at the time. "Types are overrated, everything that is non-JS must go away" was a common mentality.

Now some of these people started to see some value in tool-based refactoring, and suddenly realize that types are not always bad. TypeScript undeniably improves the situation over JavaScript, with the caveat that it won't stop you shooting in the foot with the bad parts of JS. So now, types are good, nevertheless JS must stay.

I wonder how many years it will take for people to lobby for a clear break of JS backwards-compatibility, to use something that is not ad-hoc, has good tooling and a great base API, etc. Something where sorting number doesn't need additional extra care.

These usually start to matter when the team size is beyond 10 person working on the same part of the codebase. It will be interesting to see how this spans over the years. I bet the earliest "clear break of bad JS" will happen around 2019, with mostly linters and data flow analysis improving but hitting the eventual limits.

Uninteresting times, in a certain sense. I'm glad we have other tools to compete with.
Classic case of proving the null hypothesis. The p-value hit the threshold for DUIs and deaths, but not for alcohol-involved accidents. If you're wondering why, here's a hint: the mean rate for alcohol-involved accidents was less than 1 in 100,000.

The headline, then: "Uber hasn't had an effect".
That isn't the system we had. The drinking water line supplied the "sweet water" taps and and dishwashers. Interestingly, the hot water tanks also got 'sweet' water as dishwashers often use hot water. The non-drinking water in homes was recycled water and was more heavily chlorinated, making it safe for bathing but not great for drinking. It wouldn't make you sick, but drinking a large amount could be uncomfortable. Then we had a third standard for irrigation of lawns and such. That water wasn't as heavily chlorinated.
Because the noun affect means something entirely different.
Mmmmh, as long as it's not clear what the violations were, it's useless to discuss whether or not Google was in their right to shut down the account.

This is just a reminder that public publishing follows rules, and if you want to bend the rules one way or another, this is what may happen to your account...
5 Summer Killer Fruits
Exponential growth is never the answer. Over 20+ years at 1:5 teacher ratio so one could teach well over 20+ PHD's and 1 gets to replace them.

Actual ratio seems to be around ~1:50 based on openings.
That's not an explanation. Effect and affect are just different things with different meanings both as nouns and verbs.
Inside the function you also have to continue using x as a number, like you wouldnt be able to accidentally pass it into a function accepting only string as argument etc.
I think at this point we just have to wait for a good support for webassembly on all main browsers and then everyone can have its own ""isomorphic"" stack and we can finally stop these wars about how to modify javascript and what features to introduce because we all will finally have other alternatives to choose.
Some discussion here [0] from when the story appeared on Fusion [1] a couple weeks ago.

[0]: https://news.ycombinator.com/item?id=12099757

[1]: http://fusion.net/story/325231/google-deletes-dennis-cooper-...
I'm hoping WebAssembly opens up lots of other languages to browser development. Any language could compile to WebAssembly: rust, haskell, go, swift, etc. I think it will really open up the browser.
Message passing unfortunately means everything is copied rather than pointed at. Which, in the case of a smartphone is always the beginning of performance or memory related problems.

I think rust approach of having strong guarantees over memory ownage, and thus being able to share memory in a safe way, is a better direction for swift.
The paper is from 2009.
> A language that requires transpiling by definition can't be more accessible than the language it transpiles into.

It's a funny definition of "accessible" that counts C as less accessible than assembler.
A clone of something that appeared 3 years later? (2011 vs 2014 according to wikipedia)
There is a good episode of the podcast 'Econtalk' on this subject. My take-away from listening to that is that supply and demand and setting the price according to the supply would solve most of the world's water problem. Except that's not the way it's done.

They mentioned so many silly subsidies and flat out craziness going on in the water markets that it made templated C++ code seem sane in comparison :/
As ing33k mentioned, Paw isn't an automated testing tool (at least not yet), but rather an app where you can experiment with your or others APIs to check if things are working, and have a visual feedback/confirmation of what you're doing.

But that's actually a great question. We are asking ourselves the same here at Paw: should our app offer a testing/assertions feature?

Our own server backend is in Django using the Django REST Framework (it's an amazing tool btw) and clearly unit testing done inside the web framework is the right thing to do. Good frameworks have mocking libraries, and unit tests allows you to exercice all parts of the code (not only API facing). So why testing in an app like Paw? And should we encourage "bad practices" with a new feature that encourages users to have request/response assertions in our app instead proper unit tests?

First, everyone isn't writing tests ;) And sometimes maybe for good reasons (quickly putting together an MVP…). Assertions can be a quick alternative before writing proper unit tests. But mostly, we were thinking about assertions in Paw as a great way to do quick integration testing. For example, we've released Paw 3 recently, pushed server updates on an hourly basis, and we had no way to verify after a deploy that all the website's pages were up and that API endpoints were behaving as expected. Sure, the CI was saying that tests are passing, but who knows if someone has changed settings on AWS or on 3rd party tools (Stripe, Algolia…)? We would have loved to have assertions ourselves…
Show HN: Marvis+ – Gorgeous and Smart Replacement for iOS Music App
For reproducible builds (or at least 'to get the same versions again') you should be using 'npm shrinkwrap'. (Of course there's probably more you should do to get true reproducible builds, but that goes for any package manager).

The range operators are important, else you'd never be able to resolve 2 packages that want a similar versioned sup-dependency e.g. jquery 1.12 because without range operators those 2 packages would have declared minor version differences (1.12.1 and 1.12.3) depending on when they were published. This would mean you'd always end up with duplicated dependencies.

I'd argue 'node_modules is big' is not a fault of npm. If the package or app you're trying to install generates a large node_modules dir, that is something you should take up with the package maintainer. See buble vs babel - buble has a way smaller dep tree.

npm is only slow in the ways that all other package managers are, when installing large dependency trees or native dependencies (like libSass) and it is way faster than say pip and rubygems in this regard. When I 'pip install -r requirements.txt' at work, I literally go and make a coffee.

Also never experienced any instability, though I may have been lucky. Certainly it has been very stable for the last year or so when I've been working with a lot. Could you elaborate on why it is crap on Windows? I did think all major issues (e.g. deep nesting problem) were now fixed ...
I'm a big fan of Uber, but the secret to dealing with cabbies is to be firm and obstinate. Like any street business, they're going to take advantage when they smell weakness and fold when they sense strength. Credit card machine doesn't work? Okay, here's the address where you can send me the bill. Don't try to stop me from leaving the cab, it'll be a big mistake involving police and you getting arrested for false imprisonment. Another thing I've done to much success is negotiate the fare to the destination up front, which prevents problems at the other end. Always remember that possession is nine-tenths of the law and that as long as you're in possession of the money, you're in the position of power. And when you act as such, you'll get more respect from the cabbies to begin with.
>> if you want to bend the rules one way or another, this is what may happen to your account...

We don't know if the blogger did anything wrong or not. The blog is gone and we don't have a good statement from Google as to why. It may have been removed in error. It may have been a request of some sort by a third party that google is covering. We assume that Google thinks a rule was violated, but we don't know whether it was a proper decision by Google people, or a 5-second decision by a subcontracted moderator service. Or it may have been a completely automated decision not involving any human beings. All we can do is speculate. But that reliance on speculation, the lack of proper transparency, is a perfectly valid criticism of Google.
Mr. Robot ‘Plugs’ UTorrent and Pirate Release Groups
AFAIK the official line has always been that it's a "simpler Scala". Not to mention that it's several years older...
Pedantic, arrogant, and self-contradictory combined with poor reading comprehension and even worse social skills is the stereotype of the Haskell fanatic, and you're living up to it perfectly.

No examples, no evidence, just bridge-burning and nitpicking. Whenever you ask people what Haskell can do that other languages can't, their answer usually reveals that they simply don't know many other languages very well. For instance, you're very confident about English being better than Esperanto, but you don't speak Esperanto, you've never studied it, and you're just repeating what you were told second-hand and combining it with a made up heuristic of value. All of that lying and shoddy thinking, just to undermine an analogy that could've been any language. Russian and Arawak are far more expressive than English, but you don't speak Russian, you speak English, because it's the popular choice. Anything else you say is post-hoc justification, since you don't know much about the alternatives. you're just rationalizing your contingent decision.

Node and npm are superior to Haskell as an ecosystem for the backend, you can't run Haskell in browsers at all, and C++ is way more powerful for offline applications. So what is it you do again, other than have inadequate toolchains presided over by socially inept individuals?

Name something vanilla React takes from Haskell that isn't in Lisp, Clojure, Elm, etc. I don't think you'll be able to do it, because A) you don't know much about React and B) Haskell just isn't that special. There's nothing wrong with that since good programmers care about concepts, not syntax, but you seem to be really threatened by the idea that Haskell at this point is little more than an oddity, like learning brainfuck or assembly.

Functional programming is finally showing what it can accomplish, and the only people unhappy about that are people in the FP community who neither understand nor care what's happening beyond their fetid little pond.
They're actually quite different - a good chunk of my current project is in Kotlin, and all of my last project was in Swift.

Things Swift has that Kotlin doesn't: associated types, file-based access control (changing in Swift 3.0), pervasive use of keyword arguments, trailing closures, full pattern matching (Kotlin can only destructure component1...N sequences), reference counting.

Things Kotlin has that Swift doesn't: smart casts, declaring properties directly in the constructor, declaring constructors directly in the class statement, auto-delegation, data classes, singleton objects, implicit parameterizable 'this' (handy for builders & DSLs), garbage collection.

Things they both have: null chaining & defaulting, class extensions, somewhat clumsy first-class method syntax, concise lambda syntax, lambda anaphora ('it' in Kotlin, $0 and $1 in Swift), concise range operators, property descriptors, operator overloading.

Kotlin generally has the feel of a much more pragmatic, industrial language. It's Java without the warts, where the designers took note of the common Java patterns they wrote and provided a lot of syntactic sugar to dramatically improve brevity. Swift feels more academic; its type system is more modern and less ad-hoc, it has polished implementations of many features that academic languages have been trying to get right for years. Both are heavily influenced by their ecosystems; Swift feels like a better Objective-C, and Kotlin feels like a better Java.