For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | shannongreen's commentsregister

And I thought "install from curl" was bad. Now we run from curl, every time?

  alias qub="source <(curl -sSL https://raw.githubusercontent.com/jamonholmgren/qub/main/src/cli.sh)"


Shell as a Service. It's the new frontier in IT outsourcing , ready for the next repetition of the thin client fad.


Slap LLM and buzzwords like 'collaboration' and 'inclusiveness' in it and I'm sold.


here, have an upvote, and a quote:

"we have exclusive features like 'inclusiveness' and competitive features like 'collaboration'."

>and I'm sold

requested buzzwords are above, I'm told.


I updated the README with instructions on how to download the file, review it, and alias it locally. :-)


Install from Curl has an undeservedly bad reputation. The only real issue is that it makes hiding malware slightly easier.




Getting ideas...


I've always been fascinated by the dissonance between what some people insist they need from an off the shelf system (bulletproof with a dedicated security team because Security is Hard, rock solid reliability because I depend on it 24/7) and what they will accept in a DIY solution (completely unsecured un-audited software with no tests and something broken every other day).


> That's funny, a guy made this same offer to me at a conference once

oh wait, you're that guy


Conference Cluedo.

"It was mithro, in the hallway track, with the pogo pin programmer."


I'd politely suggest that if your hearing is bad enough to be noticeable, then it is definitely enough to look into getting hearing aids. Hearing aids for those with only mild hearing loss can be very discreet.

There is evidence to suggest that living with even mild hearing impairment can accelerate cognitive decline (though I don't know if there is yet evidence that this can be prevented by using hearing aids).


> Covid could've been solved in 1 month if everyone would just stay home for 1 month.

No, it couldn't. And even if it could've, that would be impossible.

Believe it or not, places outside the US did do a 'real lockdown' for a lot longer than a month, and it didn't 'solve' covid.


> Believe it or not, places outside the US did do a 'real lockdown' for a lot longer than a month, and it didn't 'solve' covid.

If other countries harbour the virus then that won't eradicate it (and the countries with lockdowns will re-import it at some point).

As I indicated to dfbsdfbwe2ef2e, I think at this point in history it's really more interesting to get precise data, modelling. Not just to understand what could or could not have been done in the case of COVID-19, but also for the future, the next pandemic (or OK, even still COVID-19, if you're worried about the renewed rise), so that people will have a better foundation to discuss what the best path forward is.

Bickering about some imprecisely passed-around details doesn't seem to have any benefit at this point.


This virus can also live in and be transmitted by animals.

You going to lock down all the wild animals in the environment too?

Lockdowns have zero chances of working and were dumb from day one. We got played by China - voluntarily kneecapped our economies after falling for the political theater they put on for us welding apartments shut and all that. I find it fascinating that so few still seem to ignore that they shut down internal travel but still allowed travel outside their country. Nothing suspicious in that at all.


> Lockdowns have zero chances of working and were dumb from day one. We got played by China

"Bickering about some imprecisely passed-around details doesn't seem to have any benefit at this point."

I mean, maybe there was an effect as you say, and then just maybe that was done by them on purpose, but then the interesting bit would be to prove the hypothesis as well as you can. It would be better if even you at least said "I find this suspicious", over leaving it to the reader to feel like he has to agree or something. This kind of talking is heating up a discussion, for what benefit?


It's not a real lockdown if I see people on the street.


Even Deborah Birx admits in her book that two weeks to slow the spread was a ruse:

>Birx writes “No sooner had we convinced the Trump administration to implement our version of the two-week shutdown than I was trying to figure out how to extend it.”

https://www.gulf-insider.com/top-us-health-official-admits-t...


It's not your fault you didn't know this, but it does say something about the breadth of education we receive


It is a classic play, the kind that local theatres regularly stage, I went to see it as a teenager but not through school.


I don't understand... why don't you just not connect it to your network?


It really depends how you measure productivity. Does it make the team close their JIRA tickets faster and pump out more lines of code? Probably. But I wouldn't be surprised if it also resulted in more defects, worse designs, more tech debt, and more failed projects.

Sometimes the best thing you can do is stop someone from writing code.


It is the SWAR method. Another comment explains it well, it basically treats each bit position as a 2-bit adder.


How is it more flexible exactly?

I hate this idiom every time I come across it. I like to look at the header file to see the interface and important documentation, and this just obscures it. Depending on your compiler it can make debugging a huge pain as well.


> I like to look at the header file to see the interface and important documentation

This still works nicely: the important stuff (documentation and public interface) is at the top, followed by the 'unimportant' implementation at the botton of the file.

STB-style headers are a bit different from typical C++ 'single header libraries' in that they put the declaration and implementation into separate sections in the header file (with the implementation inside an #ifdef/#endif pair), while C++ headers are usually a wild mix of class declarations intermixed with implementation code in template and inline functions (which is indeed harder to read).

I don't quite understand how debugging is affected? E.g. there are (usually) no inline functions in STB-style headers.


It does seem that 'modern' idioms tend to just be doing the same thing in a more obfuscated manner. Just a .c/.h pair would have been easier to add to your source.


This is a valid point. I was on the fence between doing .c/.h pair and a single .h. But finally took the inspiration from: https://github.com/nothings/stb.


Overall I think the code in the library is good, this was just the thing that stuck out to me most. Congrats on getting shared on HN.


That would be easier if the most popular build systems weren’t terrible


If the library is installed separately, the terribleness is about adding "-lfunkylib" to your linker command.

If you embed the source in your project, the terribleness is about adding to your Makefile:

  funkylib.o: funkylib.c
       $(CC) $<

  myfinalexe: ... funkylib.o ...
       # your existing executable creation (linking) command


Or I don't know, people actually bothered to learn them.


Learning something doesn't stop it being terrible. One time I ran `cmake`, and forgot to run `sudo -k` beforehand. It reconfigured my system.


That has more to do with sudo than cmake.


This might be an unpopular opinion, but compiling a program into a local directory shouldn't try to install packages globally. `make install`, I could understand doing that.

I had no idea that cmake would do this, after reading quite a lot of things about cmake v.s. make and how to write various makefiles for them. I posit that the C build tools are fundamentally hard to comprehend.


Any build tool can do whatever they feel like.

Blindly trusting it will lead to the same outcome, regardless of the programming language ecosytem.


Sure, but should it? Do you really want nasal demons from your build tool?


Due to the success of build tools like Gradle, build.rs or any other one that packages a Turing complete language to steer a build, apparently many want such daemons on their homedir.


Just because you can do something, doesn't mean you should. A `build.rs` is supposed to be for compiling non-Rust code and stuff like that, not mucking about with the package manager – and by and large, people don't use it for mucking about with the package manager.


People use it to muck with the host OS in any possible way, unless one bothers to do the necessary code audit.

Besides that was just one example, there are plenty of them with turing complete languages.


Its a slow to compile idiom. The only reason to use it is if you expect people to download the header and plop it in. Basically its an end-run around build systems.


In my tests with STB-style headers written in C between a few thousand to a few tens of thousands of line of code, the compilation speed difference between including the header with disabled implementation, versus including with the implementation section removed from the file is absolutely negligible. This is because the implementation block is already skipped in the preprocessor, and never parsed by the compiler frontend.

Again, this is different from typical C++ single-header-libraries (e.g. pretty much all C++ stdlib headers) where the implementation code is inlined or in template code.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You