skysight-inc/HackerNews huggingface dataset:
I so wanted to like xonsh, but the startup time is too slow. I keep spawing new shells every now and then for every little task. When I'm done with the task, I close it. Xonsh has noticeable startup delays.

I don't have a taste for pulldown terminals.
How about no. Stop signs were designed to prevent people being hit by crossing traffic.

This isn't just a to protect the cyclists from being hit by cars, but to protect pedestrians from being hit by cyclists.

I'm sorry but my experience of living in London in the past 4 years pretty much made me hate cyclists with passion.

I find them considerably more dangerous and pesky than cars, they simply ignore all rules whether it's not giving a flying duck about the red signal at a bike lane while pedestrians have the green light to cross the street, utterly ignoring no bikes allowed in the run/walk only paths in Hyde Park or by interchanging road, bike lane, sidewalk and even the crosswalk at will with nill consideration to pedestrians and a shitty attitude to boot.

I'm constantly buzzed off green lights (to me) by cyclists that cycle at high speeds because they could not be arsed to honor a red light, I've been hit by bikes more than once in these 4 years, and just over the weekend I've seen a guy on a rental metro bike hit a baby carriage (empty one as far as i could tell) in Hyde Park because they were in a no-bike zone and came out a turn which has no visibility whatsoever.

I really don't understand the level of self entitlement that cyclists seem to have and why they seem to have such a shitty attitude towards drivers and pedestrians alike.
A bicycle rolling through a stop sign isn't any less dangerous than a car rolling through one, if anything a car is easier to spot than a bicycle and cars don't tend to have their visibility shuttered by driving between full lanes.

The reason why most countries do not allow roll through stop signs or at least heavily restrict them is that rolling through a stop sign sets the wrong behaviour pattern because once you get used to a stop sign you know you can roll over you aren't going to slow down to roll over speed you might simply slow down by a bit but not nearly enough to respond appropriately.

The same thing is going to happen to cyclists they'll get use to it and eventually get careless they won't give 2 ducks about the padestrians trying to cross the road with already ludicrously short light times and they'll take more and more risks as far as crossing the intersection goes.

Cyclists don't have mandatory insurance, they can hit anyone and do pretty hefty damage if it's at speed and good luck suing them for anything at least with cars in most countries you can always sue the insurance of the offending driver.
Heck at this point I'm not even entirely sure if being hit by a bicycle in the UK constitutes a "road accident" so they might as well just take off and not give a flying duck about it, it happened to me got hit in the side I assume by the stem/handlebars at pretty high speed the cyclist didn't seem to give a shit at all and just wobbled a bit and continued on his way without even checking. It was a sharp pain but not bad enough however the night after half my side was purple if it would be a bit stronger or sharper hit I might've ended up pissing blood for 2 weeks.
Here's a snapshot of what things are like in Berlin, Germany.

I dropped my 7 year old off at a new day camp (in the centre of the city) last week. They asked me if she was allowed to leave on her own at the end of the day.

Here are the rules for kids riding on the subway system:

"Children under four years of age may only use public transport if they are accompanied by a person who is at least six years of age."

That said, you don't see a lot of little kids travelling alone but it seems that the discretion is with the parents.
I work on a product in payments, specifically a client-side checkout application. It's essentially responsible for collecting data from the user (billing and shipping addresses, affordability information, etc.), presenting the various payment methods and displaying up sell stuff after completing the purchase. Just the client side application is about 250000 lines of code, not including third party stuff.

It feels like applications grow with the team that develops it. At our peak, we were around 10 people working on it, and it's just so hard to do meaningful refactoring when large parts of the codebase are being modified by 10 people in parallel. Not only the technical challenge, but also getting everyone to agree on and embrace patterns and structure.
Except that health insurance is negative expected value. Health insurance companies make tidy profits. And I don't think it's because of negotiating leverage - free consumer choice would do wonders in depressing healthcare prices.
There will usually be a one-way file copy service (with AV scanner) that you can use to transfer files to the secure network. No access to cloud services is very much a feature, not a bug, as these measures are implemented for security.
Most routine care isn't truly predictable other than vaccinations and preventative medicine (physicals, associated lab tests). However, there's a great deal that's statistically predictable but not chronic/catastrophic such as cuts that need stitches, broken bones, bad flu/high fever, etc. that most people will encounter to greater or lesser degrees throughout their lifetime.
I'm team Atom and considered a plugin for that. However my Vim friends would have killed me, so I went Electron instead.
how about TCL?
freewrap should so the trick
http://freewrap.sourceforge.net/
An Introduction to GCC – for the GNU compilers gcc and g++
Can you limit support to Windows 10 only? If so, you should go with the Universal Windows Platform.

UWP has got the latest and greatest tools from Microsoft, and it's more coherent and pleasurable to use than any of the older options. You'll get a modern-feeling UI with much less effort.
I've programmed in a few other languages than Python. I'm curious to know which languages you think have an easier time managing mature and complex stuff?
Wait, there are other beasts of the night doing other-end-of-the-earth schedules there? Highfive, sir!
It has one distinct advantage: you don't have to generate the id and for attributes, which isn't always the most convenient.
Fucking Excel! They haven't fixed this utterly egregious bug in over a decade.

I'm going to make a sign and picket Microsoft when I'm next in the area.
One of the deep concepts of fish is that everything is a function.

So while you can't do "PATH=$PATH", you could easily make a function that parses that for you, and have "env PATH=$PATH". It's a limitation.

However, it does mean that instead of something like Bash's insanity around P1 when you want a contextual prompt, fish_prompt is a function, with all the beauty of ifs, fors, and whiles spread out in an easy to read language.

Fish can be hit or miss, but it feels like Lua for the shell, to me.
DoD Encryption Wizard
We use Xojo (former RealBasic), it's quite good it compiles native apps on all major platforms. Language is quite easy to understand and pick up, the resources are big, articles, conferences, libraries, and video material: http://www.xojo.com/resources/ If you want to check out some apps made with Xojo, you need to go to this FB group https://www.facebook.com/groups/127238180792805/
>cloud services

If service is required for work - it should on corporate network.
It looks like this was done at global scope. It's important to wrap things in a function for maximum performance - AFAIK, because method dispatch and precompilation happen at the function level, functions are much much faster than not functions.

Julia also stores its arrays column major, so put the outer loop over columns for another order of magnitude performance increase. (I'm not sure I love this feature, but presumably there's a reason...maybe for better performance on matrix operations?) My reply to your grandparent comment has a simple implementation that runs in 0.4 seconds on an aging machine.
Good idea. We'll reach out.
> There are now new Linux users starting every day, and asking them to learn that less is better than more is not funny.

I think the article was more critical of commercial Unix vendors than Linux. From the article:

> Oddly, FreeBSD has done the most sensible thing; they've outright replaced more with less. There is a /usr/bin/more but it's the same binary as less and as you can see the more manpage is just the less manpage. OpenBSD has done the same thing but has a specific manpage for more instead of just giving you the less manpage.

> On Linux, more is part of the util-linux package but its manpage outright tells you to use less instead

The Free/OpenBSD choice seems sensible; presumably there are Linux distros which do the same. I imagine that if, say, Ubuntu or Debian makes a choice like this, it would propagate quite quickly to other distros; it would presumably be less of a breaking change than switching /bin/sh from bash to dash.

> It's time we dropped the "Bash is good enough" arguments.

I've rarely heard anyone claim "Bash is good enough". I do agree with the argument that bash is overused, and anything more than a trivial script should be done in a "proper" language (e.g. Python, which is installed by default on pretty much all Linux distros and OSX).

I'm not sure if there's a clear winner(s) for interactive use (i.e. a pareto improvement). Many use zsh, but I don't think it goes far enough. More radical alternatives like fish, ipython, etc. seem too fragmented at the moment. Maybe there needs to be momentum from a high-profile distro shipping such a shell as its default (while maintaining /bin/sh, /usr/bin/env bash, etc. for compatibility with existing scripts)
Global Fresh Cream Market Report 2016-2021
Pal, 34 here, and this "till 3 am" thing, which so much fun to brag about in chats with colleagues is actually a bit dangerous to one's health (who'd have thought, huh, -- mommas were right!). So beware :)
I kind of feel like Linux people have gotten used to using Python (or similar?) for anything that is complex enough that shell is not enough. Which is also not perfectly suited to the domain, but enough that learning a third thing to do sysadmin-type scripting is not appealing.
Yes, nothing works as well as saying 'Cheer up' to a person with Depression. </sarcasm>

I can only assume you've not experienced the black dog up close, or had someone close to you suffer. For those of us who live with it, it is a truly terrifying thing, that can cripple you to the extent that mere breathing seems like effort.

I'm not being a dick to you by the way, just highlighting that cavalier responses such as yours is why Depression has the taboo it does.
Ask HN: Why is there such high turnover among Designers
We're looking for a (Software) Product Designer and hoping we can employ someone for the long-term (which is at least 2-3 years these days). The vast majority of UI/UX Designers stay at a company for 6 months to 1 year - this includes FT/Permanent designers, not just contractors. Thank you.
On it. Will switch over.
Do you really think packaging is still horrible? I tend to agree with Glyph Lefkowitz [0]. What issues are you still having?

[0] https://glyph.twistedmatrix.com/2016/08/python-packaging.htm...
Ask HN: Should I work for Big company or a startup
To give some background. I'm 29 y/old male. I was having some anxiety issues and feeling down and a few months ago I started taking antidepressants and I'm seeing a therapist.

It's been going well but now I'm feeling more burnt out than depressed.

I have 8 years experience as a web developer, 4 years of PHP, 4 python/django. I always worked from small startups and small consultancies. For the past year I've been working for a somewhat big company on projects for big telecommunications companies. It's great to be part of a good team and do something big but now I'm in a old project, no one care enough to update it, teammates like the project are just getting by. At first I tried to make it better but I gave up with the careless teammmates. I hate this project and I feel stuck and burnt out.

I'm doing interviews, two startups refused me saying they want someone more experienced. Not sure if that means more creative, just better or that my burnout is obvious that they're refusing me.

Another few interviews in a big company are all going well, for an attractive project that has (machine learning, recommender systems, artificial intelligence, micro services)
It all sounds great but I'm afraid in a big company it's gonna be the same as I'm doing now. You have time to do something big but slowly which somewhat feels boring to me. While in a startup you do something smaller and more attractive in the short term, but have less time and more pressure to do it, which is more exciting.

I'm not sure if I should wait for another opportunity (dying more slowly in this current project) or just take the big company attractive tech stack job.

Any thoughts?
These things are eventually going to exponentially increase, if Bitcoin gets to even 1% of the global payment cards daily transaction rate you aren't going to be running nodes on your own.

Now you can still get into running a node and even doing mining however as time passes the barrier to entry increases exponentially and considerably faster than the capacity of individual hardware so you can't even really catch up.
I did the first half of my career in the Bay Area (>10 years) and am finishing it in NYC. Been in startups in both places. Here are the biggest differences I've noticed since moving to NY:

1. Old money. In California, the VCs and Angels I met were mostly self-made; they had cashed-out of the dotcom boom, or recently been apart of an IPO. They were all 20 - 40 somethings. NY is very different. I had never been exposed to the "country club" / "summer house in Nantucket" / "trust fund" scene before. It definitely feels like a different planet sometimes. So if you're raising money, be prepared to have conversations with the type of people you might have thought didn't exist anymore.

2. No echo-chamber. For the best and brightest in NYC, tech is often NOT the obvious choice. In many circles, going to the tech scene, (let alone the startup scene), is seen as odd. ("Why didn't you go into finance?" "Why didn't you go into law?" "Why aren't you a doctor yet?"). The greatest minds of the generation are becoming MOTUs (Masters of the Universe) at hedge funds and big banks. They're making a ridiculous amount of money, and really have no interest in this little tech thing we're doing. Talking about your startup in NYC feels odd sometimes. You're not praised or catered-to like you are in SF. Nobody really cares what you're doing, and nobody takes you that seriously until your run-rate is the hundreds of millions per year. It's a nice change in context actually. The SV echo chamber is gone.

Besides that (and NYC's insane weather), things are pretty much the same. Lots of talent, but it's expensive to hire. Lots of businesses, some good, some bad. Lots of VCs and Angels. Terrible rent, good food, etc.

Is it worth the move? Yes. Simply because when you move to NYC you may be seated at a cramped restaurant shoulder-to-shoulder with your next investor; and in SF you might see @sama walking down Market street. That kind of "right place at the right time" moments are more rare outside of those cities. Which coast you choose is entirely up to you; either way you're making a good move.
Rising Pet Humanization Trends Driving the Global Dog Food Market
That's not the mechanism I'm considering. I was under the impression that most researching professors needed lots of grad students in order to get grants, and they needed grants in order to exist?
Or use SharpDevelop!
Reasons to learn Python:

Sklearn, tensorflow, pandas, Sqlalchemy, requests, Beautifulsoup, numpy, scipy, pulp.

If you have a language that had equivalent libraries that cover all these domains I'd love to hear it. Until then I can build really cool stuff in Python very easily thanks to the amazing hardwork and generosity of these library creators.
I believe (and I hope that someone double checks me on this) that you can set which version of the .NET libraries you want to use during development in visual studio. If you use version 3.5, your application will be compatible with all versions of windows back to XP.
Stats 110: Probability
> Like, for instance, class generation, and extending methods.

This is precisely the kind of thing that leads to unmaintainable "magic" code, even though it can still be useful but with extreme moderation. So I don't see the point of making that a core feature of any language.

If you have any example to the contrary, I'd love a link to a good open-source project that uses these things extensively.
Can anybody tell me how legit the placeholders recommendation is? I understand it's not accessible, but on a limited viewport, having the text tell the user what you want seems like a no-brainer. And I see it a lot. Isn't there some other way to provide accessibility?
Microsoft would say that if you were writing an app from scratch to use UWP because of it's security model. There's lots of info about that. That and serviceability. It's pretty awesome.

UWP would let you do UI in XAML but also get access to the Windows compositor and DirectX if you need it. It's only Windows 10, though.

If you need to support Windows 7 and up it's WPF/.Net with some assemblies written in C++. That's how an awful lot of applications are being written.

There's some strange advice in this thread. HN isn't really a place that I would ask about Windows development. I'm surprised that there aren't more..."You could do that in Erlang" comments or other weird shit like that.
So then the terrorist coats their drone in foil, and instead you are blinding anybody who looks at the drone when you fire.

No, kinetic or nets is much better.
No ETF or fund holder votes their proxy. So it falls to the Blackrocks, Vanguards and Fidelitys of the world to hold self-serving corporate boards to account.
GCC and Make – A Tutorial on how to compile, link and build C/C++ applications
Eh, Wentzlaff (professor behind this) co-founded Tilera. He can definitely make something others could use. I view him doing OpenPiton as an attempt to give back to researchers now that he has become a prof.
Addressing some criticism from various comments:

> Python 2 vs 3

It is mostly over. All important libraries are accessible on 3. It is clear that if you are starting from scratch you should go with 3. There are good tools to help with the migration (e.g. six). Some libraries start dropping python 2 support.

> Bad tooling

Having used Emacs with jedi for a while I switched to PyCharm to leverage optional typing. PyCharm beats my tooling experience in all languages I used expect Java:

- Auto imports work well.

- Code completion works very well, especially on optionally typed code.

- Even refactoring works very well, failing short only to my experience with Java, but beating C++ or even Scala.

- Debugging is actually a highlight - I can drop into full fledged REPL at break point. "Evaluate expression" in C++ or Java didn't come close.

Profiling is indeed not as advanced as what I was used to on the JVM, but IMO it is sufficient for 95% of use cases. For that 5% it is clear from the start that you shouldn't go with python. Language specific performance monitoring in production becomes less of an issue when you start running inside containers and it starts to make more sense to monitor containers rather than individual processes.

> Maintainability at scale

I am using Python 3.5 optional typing and I feel my project is much more maintainable as a result. Among others, refactoring in PyCharm works very well.

> Packaging and deployment

As mentioned in another comment, personally I moved away from relying on language specific tools to do more than just "install version X of library Y" and manage my deployment and dependencies using docker. It have it's own problems, but so far it works very well, and it's quickly improving.

> Performance

In domain of scientific computing by using correct libraries and things like Cython or Numba you can come close to C++ performance levels. In other domains it's becoming more common to be disk/network bound, and then it doesn't matter if you use Assembler or Python. Also JITs are coming to Python: https://lwn.net/Articles/691070/.

> Syntax/libraries/language features/etc.

It is the most subjective section, but my experience with python in this regard is highly superior to Scala/Java/C++/JS.
Unless you need to think about accessibility, which is a usecase many need to deal with.
> A type is a collection of possible values

Ok, but do two collections with the same values always correspond to the same type?
"And I hope you've learned to sanitize your database inputs."
I doubt open sourcing something moderately complex is as easy or cheap as that though, particularly if there are other technologies involved that you don't own.

It's one thing to say it should be open sourced but to put further effort into something that's already losing you money just for the love of it doesn't seem like a winning proposition.
Now if only they'd make development boards available for less ~$4000.
I agree with both of you. Once I optimized a major Python project to avoid some bad disk access patterns. Nobody noticed them because everyone was using SSDs and those patterns didn't hurt (too much) performance on those, but I was running on an HDD and I had run times of hours (vs a couple of minutes for everyone else).

But my optimizations were guided by the profiler and a (more or less) correct analysis of the results.
Does that work with the scrollback? If it's supposed to, I've yet to see it ever happen!
> it's designed to give people who aren't full time programmers tools with which to build websites

And just like that, the cyber-security profession was born.
If you used to be intelligent and good at puzzles and have difficulties now, it may be caused by sleep apnea (https://en.wikipedia.org/wiki/Sleep_apnea). I have moderated sleep apnea and since I take my medic (5 month), I have seen big improvements in memory and a slight improvement in my relationship with other people.
Nice title for something that is mostly kinda boring.

Basically this is saying the reinforcement learning systems (and other ML systems?) can get stuck in states from which they cannot escape. They label these states "death"

They go on to define various agent behaviours, which given starting states lead to different equilibriums. The ones that actively lead to certain death they label "suicide"
Tarrosion is right, on my machine, putting the code inside a function is 10X faster, and then swapping the order of the loops gives another 10X improvement:

function f(s)
a=ones(s,s);
b=ones(s,s);
c=zeros(s,s);

tic();
for j in 1:s
for i in 1:s
c[i,j]=a[i,j]*b[i,j]
end
end
toc();
return c
end

Note that you also might have to run the function twice, because the first time JIT-compilation kicks in.

Julia 0.5 also now automatically devectorizes some code (eg. x = a .* b .+ c) so that you don't have to write explicit loops to get performance benefits.
I think you mean "blockchain" rather than "block size".