skysight-inc/HackerNews huggingface dataset:
> C++ isn't 'memory safe', but what it does is give you the ability to write memory and resource safe types, and then lean on the type system as a means of ensuring memory safety.

No, it doesn't, because it isn't memory safe.

> All this is why C++ is better than C. In C++ you can have memory safety, thread safety, type safety, and a simple API.

No, you can't. C++ is not memory safe. Use after free happens in C++ all the time, because smart pointers do not protect you from dangling pointers and null pointer dereference, among other things.

Instead of copy and pasting examples to show this, I'll just link to other posts of mine from the past two months: https://news.ycombinator.com/item?id=11111987, https://news.ycombinator.com/item?id=11054630, https://news.ycombinator.com/item?id=11055020, https://news.ycombinator.com/item?id=10819501.
Amazon operates a free CA (Amazon Certificate Manager) for use with ELB and CloudFront.
Nice to see LibriVox get some love on HN. I'm currently listening to The Book of Ser Marco Polo, the Venetian, concerning the kingdoms and marvels of the East: https://librivox.org/the-book-of--marco-polo-1-by-rustichell...
>The fact that nobody writes about these issues is the reason why some companies take their non-tech employees for granted.

Ah thats why. Here I was thinking it had something to do with good ol supply and demand.
Yea so true.. that chip is very popular in many lipo packs.. It would be interesting to see how many gazillions of those that are sold..
Secure image uploading in PHP
No. We just don't care for such a crap platform.
Depends on the time of day!
Morning - classical or ambient to not fatigue the brain while tackling tougher problems:
Baroque style classical, ambient: Mysteries of the Deep, FAX (Pete Namlook), Boards of Canada, film score (Tron, Hans Zimmer etc), Fez game score by Disasterpeace

Afternoon - techno, to get the adrenaline flowing again:
- any live mixes from Adam Beyer, Berghain residents, Nicole Moudaber, Nina Kraviz, etc etc

Night - Trance - really to keep the motivation going, any older A State of Trance episodes (pre 500) will do to add some melody to the grind

That's it, every day :)
Well, that's the overhead of selling closed-source devices.

If you think about it, consulting vendors is probably a better use of taxpayer money then RE-ing every stupid crypto system on the market.

They contacted Apple, did their homework and came up with specific and generally sane demands. They even went as far as suggesting to perform the hacking at Apple site to ensure that insecure firmware doesn't leak outside.

BTW, this last part looks very much like a response to concerns voiced by Apple, which means that the official statements from both sides are just a tip of the iceberg.
Jose Mourinho akan hadir untuk
“Don't Feed the Hamster the Whole Stalk” – A Parable about API Design
I'm not sure it really is as pandering as you make it out to be. In some places I wasn't sure what the author thought of TED at all. For example, this sentence is particularly pointed: "Where an audience that gave a standing ovation to Ed Snowden a couple of years ago happily wears tracking devices on their badges that allows fellow attendees to know where in the facility they are within a few meters."
Current rate limiting wouldn't really make it possible, unfortunately.
> lists have largely withered on the wine.

Should be "vine". "wine" would make it, I don't know, some sort of malapropism (looking for the right word here), or grammatically incorrect pun? Entertaining, nonetheless :)

Update: Looked up malapropism, seems my use of it is correct:

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

or at least close (which would be another malapropism :)
If that's from "Let My People Go Surfing"[0], it's a light-weight (easy reading) book with what seem to be some pretty profound simple business observations and accounts of how Patagonia made decisions. I certainly enjoyed the book, but I think I don't have a deep enough business acumen to say whether or not the book is realistic for more than just Patagonia.

[0] http://www.patagonia.com/ca/product/let-my-people-go-surfing...

Edit: linked
> it's still the best dynamically typed language

One of the best, for sure. There are Racket and Clojure in the Lisp family, both comparable to Common Lisp in terms of features. Outside of that, there is Elixir, which in my mind gave Erlang enough additional features to also finally be at that level. Pharo is another language - a modern Smalltalk-inspired, image based GUI environment - which comes close in terms of expressivity, but is nowhere near CL implementations in terms of stability. There's also REBOL and recently also Red. They all differ, of course, but what they have in common is the amount of features such languages offer and the unique kind of synergy you get from each of them. It is still unmatched by currently mainstream dynamically typed languages.

> you might appreciate my functional collections library for CL

Thanks, looks interesting. I'll take a look later. I think one of the most irritating things when I started learning Common Lisp was weird naming of common functions. In Emacs Lisp-land we got dash.el and s.el which made the situation (mostly) better; similar thing was done by Underscore.js. I think something like this could be helpful in CL - maybe your library could fill that role for me.
Are the viewers paying the operator? If not, I'm not sure you can really argue they're legally responsible for "encouraging" the operator. The operator could say, "I'm going to make another child abuse video for every million people that vote for Hillary Clinton", and no one would blame voters for "encouraging" him. Even if the operator has ads on the site, I don't think it's reasonable to call the viewers culpable--their financial contribution is unintentional, miniscule, and possibly negative if they used an ad-blocker.

For all we know, the "operator" was just showing a dump of things he found on an abandoned site five years ago, and was not involved at all in the production, and had no intention to be. Or perhaps he applied the principles of the MPAA and pirated for free as much material as he could, and put it on his website for free so as to try to get viewers to stop paying the producers and supporting their crimes.

(Which, by the way, is a strategy I would recommend law-enforcement pursue if they take their own arguments seriously. Spend federal money on servers hosting free, searchable torrents and direct downloads of CP; perhaps restrict it to material produced at least 20 years ago, and strip out or change any identifying metadata, so as to avoid any semblance of supporting or encouraging the producers of the materials.)

If you want to make the case that the viewers are liable for supporting the production of child abuse materials, that's a specific claim that you would have to prove in any individual case. By no means is it to be assumed.

What you mentioned was "encouraging its distribution", not "its production". Still, I can't imagine why the former would be rationally considered criminal except insofar as it contributes to the latter (notwithstanding rhetoric about "re-victimizing our children every time it is passed from one person to another"--which is completely absurd unless the viewers encounter the victims in real life and mistreat them in a way they wouldn't have if they didn't see the video, which seems outlandish--I doubt if it's even possible to track down the real-life identities of the victims most of the time).
Grow carrots in the yard, and you can eat those carrots to survive.

You can't eat fixed pipes.
Twitter is mainly for consumption, not creation, for the average joe. This is one of the many reasons Twitter should not be compared to Facebook whatsoever.
For those who didn't know (like me) - GHCi is Haskell's interactive environment[0]

[0] https://downloads.haskell.org/~ghc/latest/docs/html/users_gu...
If by at most once, you mean all the subscribers get the message once and once only, yes, that's what they wanted.

I tried this in java anyway and didn't get very far. Defined the classes for publisher, consumer and queue. Then was grilled about the reliability and all the other requirements.
If you look at this forum discussion...

https://forum.librivox.org/viewtopic.php?p=743803#p743803

You can see that an audio recording of a book published in 1921 was pulled due to legal letters.

Of course, in the US, works from 1921 are all supposed to be in the public domain. But already events like this occur for places other than LibriVox - multi-national companies with large legal departments and law firms on retainers not only assert rights for works from 1923 on, but for works before that as well. Most small companies and organizations can't deal with the time and expense required from these spurious legal threats and are forced to give in.

Once TPP passes, things will just get much worse.
yes yes yes. My brain do that more often than i like. Sometimes i end up typing whole different words than i formulated, simply because the finger movements are so similar (or i type the incorrect word more often).
This is one of the more interesting things to come out of the overlap of technology and artworks to my mind. If we continue to have arrangements like that of the Elgin Marbles in London some kind of compromise where a good quality facsimile like this can be created for relatively cheap and displayed to the public then at least we get to have a freer access to our shared heritage.

It's a crying shame they had to resort to doing it undercover though. What exactly has the museum really got to lose?
https://gist.github.com/feld/d5ee82df10b9fc43abcc
What would this be called if it used Quora instead of Twitter?
That "white dudes" tic again? It's really weird how you can tell so much about a person who uses that awkward phrase. You hear it, and you know there's an enormous baggage train of smug speech policing and poorly concealed prejudice coming in behind it.
Yeah downvote me fauckeradf'sjpoisgf
Today it might be best for consumption. But when it started and had it's character limited by the size of an SMS, it was very much meant (and used!) for creation and communication.
I fell in love with Haskell for quite some time. In fact, I still really enjoy the language. But after a while I noticed that I was not in love with Haskell itself but some of the things it brings to the table which are very important. Sure there may be new languages in 50 years in the mainstream, but let's hope we learn from our past successes and failures. In that sense, it pays to care about languages today as they will directly impact the future.

If we all give up and just use mainstream languages, then the future will be filled with copies of mainstream languages.
tl; dr: Scala Option monad is more elegant :)
I'm not suggesting you were, but these 'apps' work well at consuming the services of walled gardens without having to be within the walls. I use Huginn as a butler for information in twitter, forums, etc. Facebook has been a tough nut to crack though.
You hit on a very good point that a lot of people miss: the entire concept of "race" is a social construct that can and does change over time and even depending on who you talk to.

Not too long ago, people of Jewish descent weren't considered "white." [0] Neither were Poles or other Slavic people, Roma, Italians, Greeks, most Eastern Europeans, etc. Some people even omitted the Irish. "White" exclusively meant Anglo-Saxon and Northern European western Christian (mostly Protestant, though some Catholics were included) descent. These days, most of these people would be considered "white."

It's not perfect, but there's a bit of a parallel to this in history: during the Roman period, the definition of "Roman" changed dramatically. At first, it was a citizen of the Roman Kingdom who lived within the city. Then it was extended to the Italic tribes after the Social wars, and eventually to the entire Empire (all free-born men, that is) under Emperor Caracalla. To put it another way, a "Roman" in 600BC lived in the city of Rome, spoke Old Latin and practiced the old Roman religion. A "Roman" in 1000 AD may have lived in Constantinople, likely spoke Greek and practiced Christianity. The entire definition of "Roman" completely changed over the course of 1500 or so years.

It's one of the reasons I find "race" to be such a frustrating, silly and dated concept. Considering how much in common we share genetically with one another, classifying each other based on such arbitrary and ever-change definitions makes very little sense to me. I usually write "human" in the Other box. :)

TL;DR what "white" is entirely depends on what people think it means at the time.

[0] https://en.wikipedia.org/wiki/Definitions_of_whiteness_in_th...

[1] https://en.wikipedia.org/wiki/Caracalla
True that, which is sad, because charisma can legitimately lower the difficulty of understanding complex ideas; think of your best teachers/favorite professors. I wish TED was filled with more Richard Feynman (charisma * ideas) and less Tony Robbins (charisma % ideas).
>There are a lot of jobs that humans can inherently perform better than robots for the next few decades at least: taking care of the elderly, hospice care, community development, physical therapy, etc. Humans are wired to trust and engage with our own species over any machines that could be developed any time soon.

While this is true and one of the unintended consequences of guaranteed minimum income would be even harder to obtain elderly care, not everyone is suited for this kind of work - and if you think a large % of people who spent the last 20 years driving cabs and trucks can now go on to be a nurse or some such I don't think it's very realistic.

IMO there will soon be a new class of unemployable people - with low social skills and low enough IQ to not be trainable fast enough (one thing that is a requirement in modern economy is fast training and adaptation - no more learn one job and do that for the next 30 years - you stick around for one job for a couple of years and then your position gets automated, the company reduces capacity, relocates operation, shifts focus, etc. etc.)

So on one hand there will be vacancies for many jobs (like competent programmers right now) but on the other hand people available will not be able to enter those markets in any reasonable amount of time.

I can tell you myself - years of working on a computer over 8 hours a day have left my motor system very very underdeveloped and I have a hard time focusing on menial things, my first job was physical labor after highschool - I took months to get to the point where I could be useful and I was a work hazard during my training - the only reason I got a job there was because the manager knew me from school "internship" and he knew I could code/was a fast learner - he gave me a job before he could get an opening to move me to production planning/management. I needed the money because I was poor. But there was 0 point in hiring a person like me for that kind of work - if I was hired for that job I would be fired way before I got good enough at it to not be a hazard. On the other hand I've seen new people come on out of school that learned much faster and were just better at it. Just like there would be 0 point in hiring anyone that was good at that job to be a programmer.
Please, someone explain me:

- European football (aka "soccer") is called that because it is actually played with the feet (and touching the ball by hand is forbidden)

- American "football" is a game played by carrying a ball in one's hands, or throwing it by hand. Why on earth would someone come up with such stupid name as "football" for this kind of game?

I want honest, expert opinion on the topic :)
> Japan? The country that has in its constitution that it cannot hold an offensive military ...

The consequences of that are not what one might think. Japan has the 7th largest military budget in the world, and it's been high for a long time (i.e., they've accumulated quite a bit). Much of what they own, from fighter planes to warships to submarines, could just as well be used to attack as to defend. The current Japanese government has been stretching the bounds of the pacifist Constitution greatly; they are not going to sit by and watch China dominate them and the region, and they want Japan to take its place in world affairs commesurate with its population (10th largest) and economy (3rd). For example, they now take part in multinational military operations, they are equipping and training their marines to storm islands, they are exporting Japanese military equipment, etc. Also, remember that Japanese companies are world-class in technology; they can build some pretty good equipment.

Japan long has been considered to have one of the finest militaries, restrained by policy - and that policy is fading away.

> I would hazard a guess that China's korean war "Human wave" tactics would be sufficient against Japan

They'd get pretty wet. Also, that doesn't work in wars against modern countries whose air power is so accurate (the Gulf War is considered the turning point in military history on this issue). The Chinese, and many other large countries, have been shrinking the number of soldiers in their military as a result.
Are you sure that is the case? Or is that the Case for Iphone 5C and earlier? I remember listening to the Security now episode where they discuss the IOS Security model and it worked something like.
1)Apple Sends A notification that an update is available.
2) the Phone sends a request with certain identifiers for the update.
3) Witchcraft happens
4) Apple sends a update signed specifically for that device and it will work on no other device.

Like I said that might be for 5c and older or I might have completely invented that.
> I predict a decentralized, free, twitter and facebook alternatives that more or less mimic the UI except it's not managed centrally by a corporation. The application runs on multiple computers. A committee of volunteers influence it's future development and they are paid in some sort of cryptocurrency and people are paid for helping host this giant distributed app in cryptocurrency.

I predict that wishful thinking won't come to pass, because wishful thinking about utopias has basically never come to pass.

Happy to make payment in galactic credits if I'm wrong.
Blogging is backwards
>Unemployment is _good_. Being poor is bad. They are only correlated because we decided that made sense in the past. It doesn't any more.

The way I see it, the idea behind basic income in a largely capitalist society would be to make being poor a lot less bad. It'd still be bad, probably, as a lot of us like having nice stuff; we like living in desirable areas, and those things won't be available to people on basic income, assuming we continue to use markets to distribute those scarce goods.

Those of us who come from middle class families who maintain good family relationships often have a similar option; crashing with mom and dad for a while. It's not really something you want to do for any length of time, but it's nice to know that if things really go south, you aren't homeless, and you don't have to do anything truly repugnant.

But just like crashing with mom and dad, it's not really a desirable long-term option for most of us. Sure, sure, it's going to be better than the jobs that are the worst on the unpleasantness/compensation scale, and I predict would dramatically drive up wages in the least pleasant fields, (and I predict would lower the rates of the less remunerative forms of crime for money) but if you are a software developer or something, especially if you come from a middle-class family that you maintain ties to, a realistically-sized basic income isn't really going to change your motivation.

Point being, unemployment (as usually defined in statistics, meaning people who want work but can't get it) will remain a bad thing, and assuming a realistically sized basic income, most people who currently work are going to want to continue working.

And... this is important. We need people to continue working. The basic income choice is really, "do we want people to do really unpleasant jobs for not very much money?" and then "are we all willing to pay rather a lot to make it so that people don't have to do really unpleasant jobs for not very much money?"

The argument in favor is the idea that if a job really is that unpleasant, it ought to be compensated for that unpleasantness, and effort ought to be put into automating that job away. Making workers less desperate would make those things happen. Making workers less desperate would also decrease the workforce participation rate. More people wouldn't work, and more people would work part time.

The argument against is that this is going to be pretty expensive, both in terms of what we have to pay to get the difficult-to-automate unpleasant jobs done, and in terms of just the taxes that would be required to fund the scheme.
it's funny, i have been promoting this opinion in the opposite direction for the last ten years

once we begin distributing gains to everyone there will be an exponential robotics boon in order to fill all of the positions people walk away from
It is pompous entertainment. But then again, I can't help but think of what else a modern conference can be but that.

There's a programming conference in my city, a thousand bucks a ticket.

All the videos are going to be put online afterwards. Why would I spend a thousand dollars for the privilege of sitting through them with no ability to fast forward?

'Networking' and all that bullshit right? As if we can't organize people to come hang out at a pub with everyone paying their tab at the end of the night?
The same can be accomplished in F# for those who want this power in the .net ecosystem

type Address = { street : string; city : string option }
type Author = { name : string; email : string; address : Address option }
type Article = { title : string; content : string; author : Author option }

let printCity (article : Article) =
article.author
|> Option.bind(fun author -> author.address)
|> Option.bind(fun address -> address.city)
|> Option.iter(fun city -> printfn "%s" city)
I bought a wand-style garden sprayer with the Craftsman lifetime warranty about 5 years ago. I'm now on the 30th replacement. I have to be careful about the returns, so that I don't accidentally get one of the sprayers I had already returned as broken. They restock them sometimes.

The first one lasted about a year before breaking. Then they changed the design to "cheap Chinese chic", and they usually take 1-2 months before they start leaking. A new rubber washer helps at first, but then they start leaking inside the case.

I probably wouldn't bother with the returns if I didn't live so close to the Sears store, but the lifetime warranty is certainly no indicator of product quality.
Seattle vs. Boulder vs. San Francisco
C# has native support for monads (LINQ), so it's trivial to implement an Option monad.

Or you can go the whole hog like I have my language-ext project [1][2].

In C# it would look like this:

var city = from author in article.author
from address in author.address
from city in address.city
select city.ToLower();

Which is arguably even more elegant than the Scala 'for' notation.

As an aside, there was a discussion [3] on one of the language-ext issues about my Try<T> implementation, and I was asked to compare it to Scala's Try monad. The crux of it was that it's perfectly possible to capture the majority of the use-cases, but may be of interest in the context of this discussion.

[1] https://github.com/louthy/language-ext

[2] https://github.com/louthy/language-ext/blob/master/LanguageE...

[3] https://github.com/louthy/language-ext/issues/33#issuecommen...
Why digital nomads must make a stop in Romania