HNHacker News
TopNewBestAskShowJobs

samcodes

255 karma · joined January 14, 2016

submissionscomments
samcodes··on The Endless Acid Banger: algorithmic self-composing acid techno music
well this really takes me back to fiddling with FruityLoops in all my spare time in my teens. very fun, and I love the code
samcodes··on Against Alcohol
I think alcohol and tobacco use are primarily symptoms, not causes, of problems. They, along with depression, anxiety, ADHD, and other addictions, are strongly correlated with ACE (adverse childhood experience) score. As smoking has become taboo, other stimulants became more popular (adult ADD). I'd expect something similar if we restricted alcohol without solving the problems that lead to dependency.
samcodes··on Are deep neural networks dramatically overfitted? (2019)
this is a good explanation of intrinsic dimension https://eng.uber.com/intrinsic-dimension/
samcodes··on Building a full-text search engine in 150 lines of Python code
if you use a library for Chinese/Japanese tokenization (which is harder because the lack of space), it seems like the rest of the code would work?
samcodes··on Lost in Thought: Psychological Risks of Meditation
having the laity meditate at all is, AFAIK, a pretty modern development
samcodes··on Lost in Thought: Psychological Risks of Meditation
Meditation is a pretty broad term encompassing many different activities/intentions (though they all look pretty similar from the outside). In the studies I’ve read on the adverse effects of meditation, the style has a major influence. Due to historical accidents, vipassana is a common style in the West - I find this mind blowing, since it is probably the most likely to cause adverse effects.

As a long time meditator, my experience with vipassana is that it is the hardcore path, for those willing to risk crashing and burning to get to enlightenment faster. Techniques like mettā, tonglen, or dzogchen seem to be ~5-10x less likely to be associated with a psychotic event - which at that point, seems like it could just be about prior history [1]. It's worth mentioning that Britton, the academic meditation critic in the article is a co-author of this paper.

[1] https://journals.plos.org/plosone/article?id=10.1371/journal...

samcodes··on Tweeting “Memphis” autolocks your Twitter account
it's possible to do NLP at scale much better than they do. they just don't care
samcodes··on The Database Inside Your Codebase
do you have a repo? this sounds cool
samcodes··on Busted retailers use bankruptcy to break leases by the thousands
"deep state" meaning... information you didn't know already?
samcodes··on Ask HN: What's the worst piece of software you use everyday?
I don’t understand how someone can say “this is the worst software I use daily” and then you say “you are wrong.” Maybe you use worse software than them? Also, you seem to implicitly default to comparing each piece of software to others in it's class; you’re grading on a curve. The parent comment is saying “of all software, these are the worst”, and you are saying “but other PM/VC/OS software is worse” which is different.

For example, git is the best version control software; it is also a disaster of a UX.

Your appraisal of Docker is also too generous, I honestly can’t tell if it’s sarcasm

samcodes··on This Blog Is Now Running on Solar Power
Not to nitpick, but wouldn’t Etherium Be the right cryptocurrency? I try to ignore it, but I remember that that’s the “smart contracts” one, so it could make the job contracts in such a way that if they are completed, payment is automatic or something?
samcodes··on Increase in delirium, rare brain inflammation and stroke linked to Covid-19
> the mask averse amongst us

Oh can we coin a term like this for drunk driving? You know, when it’s more convenient to drive home drunk than leave your car out? That’s just being taxi-averse

samcodes··on Teaching physics to neural networks removes 'chaos blindness'
They model a system which they know to be constrained by a closed-form equation called the Hamiltonian. They (cleverly, IMO) force the network’s predictions to be constrained by the Hamiltonian, by choosing the right output and loss function.

I don’t see a way to generalize this to the procedural rule-based systems you describe, unless they too are governed by a fairly simple continuous function Like the Hamiltonian.

I don’t know if it was “dramatic”, but it made me really happy.

samcodes··on Old Code Gets Younger Every Year
I think software engineering is depressingly, suboptimally stable. The space of all possible ways to write programs is so, so large and almost completely unexplored. Lisps, Hindley-Milner type systems, Cox, neural networks with autodifferentiation ... whenever we substantially depart from the local optima around C-like programming, we find cool shit.

However, the vast majority of programming is done to build nearly indistinguishable CRUD SaaS apps. If we could just spend half our time doing real, interesting exploration of programming-space to satisfy our curiosity, maybe we could all agree to build apps with a more boring tech stack. However, that would require a large scale change in incentives that is hard to imagine shy of a Space Race style event.

... or Jonathan Blow was right and C was more or less the global max, and everything else was a mistake. I really hope that isn’t the case.

samcodes··on Old Code Gets Younger Every Year
He’s saying it’s not a problem for the future, because that implies it’s not a problem now, which he asserts that it is. It’s humor
samcodes··on Minneapolis City Council members announce intent to disband police department
Part of me wants to ask “but who investigates the Inspector of the LECC?” But I’ve dealt with Elixir and I know that supervision trees rarely need to be very deep in practice
samcodes··on Emotionally Expressive Text to Speech
“Emotional load can reduce the requirement for semantic coherence.” - great insight
samcodes··on The new business of AI and how it’s different from traditional software
I think this is a good observation. One thing I’ve been thinking about is probabilistically evaluating traditional software. Every un-caught exception, for example, is usually a false negative when evaluating “did the code correctly handle the input?”

Not that ML code is bug-free. But it seems like most traditional software is probabilistically correct, despite not being thought of that way.

samcodes··on See Python, See Python Go, Go Python Go (2016)
First off, I totally agree. Not as easy as it should be to write an async web server in python. FastAPI is probably your best bet. I usually use Sanic. Easy to accidentally block though.

That said, it sounds like you’re serving a large model. No amount of async/await or goroutines can solve this problem. A non-blocking web server is a godsend for I/O-bound tasks, but a large model is just a deep call stack - lots of multiply, nonlinear function like RELu, then add, times a billion. This would still block, even if you had perfect async/await code.

I made some assumptions here, but if I’m right, the answer is “shrink your model” and/or “buy more compute”. Neither of which are easy. But if you’re trying to shrink a model, check out Distiller https://github.com/NervanaSystems/distiller

Edit: the restriction I talk about is for event-loop based servers using something like uvloop or asyncio under the hood. Maybe this restriction doesn’t hold for other concurrency modes.

samcodes··on An ant colony has memories its individual members don’t have (2019)
A simplified model of ants are Turing complete (the colony, not the ants) https://link.springer.com/chapter/10.1007/3-540-59496-5_343
samcodes··on Show HN: HuggingFace – Fast tokenization library for deep-learning NLP pipelines
Thanks! I hadn’t seen VAMPIRE! So stoked to see a new approach to topic modeling. SVD etc are very much a local max
samcodes··on Why the foundations of physics have not progressed for 40 years
Yeah, if the author of the parent comment is willing to put in work to get the understanding they claim to want, this is the way to go
samcodes··on Medications that change who we are
This is a funny comment on HN, where it is very easy, for me at least, to be so far out of my element that I have no clue what is being discussed, such as any post about hardware!
samcodes··on Medications that change who we are
I was on a large dose of gabapentin for anxiety for a few years. It felt similar to the flow of a beer, before the negative parts of the alcohol kicked in
samcodes··on U.S. alcohol-related deaths have doubled, study says
Partake, a Canadian brewery, makes an IPA that is the best non-alcoholic beer. Because all the grain carbs are converted to alcohol, when they remove the alcohol hey remove almost all the calories too. I don’t know if I could have stopped my 6 pack per day habit without pounding those.
samcodes··on U.S. alcohol-related deaths have doubled, study says
I thought the latest studies hypothesized that there was a hidden variable - social interaction. Moderate drinkers were more likely to have consistent social interaction, which is strongly correlated with positive outcomes - enough to cancel out the negative health effects from drinking.
samcodes··on U.S. alcohol-related deaths have doubled, study says
For me, it’s weddings, holidays, and funerals. The proper way to celebrate those (this is culturally relative, and I’m talking about whatever sub-culture I come from in the US) involves alcohol. Which sometimes makes quitting alcohol feel like cutting off your nose to spite your face.
samcodes··on U.S. alcohol-related deaths have doubled, study says
Whoa, great description of this dynamic. Is the desire to drink consistent, or does it vary? Does it vary with the cycles of healthy / unhealthy consumption, or with a different period?
samcodes··on Snowpack: Build a web application without a bundler
The tooling in JavaScript is fantastic. I don’t love much about JS, but I do Python now and boy are dependencies and packaging worse.
samcodes··on 13.3" full color ePaper display
I wish it worked more consistently. Maybe I’m just not smart enough, but sometimes triple clicking the side button works, other times it doesn’t.
Page 1 of 4Next →