Better HN
topnewbestaskshowjobs
Log inSign up

lumpypua

839 karma · joined Jan 23, 2014 (12y ago) · 248 submissions

Submissions

comment 9y ago · link · parent

https://michaelfairley.com/blog/i-made-a-game-in-rust/

> It consists of ~7700 lines of Rust

...

> Compile times with Rust are Not Great. This is easily my single biggest gripe about Rust right now. The build for A Snake’s Tale takes 15+ seconds, which makes iterating rather tedious. The current incremental compiler work also doesn’t seem to make the build for A Snake’s Tale’s codebase any faster.

comment 9y ago · link · parent

That's fine, it's:

> terrible "wilderness years" of server templates and jQuery

where things go off the rails.

comment 9y ago · link · parent

While we're talking about python caching libraries, I'd like to recommend https://github.com/codeinthehole/django-cacheback

"It's an extensible caching library that refreshes stale cache items asynchronously using a Celery or rq task. The key idea being that it's better to serve a stale item (and populate the cache asynchronously) than block the response process in order to populate the cache synchronously."

comment 9y ago · link · parent

JPEG uses this path for its blocks, rather than anything fancy and Hilbert-ish: http://www.johnloomis.org/ece563/notes/compression/jpeg/tuto...

I think this alone would be an improvement for the mp3 encoder.

comment 9y ago · link · parent

I've seen people use rebase like a patch queue a few times, and it always comes off as awkward and painful. This app seems to make that pattern of use a little less painful -- but patch queues are better. I wish more people knew about them as a source control tool.

mercurial queues - far and away the my favorite patch queue implementation - https://developer.mozilla.org/en-US/docs/Mozilla/Mercurial/Q...

stacked git - a solid git patch queue - http://procode.org/stgit/doc/tutorial.html

comment 9y ago · link · parent

The trouble is that yarn is legitimately better than npm. My life is better as a developer because of yarn.

I'm not claiming that all those transitions were for the best, far from it, but the real question for any language community to answer is: "how much churn is acceptable in the pursuit of better?" JS is an ongoing cultural experiment in seeing what happens when you turn that dial to 11.

comment 9y ago · link · parent

Just signed up and discovered a vulnerability. Thanks!

A quick suggestion, consider adding a full sample configuration along with your config docs: https://pyup.io/docs/configuration/

It's a lot easier to see how it all sits together with a sample.

CircleCI has a great example: https://circleci.com/docs/1.0/config-sample/

comment 9y ago · link · parent

To counter with an alternative tool comparison: drills and impact drivers look very similar. I'd bet that most of my friends don't really know the difference. But for some situations, an impact driver is an entirely more capable tool.

If you use a drill all day, professionally, you'd be a fool not to take a serious look at an impact driver and see if it makes your life easier.

comment 9y ago · link · parent

pandas is the standard now for most python data munging I've come across. numpy is "low level".

comment 9y ago · link · parent

I did't mean anything special about it in conjunction with magnesium, just that glycine itself is inhibitory:

https://en.wikipedia.org/wiki/Glycine#As_a_neurotransmitter

> Glycine accomplishes several functions as a transmitter in the central nervous system (CNS). As an inhibitory neurotransmitter, it participates in the processing of motor and sensory information that permits movement, vision, and audition. This action of glycine is mediated by the strychnine-sensitive glycine receptor, whose activation produces inhibitory post-synaptic potentials. In some areas of the CNS, glycine seems to be co-released with GABA, the main inhibitory amino acid neurotransmitter. In addition, glycine modulates excitatory neurotransmission by potentiating the action of glutamate at N-methyl-D-aspartate (NMDA) receptors.

https://www.ncbi.nlm.nih.gov/pubmed/11396606

comment 9y ago · link · parent

You might find this interesting wrt magnesium supplementation: https://www.gwern.net/Nootropics#magnesium

Beyond that, I wouldn't be surprised if the glycine along with the magnesium had neuro-inhibitory effect. Supplementation with gelatin might be worth trying for you. https://www.google.com/search?q=glycine%20in%20gelatin I put collagen hydrolysate in my coffee and I think it's pretty great.

comment 9y ago · link · parent

It would be very interesting to see a computer analysis of position strength in the discarded games and seeing, where possible, if the ratios of "likely win" and "likely loss" match the games that were finished.

comment 9y ago · link · parent

Why would that be a consideration?

We'd all hope so, but in practice it only depends on the board of Rubin's company and their goals.

comment 9y ago · link · parent

> There is definitely smoke here in my opinion. You have to be grossly incompetent to get fired within three weeks.

Agreed. grossly incompetent

comment 9y ago · link · parent

Clayton Christensen (guy who wrote Innovator's Dilemma) has a pretty good debunking of the "target user" approach, telling us to instead focus on what job users intend to do with your product. Tells it through the story of trying to figure out the idealized milkshake buyer: https://youtu.be/f84LymEs67Y?t=27s

This whole idea goes by the name Jobs to be Done. Intercom has a sick PDF book on applying the concepts to product development: https://www.intercom.com/books/jobs-to-be-done

comment 9y ago · link · parent

"Paint Drip People": https://www.facebook.com/notes/kent-beck/paint-drip-people/1...

HN Discussion: https://news.ycombinator.com/item?id=12226242

comment 9y ago · link · parent

`keys|sort` in jq.

comment 10y ago · link · parent

And ultimately, writes resulting from those reads. I imagine yelp has pretty stout analytics/metrics pipeline fed off views and conversion tracking.

comment 10y ago · link · parent

This guy has some other great maps worth checking out as well. I think his sharknado one is awesome: https://adventuresinmapping.wordpress.com/2016/06/09/how-to-...

comment 10y ago · link · parent

Awesome lists are a great place to get started:

• https://github.com/sorrycc/awesome-javascript

• https://github.com/fffaraz/awesome-cpp

• https://github.com/vinta/awesome-python

comment 10y ago · link · parent

I agree, you can do awesome things without too much coding knowledge—but a big part of the current push to teach people how to code is to give them access to the coding job market.

If I'm going to hire you as a "software engineer" at an engineering salary, I expect you to know all those things.

Of my friends learning to code for masters degrees now, the ones with a natural coding mindset and studying it hard are taking about 2 years to hit a production engineering level. Most seem to be on a 3-4 year trajectory. That's pretty reasonable for a complex skillset.

comment 10y ago · link · parent

Whiskey fresh out of the still ("white dog") is pretty rough. Whiskey with 30 days of attentive oaking isn't awful (I'll happily get fucked up on it), 90 days will be pretty decent.

comment 10y ago · link · parent

They're not looking at things like antibiotic resistance, they're looking at genes core to biological function like cell membrane proteins and ribosomes—and those look like they came from a common ancestor. So, your options:

1. Common ancestor.

2. Not common ancestors, but with enough random chance common biochemistry that this core function gene could be usefully used by the new microbe, and is functional enough in the new host that it isn't ejected immediately, and managed to stay functional and evolve past the original core function gene in terms of fitness so that original core function gene could be ejected, and the original core function gene did get ejected and the microbes with the new core function gene managed to outcompete all the microbes with dual core-function genes.

The latter is highly, highly unlikely.

comment 10y ago · link · parent

I'd also like to recommend Power, Sex, Suicide by the same guy, Nick Lane.

It's an absolutely amazing book that explains the origins of mitochondria, why they're necessary for complex life (and this means that complex life is exceedingly rare in the universe), and all sorts of effects the differing genomes of mitochondria and cells have: fertility, aging, and a bunch of other ones.

If you're interested in cellular biology, read this guy.

comment 10y ago · link · parent

My chemistry background is pretty weak so I don't know if it touches the specific points you're curious about, but there's a pretty extensive discussion of electron transport and what all the mechanisms we see in the world today tell us about how life began to harness it. He ends up using the discussion to make the argument that all life in the universe likely uses redox chemistry for energy. Made sense to me anyway.

comment 10y ago · link · parent

Yes, this book and the author's previous books cover exactly those topics among others. Nick Lane is a fucking awesome writer.

comment 10y ago · link · parent

0.5 mg/kg. 5 mg/kg will be a hell of a ride.

comment 10y ago · link · parent

I've used ketamine to self-medicate depression. I decided to out of desperation. It was extremely effective for me.

Several provisos for potential users:

- Read the papers. If you can't read the papers on K as a depression treatment and come up with your own dosing protocol, you probably shouldn't try K.

- Probably don't try it if you have an addictive personality.

- Make sure you're aware of potential side effects such as memory and urinary issues. That said, doses used in treatment protocols shouldn't come anywhere near that.

I waited forever to just get some goddamn K and treat myself, because everybody on the internet is like "don't do it, you'll fuck yourself up". I'm smart and do my homework, and I regret not trusting myself and suffering for longer than needed.

comment 10y ago · link · parent

I have no idea what this submission is about. Why would I want rel=noopener?
12345
9