skysight-inc/HackerNews huggingface dataset:
Good point. No, I don't believe that's what they mean there. The OP defines the F# version user as a union of either an activeuser or a deleteduser.

The C# idiomatic way would be to use an abstract class and implement two subclasses.

The difference is that in the C# way someone could in theory (if they're your evil wizard arch nemesis for example) create a third user subclass and harm the type soundness. In practice you can guard against that as well if you really have to guard against evil wizards.
It kind of looks valid to me, yes.
> An eye for an eye has its place. If you walk into a school, start shooting and are captured alive - I think you just forfeited any claim on life or potential rehabilitation.

I think that you here implicitly assume that there is overwhelming evidence of who is the author of the crime. For example, all of these: Many survivors testimonies (be careful, they are not so reliable in practice), many videos of the massacre were the face of the attacked is clearly visible, a perfect matching of the ADN in few blood spots, fingerprint in the weapons, gunpowder marks in the hands, he/she is detained in situ while trying to kill more people, ...

Does this case has overwhelming evidence?
> Is it all the frameworks and libraries we use?

It's one part. The other is graphical assets: You have to provide them in half a dozen DPI versions (vector graphics are still hit or miss), with nowadays ridiculous densities (QHD on 5"? Oh come on). That's a lot of essentially wasted data.
thanks! This is uber:)
Minecraft and Second Life make for an interesting contrast. Minecraft is a fun game. Second Life is... what? I've seen presentations that claim that virtual worlds would be good for virtual meetings, but no commercial products based on that idea have gained traction vs video-conferencing and screen-sharing.

The simple idea of a fun game turns out to be subtle and critical to success. What is Minecraft? A game. Is it fun? Yes. OK, it has a purpose. Is there another purpose for a virtual world? Unclear.
How would you go about implementing activeUser.Delete()?
I guess you would have to replace the object and return a new DeletedUser and then make sure that your activeUser object is not referenced anywhere else?
If you're not comfortable disclosing salary history to the recruiter, an honest "I am not comfortable disclosing that information" is appropriate. The truth is well engineered.

Good luck.
Aduana: Link Analysis to Crawl the Web at Scale
For games its mostly binaries (textures, models, sounds, etc). Dunno about anything else, but 100MB is not a lot of asset space these days, and 30MB is approaching game jam sizes.
Good reasons, no, but check out what getting a .gov domain looks like:

https://www.dotgov.gov/portal/web/dotgov/registration-proces...
https://www.dotgov.gov/portal/web/dotgov/policy#10217335

It's really easy to imagine a lowly staffer with an unrealistic deadline or contractor deciding to register a .com to use for a demo and thinking they'll go through simply learning who the official contact is, getting the agency CIO / agency head to sign off, dealing with internal politics[1], etc. later and then never actually getting around to that part. At some point the argument probably became “Now we've advertised it too much to change”.

1. At large organizations both public and private I've seen this kind of fragmentation happen because person A wanted a project to exist and person B, who controlled DNS, thought it should be included in their application (horrible vendorware, the first big Cold Fusion project they personally managed which will be upgraded over their dead body, etc.).
Womens wear
which is the best place for manufacturing clothes?
If I was cynical, I would say that this is the perfect machevielan scheme: Send you poorest people to fight your dirty wars, then when they come back broken, use them as guinea pigs ...
And Thailand does love Hitler:

https://en.wikipedia.org/wiki/Nazi_imagery_in_Thailand
Yet another time it comes up. But now, after functional programming being commonplace, we at least know the answer to the "why" question.

Consider the "classical OOP" method signature:

email.send()

vs "the anemic way"

emailSender.send(message: Email)

If there is only one way to send email (SMTP), things works fine. But let's assume we have to implement another way (e.g. Mailgun API). In the "anemic" case everything is simple: extract interface from EmailSender, add new implementation, all other method signatures remain unchanged. Refactorings are simple and can be done easily in any modern IDE. However, in "classical OOP" way, we have to do something like:

email.send(sender: EmailSender)

Which changes Email::send signature, which leads to breaking API changes and extensive manual refactoring of the entire codebase.

The "anemic way" had won because it is much more reusable and maintains API stability. Incidentally, this approach have smoothed the transition to functional languages — "NounVerber" objects became modules (collections of functions), and value objects became immutable data types.
I could see people seriously agreeing with the plane argument.

I think to spin it even worse, replace it with some sort of group crime. I joined the riot, because there would be a riot with or without me. I join the drive by shooting, because there would be a drive by shooting with or without me.

I think that would have less people agreeing with it than the plane argument.
An inside look at open source at Twitter
> How would you go about implementing activeUser.Delete()? I guess you would have to replace the object.

If we're talking about a functional style then yes, `User`s would be immutable object, changing them would return a new user. Doing `activeUser.Delete()` returns a new deleted user, doing `deletedUser.Undelete()` returns a new active user. I might go as far as creating the user as a value type (struct) but that's a bit unorthodox.
Are you sure? Seen from western Europe, it always seems Americans have gigantic houses for quite reasonable prices. Outside really large cities.
https://www.google.com/get/noto/
Ugh. Such a piece of trash organization that sadly represents today's "new" media. Mostly just useless clickbait (eg, headline reads "Stock Crashing!" when it's down like 5.5%) and re-posting of other real organizations' work, like Reuters and the AP. Or some worthless anecdote crafted into an "article" written by some horrible 24 year old about why Abercrombie & Fitch is "really" struggling. BI is the remora fish of the "news" world. All with the occasional laughably wrong piece by Henry Blodget on Apple, or the stock market.

Oh well, whatever. Hell of a second act for that guy.
How Apple is trying to protect your privacy as its products get more personal
PayPal Support Home Page
Not to be a wet noodle on the cerebral art explanation or ignore the technical discussion, both of which were interesting, but as an extremely practical matter a former coworker of mine had a life goal to row a boat around the perimeter of Lake Superior (a little bigger, and to the north) and this linearized map is kinda what he saw, which is both cool and would be an interesting way to document his photos and stories and it might have been a useful navigational tool for him, if zoomed in to human scale.

And no he didn't live in his boat and do it in one trip, it took him years (decades?) of his life. He'd do city B to city C on one vacation and city C to city D on some weekend etc.

Social media photo sharing sites are kind of "done" as a startup idea (or are they?) but I could see something like this, generalized to work on cars, planes, and bikes, being kinda popular to scroll and zoom thru someones trip photos as an unusual kind of map display. Maybe for navigation apps, scroll along a long line...
I once managed to get some obfuscated Perl into an official Red Hat document (as a subtle joke): https://access.redhat.com/documentation/en-US/Red_Hat_Enterp... (search for "simple perl").
Darpa thinks it has a solution to Ebola (and all other infectious diseases)
This is not just about whether websites deserve to be able to get ad impressions.

Will their ads not chew up my CPU and battery life?

Will their ads not track my online behaviour in addition to showing me an ad? Will their ads not load other ads that will do the same?

Because otherwise, fuck you secret media, and fuck your ads.
Also involuntary commitment facilities. While there is some truly deranged people out there, psychology has a long history of being abused to remove individuals by giving them false labels of mental disorders (or otherwise vastly overstating any disorders the person does have).
Probably because growth trend. I remember when HuffPost was acquired it was a pretty hot property, so I'm sure they were growing fast. Like BuzzFeed today. comScore jan 2015 says "The Huffington Post has 214 million monthly unique visitors globally on a multiplatform basis.", so growth has been 10x (i know the metric isn't really the same, but for the sake of the argument) in 4 years since the acquisition. Not bad.
Reform Advertising
If you care about performance, why not run Firefox/Chrome locally using SSH's dynamic proxy mode? The slight hit in network latency should be much lower than the benefit of doing all of the decoding & rendering locally.
Am I missing something? Because I play this >531MB game without any issues: https://play.google.com/store/apps/details?id=com.kabam.swat...
Its dhi.io
They have mentioned about the natural language part (for backend connectivity) but for visuals to convert designs to html/css they are using image processing and neural network.
And are releasing an early beta next monday.
Google Play supports splitting APKs on density. Its a little bit more work but can cut down the binary size if you have significant assets.
Phishing?
The coupling you mention was solved long before DI became popular. The service locator pattern isn't as transparent as DI but it solves the problem of course grained service dependencies.
Experience (with this style of development) helps out here. For stuff you're completely clueless on though, it still happens. And that's when you revise your design.

Its far better to go in this direction than the other, in terms of code clarity, and it's pretty rare to have it impact performance... at all, as long as you're willing to go back and rewrite the ideal code to be a bit more practical when you notice an issue.
> And then the biggest modern challenge is to model state machines for asynchronous communications, which implies working in the presence of non-determinism. Good luck modeling that with a static type system.

I don't think async really matters at type-level. What matters is the failure-mode.

And Haskell seems to be doing this just fine, by abstracting IO into its own aspect which can either succeed or fail, and thus separates the domain-model from the failure-modes.

It's by no means impossible, and it's pretty defeatist to assume we all have to end up in some sort of dynamic non-typed nodejs-like blob as soon as you invoke Async or network operations.

Even C# handles this quite well, and fully typed all the way.
You can't download it over cellular network
Instapage: We're Retiring Our Free Version to Make Instapage Better
> Which changes Email::send signature, which leads to breaking API changes and extensive manual refactoring of the entire codebase.

Only if you decide to change the signature, there are other ways to achieve the same result.
I suspect it uses the Expansion Files [1] feature.

[1]: https://developer.android.com/google/play/expansion-files.ht...
I don't think the author makes a good case for the problem with, for example, noun-verbers, other than that they aren't very OO. If OO means putting lots and lots of state into objects, then I'm happy to be the lunatic fringe.

I like my objects as a unit of code organization and my value objects as simply that - an immutable representation of a value.
Several apps download a large amount of additional data to the phone after installation, typically large blobs like audio, video and textures. The limit on APKs only affected the part of the application that was shipped through the Play store.
Treefinder license change in October 2015
Those aren't bad analogies, but I wouldn't consider them good.

1) The public and perhaps even many scholars are split on abortion - I personally don't think there's a clear cut "correct" answer.

2) I wouldn't expect people to quit. Drugs are fun, most are relatively harmless, using them is not immoral, and you most likely won't get caught.

3) Similar to #2, and much of the issues here are a direct result of #2

Turning it up to 11 (great expression btw) to be effective should be used only when there is obvious wrongdoing, when innocent people are clearly being railroaded by people who either know the person is innocent, or made no effort to determine innocence (which, let's not forget, is the job they are being paid very handsomely to perform). I'm not sure if this particular case is a valid example example for turning it up to 11, but there are certainly plenty. I think this would be effective, and I believe there would be widespread public support with sufficient communication.
No, for the same reason that $x += = 3 is invalid.
Tour of Language Landscape (F#, Go, Rust, Idris, Clojure and Elm)
Why take a drug when you can just have a brain implant? Being serious, an implant is permanent whereas that site claims MDMA averages 3.8 years. Brain chips are so futuristic too.
Can't comment on F#, but in Haskell you'd create a special datatype and use smart constructor which only allows to create a value which conforms the requirements:

data Segment = Segment Double Double

mkSegment :: Double -> Double -> Maybe Segment
mkSegment x y
| x < y = Just (Segment x y)
| otherwise = Nothing

There are things you can check at compile time, and for that F# and other strongly typed languages are great. And if that's impossible they can still force you to do these checks at runtime.

And with such great support for custom types, you can rely on complex invariants in large parts of your application. In the example above, if you have a `Segment`, you know that x < y, even if the compiler can't prove it.
Coming soon to Baltimore! Good luck with that fellas!
A comment on the math: the article portrays it as quite verbose to say the least, which I think might indicate to some that it is "scary" or really complicated. I get the hunch that it need not be that way, if approached differently.

Affine transformations, conceptually, are quite elegant: https://en.wikipedia.org/wiki/Affine_transformation. Figuring out the values to use for a particular transformation is the key here. This is where the blog post gets really verbose in the math.

The complexity of the solution, as written, seems much higher than the inherent complexity of the problem. So my intuition suggests the mechanics of the solution (e.g. the amount of notation required, at least, if not the amount of computation) can be dramatically simplified if done a different way. I'd think that playing around with polar coordinates and various frames of reference would help find an elegant calculation.
Because the first issue can never be 100%, the second is never a 'should'. Even cases where the convicted admitted guilt have later ended with the convicted being found innocent.
24 libraries of the world so magnificent they’ll take your breath away
Frenchie puppy goes sightseeing in DC
"Almost certainly: if you’ve got value objects and noun-verbers, your design is rubbish."

If the code is readable, understandable, testable, and it does the job - who are you to say it's rubbish?
Great idea on Amazon's part; they're already set up to handle the logistics for this kind of last-mile delivery stuff.

Of course, one could argue that moves like this and pushing us towards the gig economy are a net negative for our future economy. They seem to be compensating fairly (for now?) at least.
I thought the exact same thing while loading up the page. However, I think you should change a few words in your post in an attempt to improve the tone. It reads kinda mean, but maybe that's just me, or maybe that's what's acceptable on HN these days?

I'm not trying to be "PC police" or anything, but when we write comments about people's stuff we need to have a little empathy. I think this would make HN a better, friendlier place.

Btw, I'm not trying to start a fight or argument. I just saw this as an opportunity to call something out that I've noticed on HN far too frequently.
So I imagine the question every self employed person with a car will be asking themselves right now is this: will I make more money driving for Uber or driving for Amazon?
Sounds like a perfect fit. Axel Springer publishes "Bild" in Germany which is essentially the written version of click bait/sensationalism.
Even for the Kardashians, App Store Fame Can Be Fleeting
While plenty of their articles are useless clickbait, they have earned my respect by also writing a high % of the articles that I find useful and interesting. Searched my gmail to find the last article of theirs I sent around: http://www.businessinsider.com/share-of-media-time-spent-201...
For apps that use native code, you typically ship a "fat binary" with ARMv5, ARMv7 and x86 binaries. Maybe even ARM64 and x64 for the adventurous. Also the set of stable native APIs on Android is pretty small, so you typically include lots of frameworks and libraries directly into your APK, yeah.

It seems like apps written in Java have less of an excuse -- no fat binary needed and the system APIs are much richer. But maybe people tend to use a lot of frameworks there too.

Also, graphics can take up a surprising amount of space in normal apps, not just games, if you ship variants for all the different screen sizes. On iOS, for example, you include a startup image for each screen size / orientation. That could be a dozen or so full-screen images! And screens are massive these days.

Modern "flat" UI images ought to compress much better, though...

Overall, I don't think it's just bloat, there is some justification. But I bet most apps could fairly easily be made significantly smaller.
I don't think the article as advocating pure functional programming. More of a data oriented/array programming style, which has been gaining traction among game programming. There are similarities but more differences than similarities.

I recommend you watch the Mike Acton talk he linked at the end (even if you aren't a C or C++ developer).

P.s. And yes, I agree you should measure (obviously), however that is only one half of the equation. You make assumptions about the performance issues and verify them by measuring. Measuring is very poor signal to noise, but your assumptions can be wrong. Both are needed to optimize code well.

If what you said were true, it wouldn't be possible to design for efficient cache access. And it is.
I like the idea.

Here's another that seems similar to it: an immutable language wherein you could create a mutable, write-only copy of an object. After writing all that was required, the copy could be finalized, at which point it becomes read-only (hence immutable). This is a bit like the builder pattern, but I've never seen a language with built-in support for it.

Thoughts? Is it much different than what the OP proposes?
But then the article should be titled "Functional vs Non Functional approach to solving xxx" as opposed to c# vs f#. I think the OP was saying you could do it functionally in c# albeit less elegantly.
José Valim talks about current details and future plans for Elixir 1.3 here https://groups.google.com/forum/m/#!msg/elixir-lang-talk/DHF...
Ah, yes. Someone managed to find words for my thoughts. I was left with the same impression that the author had adjusted for multiple factors, to the point that the result was not presenting the same data as he started with. Good that someone could spell it out :)
There is truth to that but when I think about it, I don't see a problem. Old ideas can be good ones.
I really don't understand what the whole product is about - I don't think you communicated that very well - but never the less congrats and good luck!
Well, I presume Amazon Flex would have lower acceptance criteria than Uber. Just because of the different nature of services. For example, if you have an old car, you may not be suitable for Uber.
Plea bargains are a very core corruption of our justice system and should be outright banned in every shape and form. Everyone who has ever accepted a plea should have all punishments immediately ended (and any penalties accrued while in prison just for a plea), but prosecutors would be allowed to bring trials up against anyone freed to sentence them to their time served (the overload in cases would force them to prioritize on only the worse offenders who probably did do it while those who were forced to take a plea on dubious grounds would be ignored and left to live their lives). And this would include compensation for all those who have been imprisoned over a plea deal.

In short, every plea deal should be considered a grave injustice that needs to be corrected.

Of course, it will never happen.
That's what I thought, but the SSL certificate shows the site actually belongs to Paypal. Domain also belongs to Paypal Inc. Seems to just be a badly designed and dodgy looking site on Paypals end.
1) Yes its extremely trivial, aside from shielding and non-homogenous and screwing up issues.

2) Yes because for example glass is stable in acid and unstable in some alkali so neutralizing the "stuff" before mixing it into glass bricks for all eternity would be Highly advisable if you want the glass brick to be unchanged for 100K years or 1M years or whatever. Aside from acid/base reactions with the glass itself there are solubility situations where a simple reaction might convert some radioactive salt that is highly soluble in water to something that's essentially waterproof. Note that the glass for vitrification is not exactly mere window glass, its some weird stuff, and adjusting its mix might help depending on what you're trying to dissolve into it.

(edited to extend answer #2, most of the waste you put into a vitreous block is not radioactive, you can't use the gear from answer #1 to tell what most of it is made out of)

On a high level this overall discussion has gone off the rails because the 100K and 1M numerological numbers come from glass vitrification and stainless steel corrosion theoretical studies; it has little to nothing to do with radioactivity; you could vitrify coal ash or industrial waste or Atari 2600 game cartridges the same way for 1M years if you felt like it. Or at least people think that storage tech will last 100Kyrs Of course radioactive waste is harmless once it finished decaying whereas arsenic is forever so its kinda pointless to try and stockpile industrial waste for 1Myrs whereas nuclear waste is the only kind of waste that actually goes away with time.

No human has ever made an industrial artifact that's lasted 1M years so things are kind of fuzzy at that kind of extrapolation.
26 popular online shopping sites in Indonesia
This is some time later, so things may have changed, but ...

Yes, I was travelling, so I was coming in on a Norwegian IP address. The cookie message was in Norwegian, which I don't speak, and covered most of the screen. That was on my phone.

Now I'm on my laptop. There's no banner, so I don't know if it would switch language.

Hope that helps.
I wonder why the range of hourly rates? Start out at 18 and move up to 25 with experience?