8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 6y ago · link · parent
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
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
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
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
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
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
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
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
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'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
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
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
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
And anything more complex than that I typically just use python.
comment 6y ago · link · parent
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'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
- 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
comment 6y ago · link · parent
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
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
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
Also relevant, this short story is a favorite of HN: https://marshallbrain.com/manna1.htm