After years, and many languages, I still have to say Ada. Kotlin, Rust, Julia, and Nim are my current contenders to overtake, but here’s what Ada does well enough to still be my preferred tool when appropriate:
strictness: typically my code works the first time it successfully compiles with few or no bugs. Rust is almost on par in this respect.
structure: a corollary of the above is that it forces me to “plan ahead” more than just “start coding” which I find fits my programming style better, and leads to better “Unix Philosophy” product designs. I haven’t found any other language that has the same effect other than maybe Haskell.
speed: I honestly find that Ada code outperforms C/C++ code most of the time. The only times C/C++ outperform Ada is after optimizations that come at the cost of readability.
multitasking: Ada’s first-class tasks and protected objects are the only way I’ve ever been able to write bug-free concurrent programs that are more complex than async/await and/or producer/consumer structures (and I took a dedicated elective on concurrency at university!). Kotlin is almost on par in this respect with its coroutines.
hardware: The fact that Ada basically ships with a hard real-time OS built-in and can compile to e.g. AVR means that all my fancy libraries I’ve written or saved work just as well for a desktop game, a website backend, or an embedded microprocessor. Just look into representation clauses and interrupt pragmas to see its unique powers.
design: The whole design of the language has lead it to be the only language where I can consistently return to a multiple year old passion project with no attempt to write maintainable code, and fully understand what its doing and modify it with little effort.
tooling: While this is the biggest downside of Ada (see below) gprbuild is still my favourite build tool. I have no idea why strongly-typed build systems aren’t more common. Its always a joy to work in gprbuild, once you get gprbuild working of course.
static polymorphism: Ada’s generics are some of the best I’ve found. But they have some limitations that leads us into…
There are some situation where Ada shows its age:
static calculation: I love Nim (and Zig, etc) for the ability to run arbitrary code at compile time. It allows me to describe what would normally be an opaquely initialized data structure or code path in a clear and descriptive manner.
terseness: Ada is verbose, that’s not such a big deal, but I find its just a tad too verbose which can lead to some slight difficulty when parsing code. func/proc (Nim) vs fun (Kotlin) vs fn (Rust) doesn’t make much difference to me, but function X returns Y/procedure X starts to add a lot of visual noise to a file.
web compilation: The ability for both Kotlin and Nim to compile to either ASM or JS is AWESOME. If I have to write a “full stack” application, Kotlin multiplatform with ktor every day.
operator overloading: Only the built-in operators can be overloaded in Ada. It always makes me wish I could overload arbitrary operators. A small thing, but a symptom of…
TOOLING: Ada’s tooling is BY FAR the hardest I have ever seen to get working. It takes the “eat your own dog food” too far. The fact that even in Arch Linux you have to install a bootstrap package, then the real package shows how hard it is to get a consistent build environment. ALR is helping in this respect, but is still not quite mature in my opinion.
Here’s when I use the alternatives, and their biggest weaknesses:
Kotlin: anything where I want both one or more JS artifacts and one or more JVM/native artifacts. Weaknesses: performance, static analysis, on the fence about tooling (gradle is cool, but sometimes seems too over-engineered), Biggest weakness: IDE dependency, writing Kotlin outside of IntelliJ is a pain, which is somewhat fair given who maintains it!
Rust: so close to beating Ada, if not for two things: ugly code - so many operators and glyphs that pollute the reading experience, maybe I’ll get used to it eventually, but for now I can’t scan Rust code, nor pick up and revisit it nearly as easily as Ada; language scale - I find Rust suffers from the C++ design attitude of “we can add this as a language feature” it takes too much mental effort to hold the entire design of the language in your head, which you sort-of have to do to develop software. Java and C are IMHO the undisputed kings in this respect. After reading through the specifications of both languages, neither will ever have any surprises in store for you. There’s no magic under the hood or special case. All the cool features are done by libraries and rely on the same simple syntax. Every time I learn a new cool thing Rust can do, its at the expense of another edge case in the compiler that modifies my conceptual model of the code.
Julia: multiple dispatch and mathematics plus clean module design and easy unicode incorporation leads to clean code for math-y/science-y code.
Nim: templates and macros are excellent, concept system gives access to Rust-style traits without all of the additional “ugliness” of Rust, excellent performance, tiny executables. I just find that the syntax can get clunky. The UFCS easily cleans up a lot of the mess that Rust creates with its added features, since it keeps the parsing the same even when using some fancy language feature.
Thank you for attending my TED talk :P. Any questions?
I work from home and I get the same amount of work done. However if you define it as, “Doing X amount of work in Y amount of time,” then yeah I’m less productive because nowadays instead of getting that work done in an 8-hour shift I take about 10–12 hours to do it.
Same work, same day, so my productivity hasn’t changed. I just take longer to do it by taking breaks, going out to long lunches with friends, and my stress level is almost non-existent!
I find that to be a very equitable trade-off: Almost no job-related stress for a slightly longer working day.
LoglineAn accident with an experimental quantum probability field causes everyone on the USS Enterprise to break uncontrollably into song, but the real danger is that the field is expanding and beginning to impact other ships—allies and enemies alike....
Spock: “I solved for the Y in my computation … but the variable so devastating: I’m the ex / X”.
Thanks. Now I get it. IIRC the subtitles had “solved for the why” and then the X didn’t make any sense. That is indeed clever.
My favourite Spock bit came at the end during the grande finale. Everyone was singing “we know our purpose, to protect the mission – our prime directive”, and Spock just goes “not exactly”. 😄
Totally accurate. And there is a ton of hypocrisy with this situation as well. As you stated, older white men are demonized by every group out there. But you can’t defend yourself if you are one of those older white men or immediately simpletons will claim you are RaCiSt. And these young white kids see this and think their dad or uncle or cousin aren’t so bad… why is the world constantly shitting all over them?
The most hilarious (and infuriating) part of all this is that the same people (usually on the Left) who go apeshit when people generalize a certain group have zero problems generalizing all white guys together. How does that make sense? As you stated, just because some white dude can’t get a GF doesn’t make him an incel. Just because some white dude dresses a certain way or listens to a certain type of music doesn’t mean he’s some hardcore MAGAt. Yet those generalizations are perfectly fine for society to make but god forbid you state that X group loves Y food, or Z group is not good at something.
And this hypocrisy theme continues elsewhere as well. Again, the Left loves to pretend not to want people to generalize, but they will typically generalize that just because someone is white, they immediately have some kind of special privileged, and yet if you are black, for instance, you are oppressed. I’m sorry, but I kind of doubt the kids of billionaire Beyonce or Kanye West are being oppressed by The Man. On the flip side, some dirt poor white kid from Appalachia has absolutely no advantages in this world compared to his dirt poor black neighbor. They go to the same shitty school, their parents work in the same shitty coal mine making the same shitty paycheck, they live in similar shitty mobile homes. Yet only one of those kids could potentially get a free-ride to go to college by leveraging his race and getting scholarships.
Kids aren’t stupid. They might not be very worldly or have experience doing things, but they see a lot of this bullshit and become easy prey for groups that are actively recruiting them and tell them that things aren’t right in the world.
If something happens it will just monitor the status as I thought those didn’t even have weapons.
Poseidon would be able to say: “right before the Israeli grain ship was struck, exploded and sunk, we tracked an alpha class sub that entered from X direction a Y speed. We saw it discharge 2 torpedoes and seconds later the grain ship exploded. We then tracked the sub as it turned back to Sevastopol. Here you can see in the pictures as it surfaced before entering the harbor.”
Russia would have attacked a civilian transport of Israel live on camera. Countries take action with things like that.
When I search up a community in, for example, lemmy.world and lemmy.ml, the subscriber counts differ from each other. Are the subscriber counts of communities viewed from a instance only valid for that instance?
Yes, it does seems to be the count of subscribers for the community on that instance. If you want to see the total number of subscribers to the community, you go to the community’s instance (e.g. clicking the !x link under the community’s name@instance) and look at the number.
I’m just asking for recommendations in case, I feel like migrating to a smaller instance or maybe try kbin for a change (but I’ll miss the voyager web app)
Just had NextCloud denying my credentials (not for the first time). I know they weren’t wrong because I’m using a password manager. Logs didn’t say much. Was about to reinstall (again, not the first time nextcloud went bonkers on me) before I tried a docker compose down && docker compose up. Lo and behold after a restart...
Exception X with error code xxx means Y. Y should be shown via a modal dialog to the user. The state of the application has to be reverted to a valid state as error handling.
The exception/error gets logged, the user doesn’t receive a exception but the interpretation of the error is shown to him via the UI.
The author of the blog post likes X, that’s why distro A is might be the perfect distro for them. While I like Y, which is why distro B is the perfect distro for me etc. What makes Linux -in a sense as a platform- perfect great is that it allows one to either find/install/build/configure the perfect system for them^[1]^. Some prefer to be in full control from start to finish, while others just like sane defaults. The fact that Linux allows for such diversity is almost mind-blowing.
The degree of that diversity will only increase as time goes on and very likely at some point (purely as a side-effect of further diversification) very ‘dumped down’ versions of Linux might -and perhaps already have- arise. This is inevitable and -perhaps to a degree- essential. And no matter how ‘dumped down’ some Linux distros would have become by then, you can still bet your money that distros like Gentoo and Slackware will continue to do what they always have. So that everybody and their mom, but also the tinker-loving you, will be able to have their perfect distro.
Therefore I don’t see any merit/benefit in contributing to gatekeeping, elitism or whatever this is supposed to be. Instead, we should contribute in more meaningful ways; e.g. like by maintaining some packages you need in your perfect distro. And perhaps those changes will actually contribute to it becoming the perfect distro for others…
I’d argue Linux isn’t quite there yet, unfortunately. As some highly specialized systems just don’t exist yet… Regardless, l would reckon it allows one to get the closest to such systems.
Nope. If your age minimum for a partner y is determined by your age x with the function:
y = 1/2 x + 7
then the point where y = x is at y - 7 = 1/2 x. Setting y to x leads us to x - 7 = x / 2, which happens at x = 14.
At x = 18, y = 18/2 + 7 = 9 + 7 = 16.
Relatedly, if we invert the function, y - 7 = 1/2 x, thus 2y - 14 = x, which gives us the theoretical maximum for a possible partner. If a possible partner is older than that, you’d be understood to call them a cougar, or whatever the male equivalent is.
France will begin evacuating its nationals from Niger on Tuesday, the foreign ministry said, after a coup there last week toppled the country’s pro-Western leader....
I thought it was a bit of a joke that many westerners are still supporters of colonialism but it’s apparently true.
Oh Western support for imperialism is still alive and well, Ukraine has shown that. At the outset of the conflict you had people saying that Ukraine shouldn’t have sought closer ties to the West because it would inevitably piss off Russia; or, that the US/West should negotiate a peace treaty. They brought up how during the Cold War, American imperialists agreed that Ukraine should stay in the Russian sphere of influence.
All of that thinking is just imperialism. If you say country X should not seek certain international ties because it will piss off country Y, you’re defending the idea that X is Y’s possession and it must have Y’s approval to exercise any self determination. They aren’t sovereign if they can’t make their own decisions. Similarly, to advocate for the US to negotiate a peace treaty completely ignores Ukraine and doesn’t even ask what Ukraine wants. If the US brokers peace and Ukraine doesn’t want it, it’s imperialism in the form of daddy US knowing better and doing what’s best. This happened with the Cold War, where the American imperialists didn’t even bother to consider what Ukraine wanted when deciding which sphere of influence it should be in.
The hilarious, depressing part is that a lot of the people who argue these points also call themselves anti imperialist. Anti imperialism is fighting back against a global power who says you’re historically part of their empire and have no distinct culture, not suggesting you make peace with them and give them some of your land. Some people have made the logical fallacy that because the US has done bad and pro imperialist things, anything which the US dislikes must be good and anti imperialist. They don’t recognize that if the US dislikes what Russia’s doing, that doesn’t mean Russia is in the right.
I don’t expect you to fully agree with me, but I hope we at least agree that what I’ve described is also imperialism. It’s a general test to see if someone actually dislikes imperialism or if they just dislike the West and give a pass to non Western imperialism. I sincerely hope you’re the former.
It does become not a technical discussion but a philosophical one pretty soon. I’m not sure humans can accurately cite their sources either—yes they can be interviewed and claim X or Y as a big influence on their artistic work. But how do they know that? Do they know that more than an AI asked the same question?
Very loosely it would act as a caching or proxy service from what I understand.
My understanding is that when you subscribe to community “x” on server “y”, that your server “z” starts to download all of the content from that community so it can serve it to you locally. I don’t know how fast the activitypub protocol would fetch new posts/comments, if it’s real-time, or some kind of intermittent pull or push.
“In lines 10 - 20, the author most likely uses the word ‘arduous’ in order to…”
Math Section:
“If 3x - y = 12, what is the value of 8^x / 2^y ?”
ACT (American College Testing)
English Section:
“Choose the word or set of words that, when inserted in the sentence, best fits the meaning of the sentence as a whole. Despite his desire to travel during his week off from work, Ted was __________ the prospect of spending so much money on a plane ticket.”
Math Section:
“The equation 2x + 3 = 15 has what solution for x?”
CLT (Classical Learning Test)
Verbal Reasoning:
“Choose the word that best completes the analogy. Hammer is to nail as knife is to: a) Fork, b) Spoon, c) Cut, d) Plate.”
Grammar/Writing:
“Identify the error in the following sentence: ‘Despite the rain, he decided to went out without an umbrella.’”
Quantitative Reasoning:
“In a game, if a player scores 5 points in the first round, 10 points in the second round, 15 points in the third round, what would be the total points scored after 10 rounds if the pattern continues?”
Literary Analysis:
“In Pride and Prejudice by Jane Austen, how does the character of Mr. Darcy evolve over the course of the novel?”
It goes without saying, One thing that annoys me is whenever a topic comes up about someone finding something mildly infuriating and there is always that 1 person who has to decide it isn’t because of x, y and z reasons...
Yeah, people are aware now so can make decisions on their own and decide their own risk tolerance.
One thing I find funny though is how people think I don't care if X country has my info it's my home country Y I'm more worried about. But, their country Y is probably hacking country X and retrieving all their info from there with possibly less red flags to get through. So it really comes down to what people choose to share and use than a certain countries publicized spying policies.
For me it’s first person puzzle games. I can think of maybe a dozen off the top of my head that came out in the last decade. I especially enjoy when they’re open world. The ability to just quit a puzzle that’s stumped you and go try something else for a little bit is incredibly refreshing.
The tribes series, or z-axis games, where you are able to move up and down as well as the traditional x-y movement you see in virtually all games. Usually set as shooters, they are fast paced movement games that have a huge skill curve which is why they aren't made that often. Super fun when you get the hang of it though
I’m just pointing out that filling a land with settlers and then doing a referendum to see what they prefer is not an argument. I was pointing out the duality, because if I were to say that in Crimea they say they want to belong to Russia you would tell me x, y or z, but if the same happens in a Western colony you defend them. Seems hypocrite.
In the grand scheme of things, the customer may have slightly more pull than the cashier ringing up their order, but it’s the CEO and the board of directors that control the narrative. That’s why we’re getting bigger and less fuel efficient vehicles, bigger and more fattening meal portions in restaurants, and bigger less...
I always thought it was supposed to reference market sentiment.
If your company is focused on X, but is also doing Y, and the market is really taking up with Y, you need to focus on keeping Y alive and well. Makes for a successful company to respect the market’s wishes, and allows you to pursue X while Y is subsidizing it.
If you insist that X is the future, and put Y on the back burner to focus on X, well, the market will find a competitor who is doing Y better than you, and the market will abandon you.
Hi guys, first of all, I fully support Piracy. But Im writing a piece on my blog about what I might considere as “Ethical Piracy” and I would like to hear your concepts of it....
I get what you’re saying. But, do you get what I’m saying? If someone asks “why is X Y to you”, the answer “because it is Y to me”, doesn’t add much. Now, the OP asked for a reasoning for why it was ethical. You have pretty much said “fuck ethics, I do what I want”. And, as you very much point out, you do not care what anyone thinks. Which… I find weird to point out in a discussion forum. FYI, ethics tries to be a little bit more general than “anything I want is by definition ethical to me”. I’m sure we’re both happy to leave it at that.
I'm neither assuming that a game is perfect or that the designer's vision is always correct, but the designer is intending for you to experience a game a certain way, and it's often most fun that way. If certain strategies are dominant such that they invalidate large portions of the game that are there, it usually results in that game being boring. Your mileage may vary, of course, but that's how these things tend to go. The Witcher is a much more interesting game for me when you utilize potions, oils, and monster manuals, and I found the combat to be quite boring when I didn't know how to interact with those systems and instead just reloaded saves for better dice rolls. By forcing you to play a certain way, like by omitting certain save systems, they're making sure you play the way they intended, and if the game is as good as they hoped to have made it, it will result in the most people having the best time.
Here's another example. Batman: Arkham combat is an amazing replication of what Batman is in video game form. It's one man taking on dozens of others, usually more lethally armed than he is, with some athleticism and a bunch of gadgets. You're incentivized via the scoring/XP system to never button mash, use every move in your arsenal at least once, never get hit, and to take out every enemy in the room in a single flowing combo. However, it didn't steer most players into playing that way very effectively (at least on normal difficulty), and many leave the combat system disappointed that they can beat it just by attacking with X and countering with Y.
When you have multiple indices you’re also bound to have multiple cardinals those indices count up to, say foo.length and bar.length, so foo_i and bar_i are perfectly legible and self-documenting. A bit Hungarian but Hungarian is good in small amounts. Unless you’re dealing with width and height in which case it’s x and y but it’s not that width_i would be incomprehensible.
What's your favorite programming language and what about it do you like?
PLEAAASSEE PLEASE COME BACK TO THE OFFICE PLS (lemmy.world)
They can all fuck right off. Here’s the article if anyone’s interested: forbes.com/…/working-from-home-leads-to-decreased…
Episode Discussion | Star Trek: Strange New Worlds | 2x09 "Subspace Rhapsody"
LoglineAn accident with an experimental quantum probability field causes everyone on the USS Enterprise to break uncontrollably into song, but the real danger is that the field is expanding and beginning to impact other ships—allies and enemies alike....
Are teenage boys in the US becoming more conservative – or more dangerously apathetic? (www.theguardian.com)
Ship sailing from Israel becomes the first to break Russia’s grain blockade (www.i24news.tv)
Are sub counts instance-specific?
When I search up a community in, for example, lemmy.world and lemmy.ml, the subscriber counts differ from each other. Are the subscriber counts of communities viewed from a instance only valid for that instance?
What are some smaller Lemmy / Kbin instances that are just as good as lemmy.world
I’m just asking for recommendations in case, I feel like migrating to a smaller instance or maybe try kbin for a change (but I’ll miss the voyager web app)
I'm done with NextCloud
Just had NextCloud denying my credentials (not for the first time). I know they weren’t wrong because I’m using a password manager. Logs didn’t say much. Was about to reinstall (again, not the first time nextcloud went bonkers on me) before I tried a docker compose down && docker compose up. Lo and behold after a restart...
The Perfect Linux Distribution (juliette.page)
Wikihow brutally kills 36 year olds (i.imgur.com)
France to start Niger evacuations, ‘special’ Italian flight too (www.scmp.com)
France will begin evacuating its nationals from Niger on Tuesday, the foreign ministry said, after a coup there last week toppled the country’s pro-Western leader....
How much did photography "steal" painter jobs ?
With all the fuzz about IA image “stealing” illustrator job, I am curious about how much photography changed the art world in the 19th century....
Does self hosting an instance of a federated service, like lemmy, effectively act as a VPN for your account?
cross-posted from: lemmy.world/post/2452085...
Florida may become first state to accept a ‘classical’ alternative to the SAT and ACT (www.nbcnews.com)
Here is a summary of the key points from the article:...
Gatekeeping the Infuriating
It goes without saying, One thing that annoys me is whenever a topic comes up about someone finding something mildly infuriating and there is always that 1 person who has to decide it isn’t because of x, y and z reasons...
FBI Made 'Inappropriate Use' of Foreign Surveillance Program To Spy on Americans (reason.com)
What are some game genres / styles you like that aren't being made anymore, or are being mde but not very often?
For me it’s first person puzzle games. I can think of maybe a dozen off the top of my head that came out in the last decade. I especially enjoy when they’re open world. The ability to just quit a puzzle that’s stumped you and go try something else for a little bit is incredibly refreshing.
Niger puts an end to uranium and gold export to France (english.almayadeen.net)
We should stop saying "The customer is always right" because it's not true
In the grand scheme of things, the customer may have slightly more pull than the cashier ringing up their order, but it’s the CEO and the board of directors that control the narrative. That’s why we’re getting bigger and less fuel efficient vehicles, bigger and more fattening meal portions in restaurants, and bigger less...
What would you considered "Ethical Piracy"
Hi guys, first of all, I fully support Piracy. But Im writing a piece on my blog about what I might considere as “Ethical Piracy” and I would like to hear your concepts of it....
Pet peeve, games that won't let you save
I wish all games would just let you save whenever you want to! Why is using checkpoints and auto saves so common?...
why not a,b or x,y? (lemm.ee)