HNHacker News
TopNewBestAskShowJobs

rectangletangle

813 karma · joined December 1, 2013

submissionscomments
rectangletangle··on A Code Glitch May Have Caused Errors in More Than a Hundred Published Studies
This really rings true for me. I've also found that looking for several "known" properties within a complex model's behavior to be an effective way of rooting out subtle bugs. If the model isn't keying in on the obvious, it hardly has a chance of keying in on subtle unknown relationships. I've even gone so far as to optimize hyperparameters based off context specific properties, e.g., hunting for the model that has the most coherent output behavior with regard to a range of inputs (assuming that outputs are expected to have continuous behavior).

https://sproutling.ai/blog/harvest-simulations?jm

https://sproutling.ai/blog/growth-simulations?jm

rectangletangle··on PyTorch Mobile
Being a little slower to release allows you to learn from other's mistakes. Python tends to follow this philosophy when adopting language features, they're usually not the first to introduce something, but when they do introduce it it tends to be very polished. For long term maintainability, and adoption this matters tremendously.
rectangletangle··on Principal Component Analysis
Agreed, there's something to be said for simple models that are "good enough," especially when their limitations are clear. k-NN also comes to mind.
rectangletangle··on Efficient GraphQL Queries in Ruby on Rails and Postgres
I ended up doing something very similar for Django's ORM years ago, before GraphQL really came into popularity.
rectangletangle··on Some tea bags may shed billions of microplastics per cup
Researching this it seems like PLA is also common. "Plastic" is a super vague term, and it seems like non-petroleum plastics are the norm for this application. One benefit is that these types of plastics readily biodegrade into lactic acid (which naturally occurs in many foods). From a health standpoint it seems like they could be safer than some petroleum based plastics. Would be interested to learn more from someone who knows this area better.

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

rectangletangle··on A Blue Collar Slob’s Introduction to the Rare Oakland Manzanita [video]
I like how he points out the texture of the bark. It's extremely smooth, and cool to the touch.

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

rectangletangle··on Birds Are Vanishing from North America
This is the brilliance of natural selection. If it were any less robust life would probably have already gone extinct. It's "easy" to devastate the ecosystem and wipe out say 90% of biodiversity, but that remaining 10% becomes increasingly difficult to root out, as you're increasingly dealing with the hardened survivors. The massive bust leaves open ample under exploited niches, which then spurs rapid disruptive selection, and then subsequent sympatric speciation. Long after humans are gone something will probably be thriving feasting on our garbage.
rectangletangle··on Python Is Eating the World
Solid points. There are a few common patterns that tend to slow Python down though.

For instance lists are dynamically allocated, so repeatedly appending to the list may cause it to reallocate.

  lst = []
  for i in range(10_000_000):
    lst.append(i)
Runs in ~1.67 seconds on my system, using 3.7 (this behavior is also generally true for older versions like Python 2).

However due to the leaky abstraction, you can force allocation all at once which speeds things up, albeit at the loss of clarity.

  length = 10_000_000
  lst = [None] * length
  for i in range(length):
    lst[i] = i
Runs in ~1.21 seconds.

However in these trivial cases Python offers more idiomatic approaches, which also perform better.

  lst = [i for i in range(10_000_000)]
Runs in ~0.44 seconds.

  lst = list(range(10_000_000))
Runs in ~0.22 seconds.

Strings behave similarly when comparing the join method to incremental appending.

  string = ''
  for _ in range(10_000_000):
    string += 'a'
Is slower than the more idiomatic join/comprehension.

  string = ''.join('a' for _ in range(10_000_000))
Or even more concisely:

  string = 'a' * 10_000_000
Still the trade-off is worth the versatility most of the time IMO. And like you pointed out you can always drop down to C if necessary.
rectangletangle··on Python Is Eating the World
I wish the boolean `?` operator/sugar made its way into Python somehow. I always thought that was pretty cool.
rectangletangle··on Python Is Eating the World
The clean minimal syntax has always been my favorite part of Python. I'm really really glad that Python 3 didn't go the way of Perl 6, It was very close there for a while.

Also the ellipsis literal `...`, never need to use `pass`.

rectangletangle··on Python Is Eating the World
>much faster than C++

I've been writing Python for over a decade and I find this a bit surprising (not saying you're wrong). Python's strong suit was always speed of productivity over runtime speed IMO.

rectangletangle··on How Long Before These Salmon Are Gone? ‘Maybe 20 Years’
Oddly enough this year was excellent for King Salmon in California, one of our best years ever in fact (going back 50+ years). We suspect it was primarily due to the drought tapering off, so the rivers/lakes were more full than usual. Salmon are r selected, so large fluctuations in the population are expected. In contrast the drought years were really really poor.
rectangletangle··on Super Wood (2018)
I wish this article had some photos, particularly of the transparent wood.
rectangletangle··on ORMs Are Backwards
The beauty of an ORM is that an ORM backend can be adapted to your proposed system. Or at least some subset of the ORM's spec can be. You can get a nice language specific API for common patterns, migrations, and the power to drop down to system specific escaped SQL queries when necessary. You get a layer of independence, in case you really want to switch to another backend for some reason.
rectangletangle··on ORMs Are Backwards
In my experience Django's migrations are really solid, assuming you're using the PG or Sqlite backends. This is especially true if you're working from a new Django project, and not a "legacy system" that wasn't initially built for Django.
rectangletangle··on Ask HN: Who wants to be hired? (September 2019)
Location: San Luis Obispo, CA

Remote: Yes

Willing to relocate: Yes (Specifically to the Bay Area/SF)

Technologies: Python 3, Node.js, React, Redux, Django, ES6, PostgreSQL, TensorFlow, Scikit-learn, Docker

Résumé/CV: https://s3-us-west-2.amazonaws.com/rectangle-tangle-public/c...

(Full CV available upon request, also the link will automatically expire in 6 months)

Email: rectangle~tangle~@~gmail~.~com (No tildes)

Senior Full Stack Engineer with experience at several early stage startups. I specialize in applied NLP/ML technologies.

rectangletangle··on Evidence for superconductivity above 260 K at megabar pressures (2018)
I'd say the topic even exaggerates this response, since a practical superconductor would be revolutionary.
rectangletangle··on Show HN: Face Generator
Reminds me of some of the characters from the old Moomins cartoon. https://www.dw.com/image/47520360_303.jpg
rectangletangle··on Engineers develop bone-like metal foam that can be 'healed' at room temperature
This is interesting, I'm curious what applications this would be useful for. They hint at some potential uses toward the end, but don't elaborate much.

Presumably it'd be useful in applications where the parts would normally fail regularly.

rectangletangle··on Exploring Weight Agnostic Neural Networks
Ah, in that sense it's almost certainly more efficient. Biological selection is undirected so progress toward the goal happens stochastically, so slow, but then sometimes fast.
rectangletangle··on Exploring Weight Agnostic Neural Networks
>Unless I see a mathematical proof that evolutionary algorithms are as efficient as RM AD, I see little future in it, and apparently neither did biology since it decided to create brains.

In the biological context the complexity is shifted away from the actual selection algorithm and onto the "scoring function." Although the filter of reproduction is relatively simple [1], the reason why the organism was fit and could ultimately reproduce is very complex. The brain's "topology" is the result of selection pressure favoring adaptations that improve fitness by dynamically adapting to relevant patterns found in the environment. The brain attempts to accurately model important aspects of the complex environment it's challenged with to increase fitness.

[1] Nothing in biology is ever actually simple, even though individuals undergo fitness based scoring, the actual notion of individual is arbitrary. In the case of bees most of the individual bees in the colony are sterile, which is obviously bad for fitness of the "individual." However a few individuals reproduce, so all the sterile worker's fitness is shifted onto the queen/drones through the concept of inclusive fitness. This indirect selection also applies to humans, who undergo inclusive fitness through their siblings. This can even be generalized to your individual cells/organs which function as a colony supporting the gonads which actually undergo direct selective pressure.

rectangletangle··on Stripe's API was down
If you haven't broken a critical system at least once, you haven't written enough production code. Everyone appreciates the other 99.993207% of the time where the system functions flawlessly. I look forward to reading the postmortem.
rectangletangle··on What If Life Did Not Originate on Earth?
>A life-form is very expensive (need to eat and breath)

Not necessarily, many organisms can undergo cryptobiosis, where all metabolic activity ceases, and then restarts when conditions are appropriate (sometimes decades later).

rectangletangle··on What If Life Did Not Originate on Earth?
This is an interesting thought. Plants are actually very animated at their own timescale, adapting to their environment through phenotypic plasticity. However this happens far too slow for humans to notice without a time lapse.
rectangletangle··on What If Life Did Not Originate on Earth?
>why did only the DNA-based lifeform(s) make it here?

Possibly genetic drift. The odds of life making a successful journey to earth seem very poor, so maybe it was a small population that only made it here once, and then began to speciate.

rectangletangle··on What If Life Did Not Originate on Earth?
This is true, but if that did happen presumably we could find some evidence for it, since it would be a relatively common occurrence during the period where earth was capable of abiogenesis. Because if it occurred at least twice, it probably happened many more times.

The counterpoint is that the fossil record is very incomplete when going that far back, seeing as tectonic subduction literally wipes the slate clean.

rectangletangle··on What If Life Did Not Originate on Earth?
An interesting phenomenon I rarely see brought up in support of panspermia is the apparent universality of the genetic code. The fact that all known life shares a common genetic structure implies a common ancestor. The lack of competing genetic codes could be interpreted to imply that life only started on earth once, or that it only made it to earth once. Natural selection is a constant force, presumably new genetic codes could offer an advantage, e.g., robustness against damaging mutation, resulting in multiple competing genetic codes.

The notion of abiogenesis occurring only once on earth seems improbable considering complex organs like eyes have evolved independently several different times. Or the fact that convergent evolution "reinvents" similar species in response to similar selective pressures. Selective pressures constantly "push" life in the same directions, so it would seem that whatever forces gave rise to life would have happened so repeatedly, but there doesn't seem to be any evidence for that.

A clean explanation for this would be that life didn't start on earth, and earth may have never had the right conditions to originate life, hence no competing genetic codes. But it was still hospitable enough to maintain life, so one universal genetic code flourishes with no emergent competition.

rectangletangle··on How to write idempotent Bash scripts
I've always heard "deterministic" or "reproducible," curious if the term "hermetic" is somehow different in this context.
rectangletangle··on ‘Knitting Is Coding’ and Yarn Is Programmable in This Physics Lab
Computers and looms have always had a close-knit history (sorry I had to do it). During the industrial revolution there was a ton of innovation in looms, because producing fabric was very labor intensive. These early industrial looms are just sophisticated mechanical computers.
rectangletangle··on Amazon must remove toxic school supplies, kids’ jewelry from US marketplace
They're probably using the cadmium for red paint/dye.

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

← PreviousPage 2 of 12Next →