Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,495 karma · joined Feb 1, 2017 (9y ago) · 2,551 submissions

Submissions

comment 5y ago · link · parent

> This explains why fire is hot regardless of fuel composition.

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

It is absolutely related, though most real world things we call knots are usually in fact closer to tangles or links with the ends of the rope looping back to the other end virtually.

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...

https://en.m.wikipedia.org/wiki/Physical_knot_theory

comment 5y ago · link · parent

My beef with operator overloading is googling symbols and when I can't inspect it with a language server / IDE. In Pycharm/Clion you can jump to the dunder definition of the operator. Haskell lets you get :info on symbols.

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

Cunningham's law is a beautiful thing, cheers :)

comment 5y ago · link · parent

I thought signal was highly decentralized? What traffic does the server handle once two clients have "found" each other? Which I believe uses hashes of phone numbers.

comment 5y ago · link · parent

> ... it's the amount of energy the author is willing to invest (approximately none). When exposed to truly trivial tooling, the problem becomes a lack of practice in the type of thinking that leads to good programs. There we see that the core of the issue why programming isn't "easy" is that it's just not.

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

Wow, I felt that talk in my bones. It reminds me of the languages I cut my teeth on: visual basic and hypercard. You just get to make stuff and it is liberating.

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

All environments for computer development need to manage some amount of abstraction to bootstrap that environment and get programs to run. In nixes, it's the bootloader, the kernel, and shell (with its ENV). When you issue the command `node` to a computer, what does that actually mean? Your Delphi setup probably just hid most of that abstraction from you, the way most people need not worry about the bootloader. But env is kind of unavoidable. It's like the Construct from the Matrix. The staging area for all other programs.

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

Ever since I heard about this kind of sensory augmentation, I have wanted a higher bandwidth port into the brain, and ideally a minimally invasive one. Vision is great bandwidth but tricky to tap into. I have wanted to try the North sense as a single rgb LED on my glasses.

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

What is most fascinating about this is the complete naivety of the subjects. If the effect is real, I would expect it ought to be trainable. I would expect conditioned subjects to perform better than naive.

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...

https://en.m.wikipedia.org/wiki/Ganzfeld_experiment

comment 5y ago · link · parent

What was the issue with QBS? The syntax looks clean and concise. Seems like the main issue is lack of traction.

comment 5y ago · link · parent

This is neat! I am quite a fan of all the go based file systems that are springing up. Question: what are the main compare and contrast points between juice and seaweed fs?

Here is a compendium for those interested:

https://github.com/gostor/awesome-go-storage

comment 5y ago · link · parent

Seconded. Establishing what is disinformation is hard; establishing truth is even harder. Restricting speech is fraught with trouble, but there is much precedent in the USA for compelling speech: see drug warnings and nutrition facts.

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

Without the right framework to manage sidecar files, this system rots quickly. Tools like DVC are good but there are still rough edges.

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, here are some screen grabs of Kevin Greeson, who likely would have been arrested, but had a heart attack from what I have heard termed "insurrectionary excitement"

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

> the proliferation of guns in American society certainly does have an effect on the decision matrix of the government (even if the "citizen militia" ultimately does not stand a chance against a determined government response...

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

Congrats, you've discovered doublethink. As someone who values rationality, it truly is maddening to witness. But extremists don't use words like we use words.

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

The discussions mention this. Any such system would likely need to interoperate with existing building system, and serve as the leaf nodes wherever possible.

comment 5y ago · link · parent

What we could really use is some new declarative syntax that interoperates with existing cmake projects.

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

> Any portable build system, that already requires EVERY user to have that build system installed, is DoA for being a viable portable build system.

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

I'll tell you exactly how: trying to maintain cross platform ITK builds on tons of bespoke HPC clusters and academic workstations using the existing build tools became a nightmare.

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

> Tho perhaps that's more of a failing of the OpenCV build script than Cmake itself?

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

> But even if not, CMake stuff as a rule is not even portable between different flavors of Unix,

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

Cmake isn't the problem, it's a solution to the complexity of building huge c and/or c++ projects such as VTK such that you can run on many different OSes, arches and platforms, with hundreds of different build options.

That is just what you get with legacy build systems.

Disclosure: I work at Kitware.

comment 5y ago · link · parent

Well, if you can store data in icmp packets, I bet you can do math, too.

https://github.com/yarrick/pingfs

comment 5y ago · link · parent

Hoping to get a good answer via Cunningham's law here: the way I currently do it is to create a shared GID on the host, add the docker user to that same number GID (via build args), and chmod it appropriately. chmod -R 2775 on folder to be shared seems to do the trick.

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

This is what I get for skimming, thanks for pointing it out.

I have noticed that after moving away from tini, some of my containers take a lot longer to shut down, despite the init flag. I think this might be related.

comment 5y ago · link · parent

I think the fishiness is exactly what your intuition is pointing to: root is easy, "proper" is not. There are very few applications where you need true root at runtime, and most can get by with correctly configured user space.

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.

comment 5y ago · link · parent

Is tini still considered best practice? I remember reading that it was included and now you can just docker run --init (init: true in compose)

comment 5y ago · link · parent

Then you override entrypoint. docker run --entrypoint=foo

Docker compose has the key word as well.

1
636465
86