barsoap

joined 1 year ago
[–] barsoap@lemm.ee 5 points 7 hours ago* (last edited 7 hours ago)

Yes in principle to male plug, no to 240V unless the inverter sees a frequency to sync to. They won't power anything during a power outage that requires the whole electrical installation to be set up for it so you don't leak power to the outside and fry a lineman. Also that inverter attaches to one phase only which means that its power won't even reach 2/3rds of your circuits. It does make the power meter go backwards though which is the point.

That said, ideally you're using Wieland plugs and not Schuko so you won't have exposed prongs. The VDE certified Schuko for feeding in up to 800W though and that's exactly the amount parliament said doesn't require a permit or even talking to your utility. If you're doing everything new going with Wieland is the sane choice those outlets don't cost a fortune, if it's an existing installation though a) your landlord might not like it and b) electricians will demand more in travel costs than the outlet is worth.

[–] barsoap@lemm.ee 1 points 1 day ago

I think you dont fully understand how c compilers ( gcc specifically ) work when using multi file projects

They don't. C compilers compile single files produced by the c preprocessor (resolving all #includes), they have no concept of multi-file projects. That's a thing for the build system, such as make, and it needs dependency information from the preprocessor to do its job (cpp -M), and once it has that it has to act correctly on them which is often completely broken because people don't understand make. Like using it recursively, bad idea. In the wild, a random C project at work you'll come across needs a full rebuild to build cleanly. Things have gotten better with things like cmake getting more popular but the whole thing is still brittle. GNU autohell certainly makes nothing better, ever.

Also, anything using IL will always have an abi,

Everything will always have an ABI because ABI is just API in the target language, whatever that may be. If your program is compiled and can run it uses an ABI.

Wasm is wasm, and you only need an exposed interface

The core wasm abi is less capable than the C abi: You get scalar values and pointers, that's it. No structs, no nothing, memory layout is completely unspecified. The component model allows compilers to say "so I'm laying out strings like this and structs like that" giving linkers a chance to say "yeah I can generate glue code between you two".

Again, i like the idea of rust, but it has a long way to go to be viable atm.

C isn't even close to being viable according to your standards people just have gotten used to the jank.

And it has many pitfalls to avoid so it doesnt become the hot mess that is any framework based on node.js

Rust doesn't have portable dylibs precisely because it isn't a hot mess. Because it's actual work to do it properly. Unlike everyone else. Meanwhile It speaks the local C ABI fluently (they differ by architecture and operating system, btw), which isn't a thing that can be said about many languages that aren't C.


Differently put: What, precisely, do you want to do? Have you any actual use-case for your doubts, or are they spooks?

[–] barsoap@lemm.ee 3 points 2 days ago* (last edited 2 days ago) (2 children)

It's a lacking point yes but unless you want to use a closed-source library it's also a non-issue, which is why it has never been given priority. It's not like language semantics would prevent portable dylibs it's that there's more important fronts to improve Rust on. A proper solution would take quite some engineering effort, and do note that C doesn't have a proper solution either it just lets you link stuff up willy-nilly and then crash. Rust is actually in a better position to implement a proper solution than C is.

The "big project" thing is a red herring given that rust compiles incrementally. I know it is technically possible to not rebuild everything from scratch in C but the code has to specifically written to not break assumptions your build system makes while rust is happily re-using the compilation results for one function in a file while discarding those of another because actual dependencies are actually tracked. Out of the box.

Speaking of large Rust projects and proper type-safe linking: The WebAssembly folks are hashing out their Component Model which isn't really limited to compiling to wasm, in principle: Big picture it's a way to programmatically specify ABIs and even derive ABI translation code. That might be a good option as a rust-specific solution would be, well, rust-specific and when you engineer something that can support multiple versions of a language you can just as well engineer a bit more and have something cross-language.

[–] barsoap@lemm.ee 3 points 3 days ago

Writing C bindings to a Rust library is the easier scenario because you can rely on the safe code having nice and clean memory semantics.

[–] barsoap@lemm.ee 7 points 3 days ago (2 children)

The Rustinomicon has a chapter on it. The basics are quite simple: Declare non-opaque types to use layout matching the C ABI, export/import functions, some wibbles around name mangling. Option<T> vs. null pointers. Where things get a bit more involved is unwinding, but then you're at the end of it, nothing should be shocking to anyone having written C.

As to how Rusty it is... not very. I mean Rust has first-class FFI support, but the way FFI stuff is written is necessarily unidiomatic because you're basically writing C in Rust syntax and you won't get out of declaring your own functions `unsafe' before you read the rest of the Rustinomicon to understand what properties you need to ensure because the nice and shiny parts of Rust assume them.

[–] barsoap@lemm.ee 2 points 3 days ago* (last edited 3 days ago)

I didn't jump into anything I started the discussion. You did not participate, and still aren't. Re-stating your premise is not an argument, you could've left it at "dude IDGAF what you say get off my back" from the start.

[–] barsoap@lemm.ee 1 points 3 days ago* (last edited 3 days ago) (2 children)

Done discussing? You didn't even start.

[–] barsoap@lemm.ee 1 points 3 days ago

This kind of stuff got legalised in Germany: Banks said that e.g. Sofortüberweisung was instigating their customers to break their TOS and should be shut down, anti-trust then said "nuh-uh you can't just shut down legitimate business" (Sofort is indeed legitimate) and instead put third-party systems under banking regulations, and required ordinary banks to have APIs allowing third parties do do sensible things.

...which theoretically could mean that you're sent to your actual bank to authorise and thus getting rid of the normalising phishing problem, dunno, haven't checked I'm boycotting them out of principle for going down that route in the first place. Don't serve any purpose now that we have real-time transfers, anyway.

[–] barsoap@lemm.ee 2 points 3 days ago* (last edited 3 days ago) (4 children)

Again: But what if it isn't butthurt, but actual strategic consideration. You're refusing to consider people having any motive but that which you assume them to have at first impression, presumably the one out of which you would go for such a mode of action. But other people aren't you, and very well might choose their actions based on completely different principles. Who are you to tell them that they are wrong? "But muh they're butthurt" is not an answer to that question, you're only restating your premise.

[–] barsoap@lemm.ee 2 points 3 days ago* (last edited 3 days ago) (6 children)

Ok I'll bite: You disapprove of the method of protest they chose, but how can you be sure of their underlying emotional/rational motives? As analogy, consider workers: They have the option to protest in front of the HQ, or they have the option to strike, and keep scabs out. Would you say that workers choosing the latter are "childish little entitled pussies", after all, that's a denial of service attack, or would you say that it is possible, in at least principle, that those kinds of attacks represent a well-considered strategic choice?

If such rationale is possible, how can you be sure that whoever launched the DDOS did act out of childish emotion, instead of cold-blooded calculation? You, we, can still disapprove of the use of violence in this case (because, say, proportionality) but that's a consideration orthogonal as to whether we're talking about adult or puerile behaviour.

That all being said, can you now understand why leading with that kind of language might not get the best reaction, and is sub-optimal when it comes to you expressing your condemnation of DDOS attacks, or convincing anyone else of that stance. It lacks consideration.

[–] barsoap@lemm.ee 1 points 3 days ago* (last edited 3 days ago) (8 children)

The onus isn’t on them to cater to everyone. If it can’t be used using Linux, deal with it like a grown up and find something else to do.

You went far beyond "ddos'ers are silly boogers", which I agreed with, but delegitimised critique of Rockstar in general: You told Linux gamers to stop playing: "Find something else to do". Don't motte and bailey now.

Your words, they get interpreted. In specific contexts. Failing to acknowledge that those contexts can differ from whatever the context is in the privacy of your own mind is a failure of both theory of mind and communication on your part and, going out on half a limb here, probably the reason why everyone around you seems so hostile. Read the room. Don't fall into the trap of thinking that you are right because what you say is met with hostility, rather, work towards having what you think is right accepted with gratitude. For starters, don't go on tirades -- which starting an argument with "butthurt little pussy" definitely is no matter how correct your assessment of the situation may or may not be. Develop tact.

[–] barsoap@lemm.ee 2 points 3 days ago* (last edited 3 days ago) (10 children)

Is there, in your mind, any situation in which any consumer can ever legitimately complain about the practices of any business, or is it all whining?

60
submitted 1 week ago* (last edited 1 week ago) by barsoap@lemm.ee to c/technology@lemmy.world
 

Asianometry dives into the tech, history, and the last bits of innovation potential spinning magnetic platters have left as they hold on to their last niches under the onslaught of SSDs

 

Videogames are being destroyed! Most video games work indefinitely, but a growing number are designed to stop working as soon as publishers end support. This effectively robs customers, destroys games as an artform, and is unnecessary. Our movement seeks to pass new law in the EU to put an end to this practice. Our proposal would do the following:

  • Require video games sold to remain in a working state when support ends.
  • Require no connections to the publisher after support ends.
  • Not interfere with any business practices while a game is still being supported.

If you are an EU citizen, please sign the Citizens' Initiative!

62
submitted 3 months ago* (last edited 3 months ago) by barsoap@lemm.ee to c/europe@feddit.de
 

Even more voter movement charts.

Bonus: "Do you think Germany's economic situation is good or bad?"

not even asking about personal economic conditions, just the overall state there's a massive fucking difference in perception.

44
Provisional results are in (results.elections.europa.eu)
submitted 3 months ago* (last edited 3 months ago) by barsoap@lemm.ee to c/europe@feddit.de
 

For all your boycotting needs. I'm sure there's some mods caught in lemmy.ml's top 10 that are perfectly upstanding and reasonable people, my condolences for the cross-fire.

  1. !memes@lemmy.world and !memes@sopuli.xyz. Or of course communities that rule.
  2. !asklemmy@lemmy.world
  3. !linux@programming.dev. Quite small, plenty of more specific ones available. Also linux is inescapable on lemmy anyway :)
  4. !programmer_humor@programming.dev
  5. !world@lemmy.world
  6. !privacy@lemmy.world and maybe !privacyguides@lemmy.one, lemmy.one itself seems to be up in the air. !fedigrow@lemm.ee says !privacy@lemmy.ca. They really seem to be hiding even from another, those tinfoil hats :)
  7. !technology@lemmy.world
  8. Seems like !comicstrips@lemmy.world and !comicbooks@lemmy.world, various smaller comic-specifc communities as well as !eurographicnovels@lemm.ee
  9. !opensource@programming.dev
  10. !fuckcars@lemmy.world

(Out of the loop? Here's a thread on lemmy.ml mods and their questionable behaviour)

 

A new paper suggests diminishing returns from larger and larger generative AI models. Dr Mike Pound discusses.

The Paper (No "Zero-Shot" Without Exponential Data): https://arxiv.org/abs/2404.04125

 

In this video, I measure a wave of electricity traveling down a wire, and answer the question - how does electricity know where to go? How does "electricity" "decide" where electrons should be moving in wires, and how long does that process take? Spoiler alert - very fast!

I've been very excited about this project for a while - it was a lot of work to figure out a reliable way to make these measurements, but I've learned SO much by actually watching waves travel down wires, and I hope you do too!

 

This is from the 37th Chaos Communication Congress, still ongoing y'all might find other things of interests there, e.g. sticking with looking at stars the talk about the Extremely Large Telescope. Congress schedule, live streams, relive and released videos (i.e. final cuts not the automatic relive stuff which is often quite iffy)

Talk blurb:

The Solar System has had 8 planets ever since Pluto was excluded in 2006. This has made a lot of people very angry and been widely regarded as a bad move. But did you know Neptune was discovered as the 12th planet? Or that, 80 years before Star Trek, astronomers seriously suspected a planet called Vulcan near the Sun? This talk will take you through centuries of struggling with the question: Do you even planet?!

In antiquity, scientists counted the 7 classical planets: the Moon, Mercury, Venus, the Sun, Mars, Jupiter and Saturn – but their model of the universe was wrong. Two thousand years later, a new model was introduced. It was less wrong, and it brought the number of planets down to 6: Mercury, Venus, Earth, Mars, Jupiter, Saturn. Since then, it's been a roller coaster ride of planet discoveries and dismissals.

In this talk, we stagger through the smoke and mirrors of scientific history. We meet old friends like Uranus and Neptune, forgotten lovers like Ceres, Psyche and Eros, fallen celebrities like Pluto, regicidal interlopers like Eris and Makemake as well as mysterious strangers like Vulcan, Planet X and Planet Nine.

Find out how science has been tricked by its own vanity, been hampered by too little (or too much!) imagination, and how human drama can make a soap opera out of a question as simple as: How Many Planets in Our Solar System?

view more: next ›