Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions

Submissions

comment 6y ago · link · parent

The censor is only on the picture.

Clearly you've never been called 20 times a day for 2 weeks straight during looming deadlines about Extended Car Warranties!

comment 6y ago · link · parent

That's a cool theory. The brain tries pretty hard to maintain criticality (hard as in, disruptions cause it to return to that setpoint quickly). It's possible that inability to recover or maintain optimal processing criticality can lead to corruption of the connectome.

https://www.sciencedaily.com/releases/2019/10/191007113314.h...

comment 6y ago · link · parent

Ritalin (methylphenidate in general) is a rough one, cause of its stupidly short half life (as short as 90min in some). On top of that, most extended release systems for it are garbage. Sure on average, the blood plasma level graph is smooth, but you look at individual profiles, and some individuals have way higher peak amplitudes. In my experience, MPH, even the ER/concerta stuff, thrashes your mental state too much to be productive. I actually had more stability dosing slivers of MPH IR every hour, but man, that's tedious, it's easy to miss, and once you drop, it's not the same, even if you get back to therapeutic range.

comment 6y ago · link · parent

Add ADHD to that list. I and a few friends with similar meatware stacks have found it very effective. I don't have hard data, but after one 3 month period I found a significant correlation with micro days and hours worked, number of LOC committed, and quality of that code.

I think anyone neurodivergent stands to benefit, and if they are not, well, sounds like they have a decent handle on life already.

> Breaking this cycle lets you have some relief

+1

Edit: That's not to say people living a content life would not benefit from doses, micro or otherwise. It's just probably much harder to detect in a clinical setting.

comment 6y ago · link · parent

Mostly agree, but I still think we should be using shorter variable names and put all that information and context elsewhere.

Opinion: It's (nigh) 2020. If you aren't using an editor which supports inspection and jump-to-declaration, you are doing it wrong. Similarly, if you are using a dynamic language and not leveraging type hinting or similar, you are doing it wrong. Where "doing it wrong" == doing a disservice to yourself, your coworkers, and future you.

We have so much powerful metadata available right now. So with the examples above, you should be able to focus on `employeeRoles`, hit `hotkey`, and see a gist of the types, key format, what to do with that thing, and why it's there.

Names should be unique and memorable enough that once you form that mental schema, you can quickly scan through code and understand its role in the greater machinations, without too much mental re-parsing.

comment 6y ago · link · parent

GANs tend to leave a very distinctive kind of artifact which is hard to describe but I think anyone who goes through a lot of GAN imagery knows what I am talking about. It's a particular kind of distortion which is a liquidy psychedelic weirdness, that you don't really see in other media fakery.

If you are interested, media forensics is an entire field about this sort of thing.

comment 6y ago · link · parent

I use MessageEase keyboard on my phone and you can disable the letters and just have blank buttons. I love people's reactions when they see me thumb pecking at this inscrutable black grid, it does feel like magic.

comment 6y ago · link · parent

That started off the most terrifying dystopia I had ever read. Now it's incredibly inspiring, but alas I have to call it a night at chapter 6.

This should be required reading.

comment 6y ago · link · parent

How do you do the rendering? Who (process-wise) is responsible for converting bytes to pixels? How do users on social media put in their name? How is it stored? How do users get urls with specific usernames?

Now take all that and multiply by the complexity of world languages, many which don't even map to one glyph == one morpheme. The ol' apple message crash bug was due to the property of some Arabic not being monotonic in rendering space vs string length.

I think we could have skipped utf8 and just gone to 4byte runes. But even then, that would not have avoided the above bug.

Utf16 is a hot mess though, worst of all worlds.

comment 6y ago · link · parent

https://github.com/docker-slim/docker-slim/blob/master/inter...

    func fixPy3CacheFile(src, dst string) error {
    ...}
Yeahhh, that is your classic example of "things you definitely DO want an explanation comment for"

comment 6y ago · link · parent

Clearly you've never deployed a 30 GB image, where 26 GB is the final, application building layer. And that's with staged building and working to minimize the size of overlay layers, redundancy, etc. Okay, so that might be a particularly pathological case, but still, resources are resources. I'm fine with a multi-gig machine learning image where the model and most of the heavy stuff is in a middle layer and the only redeploy is a few MB of python code. But that architecture isn't always easy, either.

comment 6y ago · link · parent

I'm a developer with a strong math background, very security-minded, with experience using cryptocurrencies, pgp/gpg, privacy tools, etc.

I still would not be able to evaluate any sort of crypto program and certify its integrity, nor find any (save for the most eggregious) flaws. Even then, I have brought up questions in code reviews of "this seems to be flawed" only to learn "technically yes, but we have to do such gymnastics because of constraints xyz".

I, too, was big on the "blockchain is gonna make e-voting possible! Ra ra ra!" hype train for a while, but eventually wisened up to my own naivety.

I think paper is great because it's both proof of work (it had to be printed/written/modified) and proof of stake (e,g. I possess it and I can attest to its chain of custody), with zero lines of code!

comment 6y ago · link · parent

This answers a long-standing question I have had in the back of my mind: Why aren't oral vaccines more common?

I imagine it takes a more aggresive formulation to be effective orally, whereas injection is a straight shot into the fray of the immune system's war on pathongens. These more active forms seem to raise the risk of mutation to active virulence.

comment 6y ago · link · parent

Except you have things like `sed` and `cut` and `cat`, not `lpd` which solely exists to add leftwise filler characters. Ergonomics of those tools nonwithstanding, they are simple but they aren't TOO simple.

Left-pad is IMHO "too simple". Packages on the median should be in a 1-2 pizza team effort with some ongoing maintenance, even if only a few pizzas a year. Left-pad is like, 2 pizzas and a weekend.

(were it not for string.prototype methods) a viable package would be something on the order of Python's str.format(). Can left pad and right pad!

comment 6y ago · link · parent

Npm seems to lack, in the context of the article, the ecosystem and community aspect. It's all like herding cats. Case in point, leftpad.

* > as the dependencies of a project approach infinity, the odds of two branches of a dependency tree wanting to rely on two different versions of the same library approach 100% *

With experience, I've found that this is precisely the case, with bounds much, much smaller than infinity. The ersatz standard lib can't even standardize, there's underscore and lodash. I think eventually the community will Ostwalt ripen in a sense, small packages will dissolve by attrition and big ones will grow. But the argument is strong for simply decreasing n = number of discrete packages.

comment 6y ago · link · parent

Glass is pretty inert, full stop. It would depend on the voxel size but I imagine as long as you have more than a few hundered atoms per voxel/bit you will have survivability on the order of millenia, even in high radiation environments. Someone would have to do the nuclear cross section calculations to get a real bit error rate but glass is very tough stuff.

comment 6y ago · link · parent

I feel like this is the crux of the matter. You could easily get 32 people on this site to volunteer 1 TB each, if it were just cold storage. However, making those resources accessible and searchable (with all the pitfalls of compliance, uptime, legality, etc) is a totally different ballgame.

Encrypted shards partially solves this, but then you hit the quandry of "But what if I have a shard of something illegal or undesired enough to upset the wrong people?" which has not been thoroughly tested in our legal system.

comment 7y ago · link · parent

My coworker is a fan of:

  try: 
    something() # that throws nonfatal errors frequently
  except:
    pass

"it saves time in development" they say. Good luck if something in that (non trivial) function call breaks.

Ugh.

Don't be like that.

If you don't know the precise error, heres the solution (in python):

  except Exception as exc:
    log("{}: {}".format(type(exc).__name__, exc))
Bingo, you now know what to catch. Catch that error, move your broad exception down (or remove if you can)

comment 7y ago · link · parent

That's why the author suggests peridiodic anchors, like an air mattress. As other commenters have pointed out, you don't want the structure to deflate in the event of decomp, so a strut which is useful secondarily in compression is useful here.

Basal fiber is about 3GPa tensile, call it a MoS of 6 for a neat 500MPa working strength.

If you plug int wolfram alpha `1 atmosphere * 1 square meter / 500 MPa` you get 2 cm^2 of support (tethering) per sq m of roof. That's reasonable.

But here's the rub: compressive strength lags tensile strength. Even granite is a mere 130 MPa. So even a strut which has some compression resiliance is not gonna be enough to fully abate a collapse. So it's very likely a Martian structure would have some arc to it, as it both benefits tension under nominal operation and some compression in failure mode, at least long enough to keep pressure from dropping too low.

I imagine rip-stop at all sorts of scales will be implemented. It's not gonna be like an inflatable golf dome.

https://www.engineeringtoolbox.com/compression-tension-stren...

https://en.m.wikipedia.org/wiki/Ultimate_tensile_strength

comment 7y ago · link · parent

It's not not true though. Climate change is absolutely an existential risk. Maybe it would not be on it's own, but we have nukes. Even a "small" nuclear skirmish could dramatically destabilize all of human economics.

Perhaps the framing needs tweaking. It is inaccurate to say "if we don't fix climate change, it will end humanity". But "unmitigated climate change could spell the end of the world as we know it. Do you like the world as it currently is, or do you wanna roll the dice and risk apocalypse/Mad Max/ etc?" is completely plausible.

Is there a semantic and ontological difference between "er'rybody gonna die!" and "[almost] er'rybody might die!"? Of course. Is there a difference in terms of expectation value of human quality of life in the future? Not a very big one if you ask me.

comment 7y ago · link · parent

This is pretty cool! I really like that dates (and timezone info) are first class types. Often neglected, time ser/de has been a monkeywrench in many a project.

Protobufs are neat but `protoc` is an absolute nightmare. I would warn against going down the path of transpiling to lang-specific message files if at all possible (I don't think you are taking that approach, but github freezes my phone browser, I'll look more on my dev machine)

Great stuff! I would love to see this get more traction. Interchange formats are a classic victim of critical mass necessity.

comment 7y ago · link · parent

I think this is the direction things are heading. Currently, I use yaml for tons of configs and the like because it's super easy to modify. I use jq to process because jq is the bee's knees. There is a yq out there which can read most config formats, but it doesn't support the full jq syntax, so instead I pipe everything through `yq read -j -` to convert to json and then `| jq 'query'`. works a treat.

I can see with a few more small parts an application which persists as bson, streams / tempfile / and/or mmaps to yaml/hcl/whatever you like, opens that in your editor of choice, and translates back to bson.

comment 7y ago · link · parent

Have you looked at reversible computing? The ideas are only vague in my mind at the moment, but the fragments are there. Disclaimer: out of my wheelhouse. Any conditional statement will throw some information away, "knowing" a==b means provably you have less complexity. Not a good look for encryption.

But instead let's say you have some register which gets rotated/xor'd in some way based on the relationship of a to b.

I don't think you can do branching logic though.

comment 7y ago · link · parent

My current mayhem is containerizing an object detector pipeline/system with dozens of gigabytes of dependencies. The main dev has pulled in a library that makes opencv look like small potatoes, just to be able to use a whopping two functions. Apart from the misery that is a 4 hour container build every time something breaks, someone upstream broke my implementation (python 2, because ROS, ugh) with a casual '@' for matrix multiplication.

Yeah I love DRY and code reuse as much as the next guy, but sometimes copypasta makes sense.

I will say go's nature and/or culture make grafting in functions a lot easier.

comment 7y ago · link · parent

> Would it be absurd for the crosswalk to know roughly how many people are at it, then broadcast this to the car

Yes, completely absurd. For one, many places are too sparse, poor, or unstandardized for this to be remotely economical. Two, people often don't cross at crosswalks (jaywalking). Level 5 AV is a thing where 99% coverage isn't good enough. You need a lot of nines.

That's why many think lidar systems are a crutch. If lidar can't work in snow or heavy rain (at least 1-2% of days in the north), then you need fallback which must still be >99% as effective to avoid incidents. But then why not just use the fallback?

Generating data? Sure. But for actual use in the data pipeline? Makes you rely on an ultimately untenable solution.

comment 7y ago · link · parent

Yes, if you use the FFT or any discrete FT, you can perfectly recreate the signal up to the Nyquist frequency. To perfectly recreate the whole signal, you'd need infinite Fourier coefficients.

comment 7y ago · link · parent

Exactly this. The speaker's claim to fame is building a game from scratch. He relies on (based on his episode guide titles) Windows, C++, DirectSound, OpenGL, just to name a few, not to mention human interface devices, to achieve this in a remotely reasonable timeframe.

Yes, he's got a point about over-relying on layers of abstraction, but that abstraction was written with untold millions of dev-hours across thousands of organizational structures and independent individuals. The only way to get pieces of such disparate pedigree to operate together is abstraction and APIs. You have to bottleneck and standardize complexity to logical boundaries or else everyone ends up rewriting their OS to ship with their game. A standardized ISA wouldn't fix this because you still need standardized OS ABIs, hardware wire protocols, network protocols, media write protocols.

His argument boils down to "get all engineers to agree upon an ISA, OS, SoC, hardware interface". As a start, he suggests "Simplify the NIC, SATA, USB and video interface". Yeah, ok, I'll believe that can happen when engineers agree upon bike shed colors reliably.

When you're basically the only person in the stack, it's easy to naively say "just standardize everything!" but as anyone who has been to any organizational meetings knows, getting humans to agree on ANYTHING is an involved process.

comment 7y ago · link · parent

That does not factor in genetic predisposition to sensitivity to the circadian stimulating effects of blue light.

Some people aren't much affected by screen time at night, and some people can readily get up before dawn. I for one have to be very careful to limit my exposure at night, and waking up before sunrise (artificial or natural) is excruciating. I have been diagnosed with DPSD. I vastly prefer to go to bed and wake up later than average

comment 7y ago · link · parent

I remember the sheer awe when I first learned there was a huge open web outside of AOL. I'm sure people nowadays are aware of the rest of the web, but if the draw is minimal, they will likely get stuck in the same loops of well-trodden space.

comment 7y ago · link · parent

No problem. At the time I was particularly sloppy with my terminology and that didn't help discourse much.
1
787980
85