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

We have a generous hardware budget. Some people have used it for home office stuff but most choose to just buy it with their own money so they can keep it if they were to leave or use it outside work.

Some people get noise cancelling headphones or monitors with their budget.

comment 6y ago · link · parent

Coffee is rich in phenols and catechols, molecules with a strong electron reduction potential. Metals are more easily absorbed in the cation (eg Fe+2) state. Food and drink is a primary source of heavy metals for most humans. Reducing agents in the diet would reduce e.g. cadmium and mercury from +2 to the less available metallic state, where it would be excreted.

comment 6y ago · link · parent

Phenols/catechols in general tend to reduce (in the electron sense) and complex with metals. This can be anti-nutrious if binding iron or calcium, or beneficial, if binding heavy metals.

comment 6y ago · link · parent

Except not exactly, because for some of us fast metabolisers, half life of caffeine can be less than 4h, meaning by fasting from 1600 to 0800, you are down to trace levels, and the body is reversing its tolerance.

I've done informal tests and steady state caffeine every day for a month is not the same as abstaining. You alleles, and hence mileage, may vary.

comment 6y ago · link · parent

Is there anything like "terraform provider for bare metal"? Would be soo convenient to just go from full nuke and pave to functional dev machine with a single config repo.

comment 6y ago · link · parent

Totally agree. I have found that all of the pain points OP article mentions, are things that still crop up in monoliths, and by hardening against them, the app is more antifragile. Ex:

Fragile: writing fault tolerant (because the endpoint is unreliable) hedges against the case when unforseen conditions throw a spanner into the works.

Async/Laggy: some operations just take longer. Being able to gracefully route control flow around blockages improves performance.

Pipes: I've found it's helpful to have ser/de interfaces throughout the program, as it forces you to use immutable data structures - aka functional programming. This helps reduce state space.

Put together, I find having various "shear lines" in a monolith codebase, where I could split into a service if I wanted, greatly improves robustness.

comment 6y ago · link · parent

+1 for DVC. Setting up the backing store can be some extra work if you are doing that yourself, but after that it's a breeze.

What do you use for the backing store?

Git-lfs has been a pain in my seat since my first use of it. Most of the issues stem from the pointer files that have to be filtered/smudged pre/post commit.

Haven't used git-annex myself, but I have heard from coworkers that cross-OS is a pain.

comment 6y ago · link · parent

unpinterested is an extension which simply adds -site:pinterest to image searches. I don't think it'd be hard to do something similar with a custom list.

comment 6y ago · link · parent

You can use sccache with Cmake easily. On mobile so I can only give you breadcrumbs.

1. Set up sccache backing server (I use docker redis) 2. Export sccache config. Set SCCACHE_REDIS to a Redis url in format redis://[:<passwd>@]<hostname>[:port][/<db>]

Set CMAKE_<LANG>_COMPILER_LAUNCHER (cc, cxx) to sccache.

comment 6y ago · link · parent

Just set up a pihole/dnsmasq. You'll need to point that at your desired DNS (I use 1.1.1.1, but if I were more paranoid I'd tunnel it)

comment 6y ago · link · parent

This is a really good summary! A few months back I was hunting for an answer as to whether url/query parameters were encrypted with HTTPS. The answer space was strangely sparse for something so critical.

comment 6y ago · link · parent

Said like a person who has never grappled with one or multiple chronic conditions.

comment 6y ago · link · parent

Also, I think the key point to reflect on here, Marcus had the domain knowledge and intuition to know where to start hacking literally within minutes/hours of plugging back in and getting the source.

comment 6y ago · link · parent

Very cool finding that IMHO goes beyond coincidence. Some are saying the authors compared "two completely different plots" - this is a strange thing to say. Both plots have an X axis of wavelength, that's obviously the same. There's some ambiguity of the units on the Y axis, since the BB is in W/m^3 while histogram is unitless.

However it's really not a stretch to consider the BB as some relative intensity. So it's totally reasonable to overlay these plots.

A possible way to reconcile this would be to model some gas mixture composition and determine the aggregate spectra of that, and that would be in W/m^3.

E: downvote(s), do you have a rebuttal, or just think I'm wrong?

comment 6y ago · link · parent

What are the "two plots of completely different things?" You have two plots of intensity vs wavelength, where one is spectral intensity, and the other is a histogram binning.

On its face, there's zero reason why these plots line up as well as they do, this goes beyond conincidence.

comment 6y ago · link · parent

This is excellent! The one thing I really like is the annotations. Been looking for a way to embed k:v attributes in a parseable markdown, for making metadata of codebases and datasets.

How are URL's handled? One solution would be to just reuse Markdown's [link](text) notation, as a subset of annotations. That would be the least-mental-friction route for markdown users.

comment 6y ago · link · parent

I love that there are grammatical rules in how you can and can't infix expletives.

https://m.youtube.com/watch?v=dt22yWYX64w

comment 6y ago · link · parent

That's what I meant with "unless it has type hints" but thanks for the link :)

Blue ocean python I pretty much start with hints and interface definitions, the logic follows. Helps me through writing the logic when I have autocompletion of methods.

comment 6y ago · link · parent

This is going straight into the toolkit. The main thing that keeps me from doing more inline python is all of the printing boilerplate.

Well, two things, the second thing being performance.

How's the startup time? I find it hard to get python utils under a few hundred ms just to spin up.

comment 6y ago · link · parent

There as basically two types of ontological relations: membership (X is a Y) and attribute (W has a Z).

Metaphors are an interesting abstration because they are like a functor from one ontology to another.

comment 6y ago · link · parent

Woah. There's something deep about the way we describe ideas/ingenuity.

> ideas as cutting instruments: “that’s an incisive idea”, “that cuts right to the heart of the matter”, “he’s sharp“

Ideas as fire: bright idea, that's lit, spark of inspiration, burning passion.

Sharp rock. Fire. Earliest inventions.

Also, data is food (early connection to resources):

The algo barfs on ill-formatted csvs. The database is full.

Arguably, pipes - mode of conveyance of water, sustainer of life.

comment 6y ago · link · parent

Ergonomics.

You. Yes, you. Sit up straight. I know you aren't. Take a deep breath, belly breath. Try to let some of the tension out. There, much better :)

Also, TabNine, with a strong IDE and a good type system. The code practically writes itself. You can focus on higher level things.

Testing. Driven. Development. Once you define your goals, it's so much easier to hit them, both cybernetically and psychologically.

tabnine.com/faq

comment 6y ago · link · parent

It also creates documentation/repeatable processes.

Also, learning, though that can be hard to justify.

comment 6y ago · link · parent

Used to love Python. Now, unless it has type hints, not so much. Used to hate static types, or at least I thought I did. Really, I just hated C++ and Java. Go is Bae, trying to learn some rust.

Computers are rigid. The more rigid the lang you talk to them, the less you get bitten.

Untyped python, bash, javascript, just not worth it imho.

comment 6y ago · link · parent

Was about to complain you can't google them, but I tried it and it worked. Huh. I guess you can google symbols now, even traditionally escapey-ones. News to me.

mentalModel.update().

The query `python @` fails pretty hard though.

comment 6y ago · link · parent

We have a pretty optimal layout, imho. We have several "pods" which are an open 30'x30'x14' room that opens to the main corridor, which get divided into up to 7 cubes via 7' dividers (very modern and colorful, not the vertical carpets of yore). The center usually has whiteboards and chairs for collabs.

So you get interaction with coworkers, but can bury yourself in work readily (also everyone has noise cancelling headphones).

Kinda miss it, it's way nicer than my home office.

There's definitely way less structure now and I am suffering for it.

comment 6y ago · link · parent

> That is the most aggressive form of marketing I have ever seen for a programming language

_Oracle has entered the chat_

Yeah the Rust hype machine is a bit zealous, but I don't think it's entirely unfounded. Rust genuinely solves (or tries way better to that past langs) many problems that plague programmers and computer systems.

I myself have barely used it and yet despite the steep learning curve (boy is it steep) I already enjoy it way more than C++ (let alone java, ick), and I'm sure it'll be more fun once I grok ownership.

Go is more fun though ;)

comment 6y ago · link · parent

Many options

https://repl.it/languages/go

https://github.com/d5/tengo

https://github.com/motemen/gore

Also you kinda don't need a repl as much with go (coming from a python background and constantly repl-dev-ing), especially with an IDE. Everything is so clear and type-safe there is little divide between the architecture in my mind and the code's behavior.

comment 6y ago · link · parent

Downvote because 5 minutes is absurd as a STW GC time, for ANY gc language. Heck, I wouldn't accept 5 minute lag in a python prototype.

Even in the dewey eyed early years, Go saw STW latency in the hundreds of milliseconds. By 1.8 it's in the hundreds of microseconds.

Your hard-real-time is out the window as soon as routing and UDP is involved. The intent is "real time bounded by the amount of time it would take doctors to react to a code blue (heart issue/failure". One second of reaction (thousands of gc's, dozens of health checks, a near eternity in program time) isn't going to make a difference when human reaction time latency is hundreds of milliseconds.

Call it "live streaming" if that sounds more objective, but conceptually if the clients (humans) don't perceive a difference in state, it's real time (to them).

Save the milliseconds-hard-real-time talk for rockets and cars.

https://blog.golang.org/ismmkeynote

https://www.reddit.com/r/golang/comments/aetba6/gcs_stw_paus...

comment 6y ago · link · parent

This is how Go does slices, though they are 3 fields:

    type slice struct {
        zerothElement *type
        len int
        cap int
    }
Though I suspect under the hood the len and cap are ordered first.

If it's good enough for C greybeard Ken Thompson and unix hacker Rob Pike, its good enough for me.

In fact I've looked for a port of go-style slices to C and haven't found one. Maybe people think sds is good enough?

1
737475
85