8,495 karma · joined Feb 1, 2017 (9y ago) · 2,551 submissions
comment 5y ago · link · parent
This cracks me up. Despite a chemistry degree, I have never really thought to consider whether or not endothermic combustion exists, even though endothermic reactions exist. Nitrogen "combustion" with oxygen is endothermic. But really, the definition of combustion implies a high temperature, relatively rapid and self-sustaining reaction, e.g. rust and glucose metabolism aren't combustion.
comment 5y ago · link · parent
Neck ties are a mathematical knot if you again assume the two ends are connected. See other comment in this thread.
Knot theory here only determines the "shapes" of the knots and which are "allowed", there is no friction, width, etc.
https://en.m.wikipedia.org/wiki/Link_(knot_theory)
https://math.stackexchange.com/questions/217670/is-there-a-m...
comment 5y ago · link · parent
Google has gotten much better at handling symbols.
Basically, custom infix operators are super convenient as long as they are auditable and aren't abused.
comment 5y ago · link · parent
If PATH and installing python is a struggle for them, hoo boy, no wonder they don't feel like part of the "code club".
I merely type into my favorite search bar with auto complete
"make sure /u"
And I get:
"make sure /usr/local/bin is in your $path"
And top result is a SO spelling out what this message means and how to check.
Engineering, of any discipline, is the sum of three phases: domain research, applying that knowledge to build something, testing that thing you built. With experience, you spend less time on 1 and more on 2, but with learning software, you spend the lion's share in 1.
We still need to lower the barriers to entry. That involves teaching heuristics on how to solve problems.
comment 5y ago · link · parent
TFA is a classic x-y problem. Author says they want node in the browser. What they really want is something they can quickly be productive in, a one stop shop. Author is describing an IDE.
comment 5y ago · link · parent
I have struggled a lot with the nitty-gritty of ENV over the past few years and I agree with you that maybe there is a better way. /etc/, Conda, virtualenv, docker, ROS, Windows registry, they all deal heavily with managing the environment, and all have their own thorns. Then you have kube, consul, ansible, and all the fun of distributed environments.
The bottom line is, if you want multiple, orthogonal runtimes, you need an abstraction for managing namespaces. PATH is actually one of the simplest mechanisms to achieve this.
comment 5y ago · link · parent
Tactile is good for a side channel - and you can even read with it - but the coding/modulation is key. Auditory is probably the best overall to attack.
comment 5y ago · link · parent
But I am not being cheeky when I say I've read more rigorous ESP experiments. At least this has a vaguely plausible biological mechanism?
> Cryptochrome forms a pair of radicals with correlated spins when exposed to blue light.[50][51] Radical pairs can also be generated by the light-independent dark reoxidation of the flavin cofactor by molecular oxygen through the formation of a spin-correlated FADH-superoxide radical pairs.[52] Magnetoreception is hypothesized to function through the surrounding magnetic field's effect on the correlation (parallel or anti-parallel) of these radicals, which affects the lifetime of the activated form of cryptochrome.
https://en.m.wikipedia.org/wiki/Cryptochrome#Magnetoreceptio...
comment 5y ago · link · parent
Censoring and banning should be reserved for actual hazards such as provoking violence. But I think the automatic tagging of social media with "Here is another perspective", while being seen by some as chilling, is the best way to go.
comment 5y ago · link · parent
The issue partly stems from the lack of coupling between data and metadata on file systems. I think the next evolution of file systems involves the ability to link files together in an organic way. But that is tricky since it breaks the abstraction of files as stream of bytes. Might need to go up a level of abstraction and create new primitives for cp, mv, etc.
comment 5y ago · link · parent
Also what does it matter if Jan 6 was not planned on parler? Jan 17th and inauguration shenanigans were being planned there until the site got yanked.
https://www.dailydot.com/debug/man-who-died-capitol-riot-par...
comment 5y ago · link · parent
This is precisely the intended effect. Sure some wahoos think they could fully overthrow the military but for most it is about changing the calculus from "tyrannical takeover of unarmed populace with minimal resistance" to "uh oh, they are fighting back". This results in much more of a cause to rally around, feed into rebel propaganda, win over military members to the "just cause" which of course tips the balance, etc.
We saw what only a few hundreds of folks could do when parts of the normal defense are strangely absent. Imagine even a 30% defection.
comment 5y ago · link · parent
Doublethink is more common with extremists regardless of bent, but what we are seeing is doublethink and eager consumption of propaganda, along with gaslighting the other side and accusing them of exactly the same. It is toxic and wears you down.
comment 5y ago · link · parent
There is already talk of such a system and even some implementations. I am sure many people have thought to themselves "This is so complicated! So much legacy cruft! I bet I could build a way cleaner c/c++ build system! " only to run into all of the complexity of cross platform c++.
I highly doubt there will be a cargo for c/c++, because it simply isn't rust.
https://gitlab.kitware.com/cmake/cmake/-/issues/19891
https://gist.github.com/stryku/4c69aa510711c9da6705fa4df4545...
comment 5y ago · link · parent
I've voted this post down for this in particular. It is truly an absurd criticism, especially when you refute it yourself when you admit bash on Windows is a relatively new phenomenon (and I still struggle with bash env on Windows). If you use a build system, you need a build system installed, full stop. Cmake is pretty easy to bootstrap on a new host with minimal assumptions. Literally just `./bootstrap; make` on basically any 'nix.
Cmake is designed to run truly anywhere, with many backing generators, not just make. It doesn't even assume a posix shell iirc.
Sounds like many of your complaints are with the library authors not writing with portability in mind.
comment 5y ago · link · parent
Writing makefiles is extremely repetitive and tedious and error prone: precisely the kind of thing to automate. Not just makefiles mind you, cmake is designed to automate all sorts of build parameters.
comment 5y ago · link · parent
That is exactly what that is. Cmake is extremely powerful, and it lets library authors make build configuration that is quite often too flexible. Combine that with no standardized package manager for c or c++ for decades, and much cmake evolution over that time, means you encounter many different ways to solve problems.
Opencv is up there for most complex cmake projects. Only behemoths like VTK, ITK, and ROS beat it in complexity of the build.
Also, don't beat yourself up too much. :)
comment 5y ago · link · parent
Not sure what your experience has been but I've had zero problems with cmake portability on nixes.
Raw makefiles are so much worse from a maintainability point of view.
I find it kinda fascinating to be honest. Two devs come to totally opposite conclusions.
Also to get more logging try this: https://stackoverflow.com/a/22803821/3988037
comment 5y ago · link · parent
That is just what you get with legacy build systems.
Disclosure: I work at Kitware.
comment 5y ago · link · parent
This is probably wrong and lazy. I think the rigorous approach is to use namespaces
https://www.jujens.eu/posts/en/2017/Jul/02/docker-userns-rem...
comment 5y ago · link · parent
The issue is complexity and lack of appropriate abstractions.
The "Let's Encrypt" of dockerfile safety would be something that makes it trivial to 1) create a user 2) chmod/chown an appropriate spot on the fs, 3) ideally let the author defer these actions to always finalize the image in user mode. That way, you declare at the top that you will do these user actions, but RUN stays as root. Or just provide an SRUN, SCOPY,SADD directive which acts like running with sudo. Then, you can easily extend a layer or base image without being concerned with the details of how user space is implemented.
Also there is no standard or idiomatic protocol for setting up user space in a dockerfile.