@louiscouture correction this works:
g++ source.cpp && ./a.out > output.txt
I.e you compile and execute the program but redirect output to the text file.
@louiscouture I think this should do it:
g++ source.cpp && /.a > output.txt
@freemo @funny I disagree here. Not because I think ivermectin works but because this makes it seem like people in favor of ivermectin are doing this. In reality very few people are using horse ivermectin. Also, it's not as if there is enough conclusive evidence to dismiss ivermectin and I assume that a lot of the polarization surrounding the best covid treatment has made it so that people who are vaccine skeptical are having to resort to using ivermectin made for horses because doctors are not prescribing it for covid. In any case, it'll be interesting to see what kind of mental gymnastics people will use 12-48 months from now when we have more data. I predict that we'll end up with something in the middle where vaccine activist will realize that we should have explored alternative treatments (non-vaccine medications) more aggressively and the vaccine skeptics will see that ivermectin is not a miracle drug against covid although they'll probably still think it was a better choice than the vaccine.
@wch you'll fit right in (bunch of techies here) welcome!
@freemo I can confirm
Anyone know of a libre alternative to something like headspace?
The real reason to prefer C++ over Rust is that the compiler trusts you, he put his faith in you, he thinks you're there for him. When you put a signature for a function defined in another file the C++ compiler trusts that you are telling the truth and that you will provide a valid object file during linking stage. This is what trust is all about. Meanwhile, Rust compiler screams at you for even the smallest shit like having an unused variable.
@freemo ain't nobody got time to read through all dat ![]()
What are peoples thoughts on non-libre games? Is that one of the areas where hiding your code is acceptable? #thoughts #freesoftware #libre
@josias@theres.life first of all, anybody that has done something beyond absolutely trivial in both Rust and C++ knows that they can both get fairly complex as they have LOTS of features compared to something like Python.
Second, you speak as if Rust and Go can be a replacement for C++ in all domains. In reality, this is far from the truth (at least in 2021) and one of the things that bothers me about ~80% of people in Rust's community who are not too deep into these other domains. For example, embedded Rust has made a shit ton of progress in the last two years but is still super behind C++ (I'm referring to "classical" embedded programming, I.e microcontrollers), nonetheless I'm certainly rooting for Rust here and hope it gains more attraction in this domain in the next decade. When it comes to Go, your best bet for embedded is tinyGo but that is basically a joke and more of a proof of concept rather than anything close to being production ready. In any case, the ecosystem and tooling available for C++ in this space drastically outweighs the benefits of Rust/Go for embedded.
There are a few other domains that come to mind where this is also the case but the point is that this tribalistic view of the whole #Cpp vs #Go vs #Rust is nothing more than people looking at shallow reviews on YT or some other BS like that. These languages are all great and have their respective strengths and weaknesses which is why you should pick the problem you want to solve first and the language second (depending on which lends itself better to that particular issue or domain).
Extra rant: another thing I find funny is that people that talk about C++ vs Rust don't even realize how close these communities are at the top level (i.e the folks making the spec and adding/proposing features for both languages) meanwhile all the casual developers talk as if these communities hate each other and are at war when in reality these languages have taken inspiration from each other in terms of features. Yes! C++ 20 has added Rust-like features and viceversa!
@jmw150 do you mean all programming languages? If so, could you elaborate? Do you mean something along the lines of "all programming languages are Turing complete" all the while certain programs are clearly much better expressed in one language over another?
@louiscouture you can't toot something like that and not expect WW3 on your thread ![]()
@freemo agree. Do you have experience with Groff? I hear its good but have never looked at it myself
#LaTex giving me a lot of shit today... Can't even render my Python code using minted.
@freemo educational fuckery is often preferred.
UI Rant
@namark well said
UI Rant
@zpartacoos their privacy concerns are not real privacy concerns, they are likiely just a pop culture fad. If they were real concerns, they would be willing to pay you (or someone like you) for the setup and warranty. For UI just hook up telegram client to matrix or xmpp, would have happened already if there was any real market.
Before ever having any hope of convincing people of true value and mechanisms of private communication over internet, you need to first at least convince them of the value and mechanisms of owning and freely using their devices.
C
* writes code on cheap (<20$) MCUs ![]()
* enjoys mathematics ![]()
* Floss is love ![]()
born: 199X
pro: rationalism | progress | justice | alternative governance models | right to repair | sustainable technology | calculated collective decisions (game-theoretically optimal decentralized systems) |
against: capitalism | socialism | communism | identity-based politics | racism | nationalism | corruption | defective by design | vendor lock-in |
I believe there's a chance we might unknowingly be in an interstellar war in which the first consciousness to spread itself throughout the universe will dictate how consciousness is experienced until the heat death of the universe. Thus, it's my duty as a human-derived consciousness to ensure that whatever survives this war is a consciousness compatible with our notions of justice so that future conscious descendants of our species may enjoy the same benefits (or more) than we currently have. This belief has several practical implications day-to-day for me; my utility function is to maximize the chance that human-derived consciousness survives long enough into the future (until the universe allows so).