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

No, that's how learning curves work. Until we can Matrix beam info into our skulljack, humans will spend a notrivial amount of time having to make do with using things while not fully understanding how they work.

Unless one is 31337-rockstar-ninja-IQ150-programmer, the uptake of new skills is painful and takes time. The pedagogical process is important. It's totally OK to not know how anything works as long as you acknowledge that and are willing to learn.

comment 6y ago · link · parent

Except they feel for all intents and purposes like tiny VMs.

If I gave a pre-Docker era engineer two terminals, one host, one in a container, they'd probably quickly figure out they are on the same physical machine. But unless they were super savvy at some very specific stuff, they'd probably conclude it was just a VM.

Every dev I've introduced to docker workflows basically treat it like a vm. The only ones that didn't already had experience with cgroups/chroot and related tools.

It's honestly better to think of Docker as "VM, but actually you use the same kernel" than "processes that are isolated".

Other poster compared it to electron models. Yes, "balls in orbits" is wrong, but kids are already familiar with planetary orbits, and that mental model works until basically Organic Chem II.

comment 6y ago · link · parent

Running Docker containers is definitely on top of the Docker runtime. Maybe not from a PID parent point of view, but absolutely from an abstraction point of view.

Try doing anything hardware-network-topology relevant stuff without `network=host`, like running a ROS cluster with direct ethernet connections between hosts and cameras.

It's definitely "on top" in a way bare-metal isn't. Same way that a vm is "on top of" kvm even though the cpu supports hardware virtualization.

Nvidia-docker is another abstraction. It's a pass-through. It's not the same as bare-metal. Certainly feels the same 98% of the time, but in that 2% it is very much apparent there is a layer in between.

comment 6y ago · link · parent

Each layer is a write only operation. So if you `RUN some_build.sh` and then `RUN rm junk`, you basically do nothing to reduce the final image size. So you see a lot of like `RUN some_build.sh && rm -rf junk`. There's some overhead with each layer as well.

comment 6y ago · link · parent

Torque/efficiency is still a big issue. A coworker and I put together all the math and specs for a robot which could "cook breakfast", just to see what a PoC would take. For anything approaching human arm levels of strength, in that form factor, you are looking at SWG servos. These are nominally 70-80% efficient, but that drops after a few thousand cycles, if you operate in higher loading regimes [1]. so cooling/maintenance is super important. Planetary gears are also not great efficiency-wise and are heavier.

Force feedback is also super important and challenging.

We just need like, synthetic actin :) Disney is actually working on that [2]. yeah it looks super inefficient but so were vacuum tubes before transistors.

1] https://eeepitnl.tksc.jaxa.jp/mews/EN/19th/text/206.pdf&ved=...

2] https://studios.disneyresearch.com/wp-content/uploads/2019/0...

comment 6y ago · link · parent

We need a breakthrough in low-speed, high torque, lightweight motors and geardowns. Basically if we can get economies of scale up on BLDC motors with higher numbers of poles (think hoverboard motors but lighter), and figure out how to mass manufacture harmonic drives, that'll open up the door to all kinds of low cost robotics.

Odriverobotics already has brought down the barrier to BLDC servomotor control.

Or this thing: https://ieeexplore.ieee.org/document/8613852

comment 6y ago · link · parent

It depends. Github is not going down. Gmail is not going down. If they do, it's Bug-out-bag time, and I am working on curating what information subset I need for that.

Ideally though yes I would have my own entire backup system but I frankly don't trust myself enough to do it right, so hence some redundancy in the cloud.

The NAS I am still designing actually :p

comment 6y ago · link · parent

It's remarkable what you can do with just functions and nested data structures. Used to be big on the whole OOP thing, data roles, so much effort for so little.

Now I try to think about problems as "I have input data of shape X, I need shape Y" and fractally break it down into smaller shape-changes. I am kinda starting to get what those functional programmers are yammering on about.

comment 6y ago · link · parent

One nice thing about Go is the existence of cgo. Yeah, it's discouraged, and rightly so, but you have that option. The ol' "Give it to C, C will do anything".

The other is IPC. Go is so dang easy at concurrency, managing data flow, async IO, etc, that I find it really lends itself to working as a cog in a larger machine, usually distributed. Don't like solving problem X in Go? Solve it however you want and just talk to your Go process.

So you have 2 escape hatches which were much less tenable as overall approaches even 10 years ago. So hopefully Go can stay lean and mean. I think it also helps that unlike other systems languages, Go doesn't have any intent on being a catch-all language. Graphics, hard real-time, drivers? You ain't gonna reach for Go. Light scripting, data science, machine learning? Also probably not Go.

comment 6y ago · link · parent

It's hard to overstate how big of a breaking change that was. Python is basically scriptable C. In c, strings aren't really a thing, but they are first class in Python (since everything is effectively a dict). And char's are your typical string-like data structure. So in py2, it made (some) sense at the time to let str and byte[] types intermingle. I don't agree with that choice, but it wasn't unreasonable (much like the null pointer).

This led to all manner of playing fast and loose with str as byte[] usage. I've seen inline asm and even machine code in python.

Now it's the new millenium and oh look, ascii-char

won't cut it as your language implementation of strings.

comment 6y ago · link · parent

I'm really glad they don't have C++ style generics, and I hope whatever way they do it if/when they do, it keeps that Go minimalism.

I'd like to see the Interface system more powerful. You can already do some very un-gothonic things with map[string]interface{}. I'd like to be able to compose functions already based on an interface, to implicitly implement other types, rather than spelling out each function (maybe you can already, I'm still only a few months in to Go).

I liked the concept of "try" but I agree with the peanut gallery, the syntax needs work. But many gophers (it seems) agree there should be a shorthand for "I got an error, bubble it up to the caller" aka "if err != nil {return nil, err}"

Or maybe not. In some ways, the verbosity of err != nil everywhere makes me look for ways to solve problems with less error returning.

comment 6y ago · link · parent

I find it a huge advantage, in fact the lack of blobs may be my favorite go feature. I'm sure stodgy old companies that want to preserve "IP" through security through obscurity, dislike this model.

But as a dev? I can drill down to the core (C-b in Goland, jump to definition) of ANY import. Even the entire go toolchain is in go.

ABI/version management of artifacts is a nightmare, every single time.

comment 6y ago · link · parent

Oooh. I've been wrestling with this problem for a while now.

Basically I'm working on a tiered system. Files/dirs are categorized by size (<10MB, <25GB, >25GB) , and by sensitivity (public, confidential, secure. And importance is usually proportional to security). I have fortunately found that security is usually inverse to size. Github/lab anything which makes sense. Confidential small stuff (sans keys) is just stored in gmail/drive. Big, boring stuff (music, ebooks) is just kept on external hard drives.

Secure, ultra-important stuff, I don't really have a system for.

The system I'm leaning towards is just encrypt archives and store the key/password securely, and store it like you would any boring data, with a local NAS and a cloud backup service of some sort, or just stored on drives offsite.

comment 6y ago · link · parent

SmarterEveryDay has glowing accolades for farmers [1]. Similarly, the highly-constrained Cubans are notorious matter hackers [2]. My grandfather, and Italian peasant, had the same MacGuyverish attitude towards making stuff keep running long past the point most Americans would have chucked it.

I think all software devs should spend some time on a farm. Great for inspiring simple yet clever "shipped is better than perfect" style solutions. Manual labor is also great for Sitatdeskitis.

1] https://youtube.com/watch?v=ywBV6M7VOFU

2] https://oncubanews.com/en/culture/visual-arts/when-in-the-fa...

comment 6y ago · link · parent

I wish there were a set of tools like coreutils but like..."less surprising" I guess? Like I spend 98% of my focus-time in algol-likes. 1-indexing drives me batty. I always have to try a few times to craft craft cut or tail expressions to match [i:j] slice notation.

And anything more complex than that I typically just use python.

comment 6y ago · link · parent

Three things in the world are infinite:

- the universe

- human stupidity

- spooks' thirst for more data, backdoors, and monitoring ability

comment 6y ago · link · parent

> We could be merely a generation away from the hell hole that is social credit.

I fear we have one foot there already. If you are so inclined, you can dig up a lot of dox on most people, all freely given to social media, or via scrapers like Spokeo.

I guess it's all still optional, kinda. And there is no centralized clearinghouse. But it is scary.

comment 6y ago · link · parent

I feel your pain with the debugging and I have a feeling this will be an aspect of go which matures greatly in time. Especially with respect to goroutines, it can be tough tracing the program flow, which makes good debuggers even more valuable. Also a very hard challenge.

I'd love to be able to see a diagram of goroutines and channels, like a chemical plant. That's probably asking for too much :p

comment 6y ago · link · parent

When I first got into go, a few of the Go Opinions kinda rubbed me the wrong way.

- I have to source GOPATH in my rc files? Annoying.

- File paths are network URI's? Ugly.

- I have to deal with every err != nil? Verbose.

But over time I've grown to love go more than almost any language (python is still bae, especially with type hints, and even then, it's close).

- dependency pathing is a pain in most other languages. Singular source of truth is great (I've had virtualenvs leak and cmake do bizarre things when multiple libs are on the file tree)

- host/paths are file/paths. I love this pattern now. It's just so obvious and natural.

- ok the err != nil still drives me nuts. But it drives me to write things in a way where I don't need to deal with errors as much. Reduces fractal complexity and paths through the code. It also forces "the buck stops here" sort of pattern where you have some atrium which is resiliant and is where most errors bubble up to

comment 6y ago · link · parent

And yet it works, it's fast, it's reliable. I've tried to build clang and it aint pretty.

Something something shipped is better than perfect.

IMHO I'm quite glad they didn't drag the bloat of LLVM into the fray.

comment 6y ago · link · parent

It's also tinted by the fact that learning a skill is usually logarithmic. If you are a student with no pot-making skills, those first few pots are gonna give a lot of XP. I think it'd be a different outcome if done with more experienced potters.

comment 6y ago · link · parent

Learned helplessness is a particularly insidious form of this. What's fascinating is that in the studies, some animals never get it, they just keep fighting it. I wonder if that trait can be tapped in to, I doubt it' an all-or-nothing parameter. https://en.wikipedia.org/wiki/Learned_helplessness

comment 6y ago · link · parent

There's a name for that phenomenon, the Wall of Awful:

https://youtube.com/watch?v=Uo08uS904Rg

comment 6y ago · link · parent

Trivial inconveniences are huge. For years, I could not get myself to floss. I had no problem with the brushing habit. So then I tried using those floss-picks instead of the reel. Bam, flossing rate went from about once a month to every other day.

comment 6y ago · link · parent

> it still takes 15-20 minutes to find all jpegs with an SSD. What's going on there?

What is going on there? I'm working on a file system indexer in golang and to walk and parse extension to a mimetype runs at several thousand images a second, over NFS. Windows is full of lots of headscratchers "why is this taking so long?"

comment 6y ago · link · parent

This is such an under-mentioned point. Cars are fantastic for logistics and storage. Though I imagine if we can automate people-moving, we can figure out logistics bots as well.

comment 6y ago · link · parent

Albany is a middlin' sized city. Taking the train to NYC is like, still a nontrivial event. Also passenger rail has to sidestep freight on this corridor. Megabus is a bit better experience overall but also kinda meh.

On top of that, I personally (and know many agree) HATE the stress of keeping track of times, scheduling around infrequent departures, logistics to/from stations, etc.

> Bonus: the vehicle can be resized at will, depending on the number of passengers.

Yeahno. "please wait 15-30 minutes as we shuffle cars around the rail yard" is not exactly "at will"

comment 6y ago · link · parent

I think it's the same reason I tear up uncontrollably watching rocket launches. It's just so epic and bigger than any one human. See also: overwatch effect.

Here's a collection of songs:

"I'm looking for songs that contain NASA radio transmission snippets, or a "space" theme conveyed in a creative manner. Examples in text" https://www.reddit.com/r/trance/comments/1vl39y/im_looking_f...

comment 6y ago · link · parent

Exactly. Even if wealth is shared, and all humans technically receive everything they need to live life, that does not mean the world is avoiding assorted moral hazards, such as "human zoo" condition. Nor that the human condition on the whole is optimal.

Also relevant, this short story is a favorite of HN: https://marshallbrain.com/manna1.htm

comment 6y ago · link · parent

Wow, things are pretty bad when people are slinging bootleg toothpaste
1
767778
85