skysight-inc/HackerNews huggingface dataset:
> I hope you do realize that a good GC is usually faster then refcounting, and comparing it to slow GC's does not prove anything.

In idiomatic Rust code, you typically have very few reference increments/decrements, making it faster and more efficient than both, GC and traditional RC-based approaches.

The reasons for this are that objects are often allocated on the stack, passed by reference (a safe pointer), and directly integrated into a larger structure, requiring fewer heap allocations and very few – if any – refcounted objects. In Rust, unlike C or C++, you can do this safely and ergonomically because Rust enforces clear and well-defined ownership semantics.
- Not all patterns have more than 1 replacements, which makes them still easily revertable.

(it says that right there on the page)
TypeScript isn't higher level than JavaScript. It is JavaScript, just with a lightweight type system. It doesn't make things "easier" than JS, it makes the process of building large JS apps less error-prone.
What is the cost/benefit in this? Is it appropriate to divert resources to older techniques because we haven't yet figured how to do it in the new way? Yes we can score a few points but that is an advancement only to an academic setting.

We used to need PhDs to do simple Computer Vision applications and object recognition in a meaningful matter was a far away dream. Now a child can make an application on its Raspberry Pi, because the new way of doing things is generalizable. You don't need to spend huge amounts of time redoing things just to get to the basics and reach the state of the art as it was 20 years ago.

Should we reintroduce the old ways for the quick wins, or should we divert our research resources to try to solve unsolved problems? The GPU will get cheaper the cloud GPUs will be cheaper.

So this is the state of things today. If somebody wants to advertise his paper's submission to a conference good for him but it should not be presented as an important advancement that should be the new way of doing things. Because it isn't.

When we decide that its feasible to send robots to the planets or even build robots on them, building chessboards to do rectification of the cameras should not be one of their tasks.

Disclaimer: I had horse in this race too, I was on the losing side of the deep learning argument, I was wrong, I got over it.
Here’s our first glimpse of Elon Musk’s tunnel boring machine via TechPulse.co
2to3 is not a tool with which you generate releases with, it's a one-shot porting aid.
Creative. Nice
What about the good old Italian stove top espresso pot?

I'm a tea drinker myself, but have one around to serve decent espresso to people that want it.
> when the UA is, say, a screen-reader for a blind person?

The blind person explicitly turns on blind mode. This is not a difficult problem. Trying to guess if the user is blind is a hard problem.

If the user wants bigger fonts, they can zoom. If font boosting is a feature they would like on, then have them turn it on. If the author makes a crappy page it should be on them. The best thing a browser could do is let them know. And to visitors, provide options. But instead, they automatically enable these secret brilliant features that break random things. These are not solutions. These are the cause of many problems.

Automatic login? Great. Have a button. Have a feature. Don't do it in the background. Just let me tell you what I want. And let the page authors embrace those features and tailor them, and not wind up hacking them to tame their functionality.
> laws designed with the intention people from injecting potentially harmful substances into their bodies would hardly qualify as those "terribly unjust laws that must be opposed."

They are. Once again, they violate the basic principle of bodily autonomy - you are the sole owner of your own body, and you have the right to do whatever you want with it, so long as such activities are not inevitably harmful to others. By claiming that you have the right to limit the substances that people choose to use for recreational purposes, you implicitly assert that you have the right to control their bodies without their consent.

> If you think that throwing drug addicts into prisons rather than rehabilitation centers is harmful (as your comment seems to suggest) you may have a point. However, that is an argument for prison and sentencing reform not an argument for legalization.

Throwing "drug addicts" (which is itself very fuzzily defined, and the law seems to be treating all users as addicts by default, even though with e.g. marijuana the vast majority of users are not addicted to it) into rehabilitation centers instead of prisons is less harmful - but it's still harmful, since it still limits their freedom. The only reasonable argument in favor of this is "lesser evil", i.e. if if doing so prevents a greater non-consensual harm from happening - but that is not the case.

Prohibition on drug use is fundamentally about restricting people's voluntary choices with respect to their own bodies, and is not any different from laws regulating sexual mores (from anti-miscegenation laws and sodomy laws to sex toy bans).

It also has the very unfortunate side effect of criminalizing those for whom drug use may no longer be consensual, but who cannot seek help for it because doing so would be admitting to a crime. It doesn't matter if you do a sentencing reform - so long as use remains illegal, by definition, admitting to it remains some kind of risk (if not risk of imprisonment, then financial risk of a fine, or reputational risk of getting arrested and having a record of that etc). The only way to stop further victimization of victims of drug abuse is to fully decriminalize use.
You missed his creative brilliance, he couldn't compete head on with other teams, but he had a more economical vehicle while upping the stakes.
Pretty sure that's true though. Unfortunately, rationality is usurped by ideology. Suggesting things outside a narrow dogmatic range is seen as heresy; regardless of how strong the empirical evidence is.
It isn't. Facebook blocked all my legit accounts (those I used for ads and groups) and also expects a ID copy now.
Crowd-funded security audit for a PHP port of libsodium
TypeScript isn't a higher level of JavaScript, it's ES6 with added features and types.

Main purpose is to make JavaScript code easier to maintain, especially across teams.

IMO the only way to go "higher level" is to use something like jQuery.
> A transpiler is "a compiler that targets a high-level language."

So rustc is a transpiler when using the emscripten backend but not when using the native backend? How does that even make sense?
Hot topic in The Netherlands right now is the threat of a hostile takeover of Akzo Nobel, a chemical company with 50,000 employees, by a US company. The government is discussing putting the same protective regulations in place that Trump is threatening with. The US isn't "losing" jobs to Germany, they are trade partners. If Americans want to stop trading then both sides lose.
What a time to be a lamb! :D
Am I the only one who actually likes open offices? I like the vibrant feeling and never have any problems with distractions. I just put my headphones on and zone in.
Not the OP, but:

> Wouldn't you expect some employees to always take the laptops home

Maybe, but there's two issues here - they're either taking them for personal use, or they're taking them to do (additional) work on. In the majority of cases, you probably don't want to encourage either of these (in the same way you wouldn't encourage someone to stay in the office till 3 am).

There's probably a group (on-call, not always in the office, etc etc.) who would be better served by a docking station but speaking from the experience of working at a place where everyone gets a laptop, there's a significant majority who have either never or very rarely needed to take a computer out of the office in years but took the more expensive/more difficult to repair/more likely to fail hit anyway.
Interesting site!

"Complex problems don't have simple solutions. It could be a series of sticks: a vacancy tax, an increase in tenants' rights through guaranteed leases and binding arbitration over rent increases (as outlined in the Small Business Survival Act). Or it could be carrots: tax breaks to small businesses to help ease the pain of high rents, or streamlined registration and a reduction of regulatory hoops for certain types of retail tenant. [...]"

And some possible solutions to fix this complex problem
Not all airlines overbook. Case in point, JetBlue, which as a practice does not overbook. United heavily overbooks, which is closely related to their practice of trying to offer the cheapest tickets on major competitive routes.

United lost over $2 billion last year. JetBlue made about $800 million in net income last year. So which strategy is "economically important" again?
I wouldn't worry about limiting language syntax just for him to be "able to branch out to other languages years down the line if he wants to."

As far as I remember, my first brush with programming might be when I was ~7, on an old, crt-connected computer (not comodore, something Yamaha branded, with arabic OS I found at my grandpa's), with the Basic programming language. As far as I remember, I was able to comprehend PRINT, INPUT, IF and GOTO, I don't think I was able to handle sub-routines and loops. Your mileage may wary :)

I really started \w programming 10y old, with after-school course in Visual Basic for Applications. It was the year 2000 and that was only ide our teacher was sure we would have at home :-)

I remember, that sub-routines were fine for me by that time, loops and array iteration as well, interestingly, I took some time I comprehended, that I can do i.e "x = x + 1". This wasn't something that my brain thought was possible, based on my experience in math class (we have been solving simple linear equations by that time). So, functional language might have been easier in this regard :-) Unfortunately, I don't remember when I managed to grok recursion?

We made a lot of text adventure games \w input and message boxes first, and later on drag-n-drop some forms together. Two years later we worked with C. Three years later in Java. In that time my accomplishments were at the level of single level top-down shooter and we might have accidentally invented the clicker genre :-)

So, if he wants to try ruby, wouldn't worry about somewhat tainting him. If you think it would be fun to learn elixir, and want to take your son along, and write a game together or something like that, that sounds like fun as well.

Hope my account helps, I would like to hear how did your effort go :-) I have a three year old daughter, and one day I will want to share programming with her as well :-)
I just wish to report that I had only good experience in communicating with Nix/Nixos/Nixpkgs community.

When someone could solve something that didn't work for me, they did. When no one could or didn't have time, they kept silent or politely tried to help me find the solution myself. And everything absolutely for free!
"Should be easy" is a bozo bit phrase. Whether it should be that way or not, you're going into the slow bucket at that point.
Those airlines take a risk by overbooking, and that risk can be penalized by a net negative profit if need be. If you're allowed to gamble, you need to be able to lose.
Billionaires would still be near the top of the list if you compare them with dictatorship GDPs. ~80B puts you far above most small or poor countries.
I thought that with all the safety regulations, cargo pilots were doing more or less the same number of hours that passengers pilots. In fact I read previously that pay was now pretty much aligned between the two, and that this previously unpopular profession among pilots was attracting increasing interest.
I think transportation is an incredibly important (food!), but the way this is written seems incredibly tone-deaf. He should have focused on the facts (if there are any) about incident rates and length of time flying, instead of saying how his dream of connecting "our great country with the rest of the world" is being jeopardized.
Show HN: A small book about a tiny compiler (source code included)
>>>If someone chooses another employer, they probably wouldn't have been happy at your company anyway.

That's not true, that's simply how slow companies rationalize being slow, so they can feel good about it.
That's really cool. It reads surprisingly like Chaucer.
To be clear, you can use star dependencies locally, but pushing a new crate to `crates.io` will reject crates that have star dependencies. So in some senses this is still accurate, but it's missing the crates.io interaction.

This means I don't understand how you got your error. For example:

> cat .\Cargo.toml
[package]
name = "star"
version = "0.1.0"
authors = ["steveklabnik <steve@steveklabnik.com>"]

[dependencies]
semver="*"
> cargo build
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling semver-parser v0.7.0
Compiling semver v0.6.0
Compiling star v0.1.0 (file:///C:/Users/steve/tmp/star)
Finished dev [unoptimized + debuginfo] target(s) in 5.24 secs

I've filed https://github.com/rust-lang/cargo/issues/3971

I'm also not sure how you got your `join` error,

let sline: Vec<&str> = vec![];
sline.join("");

seems to compile just fine for me. Hard to tell without seeing your other code, I guess...
Me too. The vibrancy makes me feel less lethargic.
My point is that RTTI is required by other things in the C++ standard, not just exceptions. So it's still "free" if we're only considering exceptions separately by themselves, and leave all other features as they are in standard C++ (and if you disable RTTI entirely, then you no longer have standard C++, since those other features also stop working).

If we consider the combo of exceptions+RTTI, then yes, dropping both at the same time lets you get rid of some further overhead (although again it's memory-only, not compute cycles). But then we have to discuss the lost benefits of those other features, not just exceptions alone, to judge whether doing so is worthwhile or not.

BTW, I may well be wrong here, but isn't RTTI generation for exceptions (when it's otherwise disabled) an example of "only pay for what you use"? i.e. wouldn't the compiler then only generate RTTI entries for those types that are either thrown somewhere, or are caught somewhere? If so, any library code that doesn't throw itself, and only needs to allow exceptions to pass through it, is still zero-overhead in that regard.
Seconded. Definitely unreadable. For anyone who didn't click through, a line from their self-chosen sample:

>'kause jou gnaw jusd wuaed thoe sai
This interactive map uses machine learning to arrange visually similar fonts
If you're happy, and you're doing well, getting paid decent, like your coworkers, and are still learning, there's not a whole lot of reason to move, I would say. The grass isn't always greener.

If you feel like you've gotten in a rut or plateaued, that might be a reason to think about it. I suppose it depends on your local job market; some places expect a lot more churn than others.

Personally, I'm kind of adverse to change for change's sake; I'm going on six years with the same company, and, except on my worst days, not really thinking about moving.
I've recently discovered Amazon's subscription service (shopping for cat litter of all things) and since I'm already paying for Prime as well... why not?

I can imagine partly for the reasons you just listed, larger established players will ultimately push the DSCs out of the market. Probably Amazon single handedly.
There are several nice references within the article. I think the gvnn, Neural Network Library for Geometric Computer Vision, (https://arxiv.org/abs/1607.07405) should also be mentioned.
The issue there isn't the language, Ada is lovely but that the surrounding infrastructure isn't there, it lacks widely used 'modern' libraries for a lot of stuff you take for granted in .Net/Java (even PHP) Land.

I'd love to be able to use it at some point and writing a web framework on top of it has been one of those fun if I ever have lots of spare time projects that sits in my queue.
To be fair, the emotional approach is what actually works in the vast majority of cases. Normal people don't connect with or understand facts.

I think this might be a case of content audience mismatch.
So? Some service or another is always down...
Honestly I think it's worse. When someone is placed in a position of authority they should be held to a higher standard.
Small countries, but there's still quite a lot of corrupt bigger countries. Russia, Thailand, Malaysia are the first that come to mind.
I read that as:

'cause you know just what they say

Of which, only 'they' was wrong. Doesn't seem that unreadable.
I think there are some extremely straightforward answers to those problems :P

It's just that people don't want to for some reason (e.g. regulation), if it had been pure capitalism, I'm fairly certain someone would've built more houses by now.
Yes, that would be a panic.
I didn't get an answer to my question in another thread; perhaps you could help with that? It is as follows:

Did Pakistan have its blasphemy law in its current state since founding, or was it significantly broadened under Zia-ul-Haq?

I'm genuinely curious about this, because if it's a later addition, then wouldn't several decades of Pakistan's existence without laws as stringent as they are today indicate that the society can actually handle this being dialed down quite a bit just fine?
rustup is really great. First I was a little bit curious if the updates every 6 weeks would ruin my dev environment since I need to update every time. but rustup makes that a breeze.
`rustup update`. that's what to do when there is a new version, nothing more I don't know that any other compilers/interpreter that has the same ease of use. except maybe sbt, but that can't self update. (P.S.: Awesome talk about rust on scaladays: https://www.youtube.com/watch?v=C6dNx9pY7p8&index=2&list=PLL...)
Emo. No content.

"US patriots, protect our labour achievements from this evil German company!"
There seem to be some nice developments into this direction recently? Something like the SfMNet (https://arxiv.org/abs/1704.07804) or the Correlation Filter Net (http://www.robots.ox.ac.uk/~luca/cfnet.html) for tracking.
Kopimi is the Word. Kopimi is the way.
^ all of which is of course available in Flow as well (in case OP got the wrong idea.)
You would probably hate David Hockney's famous photo collages then.

https://photomuserh.wordpress.com/2012/03/04/david-hockney-p...
I totally agree, I wasn't being colloquial about the wolves.
Until may 3rd?
I'm sure there are a number of old money families that control wealth of at least an order of magnitude higher. They are powerful enough to not make it visible and directly tied to them. Rothchilds are most likely effectively trillioners.
The output reminds me of the writings of Bascule in Feersum Endjinn [0] but it's somehow not quite as legible!

[0] https://en.wikipedia.org/wiki/Feersum_Endjinn#Writing_style
I think the association of atheism with anti-theism does a lot more harm than good, and I'm an atheist. If you take a look at reddit's atheism sub you'll see that this is an ongoing problem.
How Elon Musk learns faster and better than everyone else – Quartz
Go Ahead, Have That Fourth Cup of Coffee via TechPulse.co
A Test Is as Good as Its Ability to Fail When It Needs To
I miss Facebook, or rather the circle of friends on it. I'm ideologically opposed to the idea of one big centralised thing like Facebook - but as an actual tool it's pretty spiffy.
If only the Flow team was half as active as TS. Is there even any reason to use Flow long term or are they eventually going to tell their users to either switch to TS or that ML thing of theirs?
A couple things to consider:

* Hour restrictions for passenger transport are significantly more stringent than for freight.

* Southern Air's fleet consists 737s and 777s -- not small planes.

* These plans have to fly over and into major metropolitan areas.

* Many parts of flying can be automated, but in the end, and for aircraft this size, you probably want a human operator in the plane for the sheer reason that they are better equipped to handle unplanned emergencies.

It's a tough call whether flying freight or regional airlines pays worse -- but in either case, you're anywhere from a quarter to half of what a software engineer of similar years experience in the bay area would make. The hours are in a lot of ways worse -- mostly because you're away from home a lot of the time, and you have really limited control of your schedule. (As someone who's worked as an on-call engineer for ten years, and who also flies, I'd take the on-call responsibilities over flying freight any day of the week.)

I'd agree that the article lacks for details. But, a relatively quick reading through things like airliners.net will give you an idea of the kind of hours and pay these guys typically work -- it's not an easy job. If we care about their safety -- and our own, given the number of freight aircraft flying over us every night -- we shouldn't write them off as just asking for money they don't deserve.
That sounds like a great dev build and a really wonderful job/company/work environment. Hope that everything turns out well for you.
How to Be a 'Hipster' Web Developer
Fair enough. The fact that the wall has multiple purposes is pretty neat. The concept is growing on my now.
Alaska is a pretty nice airline actually with a fair number of benefits that no one else seems to offer. I hope they grow viable in Southern California.
Thats hardly applicable async code. You're awaiting the actual async operations, which originally have to be distributed asynchronously from the main thread for these async operations to execute, and at that point its the same speed as just doing sync operations inside of an async operation.

Actual asychronocity, usually with event based systems, gets very ugly, very fast, because you end up having to make callback chains and queueing up your async work. There can be a good benefit to doing it, but its going to be a lot less readable than most sync code, and sometimes not any faster, in the case of Node.JS and its community forcing the usage of async function in places where they don't need to be used.
Chuwi Comes with Two More Products Aimed at Microsoft's Surface Line
The problem with this line is 'gnaw' is actually a word. I find it very difficult to look past what is actually written and try to convert a correctly spelled word into something else.
Rundeck?
I currently py about £500 per month per head for serviced office space. Very small, though, with six of us and could easily grow to 8 or 9 in the space so the cost drops.
A Virtual Goldmine: Why Criminals Target Patient Data (Part 2)
From what the author found, it seems pretty clear to me that that patent is nothing more than an idea on paper right now. If the device doesn't send anything over the network for a "handshake" then it isn't a handshake at all. Also, I'm not sure if the author added detail or not but it makes it quite clear that the web interface simply adds a row to the handshake table with the fields entered and nothing else. He also found that the only other place in the GUI that references this table at all is to display the existing "handshakes".

As far as how it actually works on the device the author also showed the relevant portion of the postfix config where it checks if the domain is in the handshake table and if it is then connect to that IP on port 26 with the hardcoded default cert.

Maybe they plan on creating something based on that patent someday but right now what they're selling as based on that patent has nothing to do with it.
Yeah brushing form is important, and for some like myself, difficult to get right consistently. I really need an electric toothbrush.
Python Dependency Injection – Designing Module Part-2