Better HN
topnewbestaskshowjobs
Log inSign up

kortex

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

Submissions

comment 3y ago · link · parent

I've never been wined and dined by Intellij. I just find their product very comfortable. It's always "just worked" out of the box for me. VS code I've tried a few times and it always takes a bunch of fiddling.

Less feature-ful text editors like sublime and vim just don't do it for me.

comment 3y ago · link · parent

Wheelchair bound would be capable of some workouts, but not all body weight.

Actually what would be more useful than pre-selecting body weight, would be a setting to mark certain groups/muscles/appendages as injured, missing, disabled, or weakened.

comment 3y ago · link · parent

Probably all of them on average then, but especially big groups, core, and erector muscles. Most humans who have to hit the gym in order to stay fit spend too much time sedentary. They need back and core strength to prevent back issues later in life, glute, hamstring, quad and calf to keep legs strong and mitigate knees doing weird things.

Most of aforementioned humans also likely need to move heavy objects from time to time without throwing out their back.

I read once that deadlifts are the single best exercise you can do for desk bod. If I only have 10 minutes to work out, I do deadlifts. Next I try to get abs, obliques, back stabilizers, etc., then some squats and leg work. I do chin/pull/push ups between the core and leg stuff.

comment 3y ago · link · parent

Conversely, I'm a novely-a-holic and love trying out new, different, and obscure things. I also don't always go to the same gyms (there's about 3 ymca's equidistant to me, and they have different weight rooms with different machines and popularity). I also know some exercises but not a ton of variety. So it's hugely beneficial for me to see the different options available.

comment 3y ago · link · parent

I worked for a few years for a contractor and we did several DARPA projects.

Pros: work on really exciting stuff. I worked on cutting edge squad-embedded robotics platforms and media forensics to fight fake news. Got to travel a bit for demos. It's very rewarding to know your work is making a real impact.

Cons: they don't call it DARPA-hard for nothing. Timelines are tight, the problems are research heavy with no guaranteed results. I did a lot of work bridging grad student quality code to production systems, which is its own kind of hell.

comment 3y ago · link · parent

> Yeah but jupyter notebooks suck at providing reproducible data science.

Why? I have no problem with reproducibility when I use a little bit of discipline.

Your workflow does indeed sound nice but also sounds like it involves way more tooling and institutional knowledge. Anywhere I can learn more about it or see the scripts you use?

comment 3y ago · link · parent

It sounds like you are using the tool wrong. Jupyter notebooks are strictly superior to anything else (namely: code only, spreadsheets, matlab/octave) at their primary use case, which is interactive data science (writing code to manipulate some data, while actively revising the code, or sharing the results of that code with others).

Nothing even comes close. There's a reason it's dominant in the data science field.

Your workflow works for you but the jupyter workflow works for millions of students, data scientists, and even developers. Heck I even know all the ways to avoid jupyter, and I still use it often, because it's so convenient.

comment 3y ago · link · parent

Wow, no mention of DVC (http://www.dvc.org)? That has been invaluable for data scientist workflows.

I definitely do like to strip notebooks and make them run-idempotent to the best of my ability, but sometimes you just need stateful notebooks. And since .ipynb are technically json but in reality act more like a binary file format (with respect to diffing), DVC is the ideal tool to store them. Don't get me started on git annex or LFS, both of those took years off my life due to stress of using them and them bugging out.

Also I am hardly a fan of XML, but does anyone feel like notebook files would have been a near-ideal use-case of it? It's literally a collection of markup. The fact that json was chosen over xml I think is somewhat damning of xml as an application data storage format. I think xml is perfectly cromulent as a write-once-read-many presentation format or rendering target (html, svg, GeniCam api info), but it seems to flounder in virtually every other domain it's been shoehorned into, with the exception of office application formats.

Actually, downthread there is a link to a jupyer enhancement proposal for a .nb.md markdown based format. I think this is great. One theme I keep coming across in my computer science journey is that formats which have mandatory closing endcaps are kind of a PITA. It seems the stream-of-containers (with state machines as needed) is all-around better. JSON-LD is better than JSON, streaming video formats are better than ones that stick metadata at the end, zip is... an eldritch horror, etc.

comment 3y ago · link · parent

That to me sounds like a difference of degree or heap problem, rather than a categorically different condition.

Sure, welding back on a hardpoint that broke off a plow is concrete and obvious (maybe that's analogous to fixing a broken dependency that got renamed), but there are other fixes that definitely fall under "I don't know why it works but it works". I've had electrical gremlins and fixed them by grounding something that looked like it ought to be grounded, and was grounded when I tested for continuity, but nonetheless was acting floaty. It was probably a loose connection elsewhere in the system, but I didn't know that for sure, nor do I even know that it was the problem in the first place.

Software definitely reaches insane depths of complexity, but again, if you can dig down and understand the abstraction well enough to attempt a fix, and the problem goes away, isn't that good enough? The real difference is mechanical systems typically only have a few layers of abstraction, while software has dozens to thousands of layers of abstraction.

comment 3y ago · link · parent

It is AI; artificial intelligence has been around since the 60s. It's not AGI, and no one (credible) is claiming LLMs are AGI.

comment 3y ago · link · parent

Have you met farmers? They will readily tear apart their equipment to fix an issue or modify the tool to make them more ergonomic. This trend of massive multi-million dollar John Deere combine harvesters with DRM widgets that you need to take to a specialized tech to get fixed, is a relatively modern one, and one detested by virtually every farmer.

This was and is quite common in any blue-collar field where works don't always have the money or time for a brand new jawn every time something goes wrong.

I love estate/yard/garage/barn sales and going through the tools and reading the tales they tell from their wear patterns, field repairs, revisions, and hacks from their owner.

Case in point, here's a tool which has gotten multiple leases on life through modifications. https://youtube.com/watch?v=oTA513ttrbQ

comment 3y ago · link · parent

Yep. They ship pretty fast too (though I bet they are swamped atm). Just don't try to order the ingredients for flash powder unless you have the requisite licenses. Basically, avoid fine mesh aluminum powder along with oxidizers. Apparently magnalium and perchlorate is fine to order.

comment 3y ago · link · parent

> All of this is mildly depressing though. It feels as though we are just our brains (maybe obviously), but just that we're the strange effects of the functions of a non-magical/soul-less organ in our heads primarily just meant to steer our bodies. Those thoughts make drugs both existentially liberating but at the same time also "imprisoning" for me

That is certainly one way of looking at things, and one of the more frequent perspectives I harbor. But I've also had enough trips down the rabbit hole to realize there's more to it than that. Way more to it.

We are definitely strange effects for sure. We are haunted atoms that formed in the core of a dying star. Weird, right? If you find that worldview imprisoning, I encourage you to question it. Magic is often simply what you need it to be, no need to get hung up on whether magic is "real" or not, because that doesn't actually matter.

Check out Discordianism if you haven't already. It's kinda like hot swapping reality tunnels. No need to commit to one ontology all the time :).

comment 3y ago · link · parent

Prop 65 is especially dumb because it doesn't make producers say what the risky ingredient(s) are or how potent it is. I got some fish sauce from the Asian grocer which has a p65 warning. What is it? Are there heavy metals in the fish? Nitrites? Is it smoked and thus has trace PAH? Did they find PFAS? I have no clue, but it's goddang fish sauce and so potent I put like two drops in my stir-fry (which would itself probably warrant prop 65), so idgaf.

When you put the exact same warning on food as lead-containing special solder, cadmium paints, and other very obvious "don't eat this" industrial materials, it loses all efficacy.

comment 3y ago · link · parent

Sure, but the more links in the chain, the more control you need in order to prove the causative agent. In the absence of direct experimental evidence (give animals aspartame, they get cancer, which we haven't seen), you need to rely on huge observational studies. And these are exactly where you run into all kinds of confounders, like

Patient has standard American diet and is overweight but not obese -> that leads to sleep apnea -> chronically tired -> they develop a diet Coke habit -> slight increase in cancer risk. What's causing the cancer here, the diet, the adiposity, the sleep apnea, the lack of quality sleep, the soda itself, the effect of soda on teeth leading to gingival inflammation, or the aspartame in the soda?

comment 3y ago · link · parent

Meat consumption is way up and fiber consumption is way down over the past 50 years. Those two factors alone are very big contributors.

comment 3y ago · link · parent

The other big challenge is from a SAR (structure-activity relationship) point of view, it's completely benign looking from just about any way you look at it. It's two peptides, and a methanol (which yes, gets converted to formaldehyde, but so does fruit pectin). There's nothing zany about its structure, it's not particularly lipophilic, no receptor bindings of note, no spicy reactive groups, no alkylators, no intercalators, no redox sites. If it doesn't look like a duck, doesn't quack, doesn't waddle, doesn't fly, doesn't hang out in ponds, and hasn't shown ducklike activity over 50 years, what are the odds it's secretly a duck?

comment 3y ago · link · parent

Man, rustc compiling of binaries that run on this computer, docker, github CI, this kid's going places (no idea how old he is, but he's squarely younger than me, a millennial, ergo, kid).

comment 3y ago · link · parent

I get that, but isn't the debt/GDP ratio in general also growing?

comment 3y ago · link · parent

I get that countries don't exactly operate like a family budget, but can someone explain what the intended steady state is? There's only really three options: pay it off, keep it at the current debt level (or keep it steady at some percent level), or continuing to let it grow, and it seems like the first two options aren't (credibly) on the table.

comment 3y ago · link · parent

Does the prefix ("user_") get recorded in the DB (so every string in the column starts with the same "user_"), or does are there constraints and other clever chicanery to save those bytes in every record? Or do modern DB engines even care? Is this premature optimization?

comment 3y ago · link · parent

> But as White points out, it’s a bit surprising that Delta didn’t block this particular combination as a possibility. “I’m sure they removed many four-letter words that would be seen as offensive,” he tells the Post. “I’m surprised that ‘gays’ and ‘H8’ weren’t blocked as well.”

Oh sweet summer child (meaning Jeff White, not OP/GP). As someone who has implemented a censorship/filtering list, this is a UX problem on the same level of decideability as the halting problem. You can spend boundless time curating a list to flag/grawlix every possible string that would offend even the most prudish of prudes, and some would still get through. Such as the superficially benign "EATTHE"

https://www.dailymail.co.uk/news/article-2039662/Virginia-dr...

comment 3y ago · link · parent

> Bad. Config is not code. Settings should be explicit. DRY is not helpful.

I disagree. From experience, there are enough times that configuration requires repetition, loops, interpolation, etc, that you often end up in this gross space of either repeating chunks manually (error prone and brittle), or using code/templating to generate config (requires everyone on the codebase to use a specific toolchain).

HCL2 (used by Terraform) has been my favorite configuration system. It's just the right amount of power that I don't need copypasta or feel the need to resort to configgen. TOML is great for a single human-defined configuration for a program, but HCL does just as well at that, while also working for systems.

JSON definitely fails as human-editable. Again, you need some tooling to ensure syntax correctness.

> JSON has the nice property that you can parse it with exactly one upfront memory allocation: N bytes of JSON requires at most N words of memory.

I really don't care how much memory is allocated during parse, within reason, as long as execution is bounded, can't blow up, or otherwise misbehave.

comment 3y ago · link · parent

Would this also apply to home directory, eg ~/.meta/.netrc? That would be neat and make backing up a system and synching configs easier.

Also, what about .idea/.vscode and related IDE stuff? Those I would definitely consider "metadata".

Would X/.meta/.dockerignore work the same as X/.dockerignore ? As in relative to the root as if .meta was not there?

Not sure I agree with docker-compose.yml being there, but not really opposed to it either. What about Makefile or CMakeList.txt?

comment 3y ago · link · parent

Wow, that's pretty awesome!

I don't know if WASMpy would be a completely different implementation, or just CPython compiled against a WASM target. Probably the latter. Which has already been done.

https://github.com/jupyterlite/jupyterlite

comment 3y ago · link · parent

Your python code is executed by Apache? You mean like WSGI? Well either way, the bytecode alliance is working on things like fork/exec.

> What would the Python "requests" module do if it has no Linux kernel below it to pass the requests to a network stack?

Why does requests need a linux kernel? It's cross-platform. Strictly speaking it only needs the appropriate I/O calls. WASI provides a system interface to do I/O, network, files, etc.

https://wasi.dev/

https://github.com/WebAssembly/wasi-sockets

comment 3y ago · link · parent

No. Only NAT is slower to any real degree.

https://stackoverflow.com/a/26149994

comment 3y ago · link · parent

What you are describing is basically WASI [1]. Yes there are exploit concerns in the bridge layer, but it is far easier to sandbox these capabilities-based modules, than native programs. For example, many WASM runtimes are written in Rust, which greatly decreases the risk of exploits in general.

1] https://wasi.dev/

comment 3y ago · link · parent

I could see this greatly benefitting python in particular. Compile cpython and all the dependencies against WASM/WASI, bundle WASM wheels, and wrap the whole thing up in a single .wasm binary. Python portability woes are basically solved, provided your environment has the appropriate WASI runtime.

comment 3y ago · link · parent

What is the overhead for WASM like, vs bare metal? I know containers generally run as fast as regular processes, but I imagine there is some interpretation overhead for WASM.
1
131415
85