Zig vs Rust. Which one is going to be future?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 100%

    So I who am careful to write readable and safe code

    I just want to point out that it's hard to be sure your code is readable if you don't work with a team. More than once I saw people write "readable" code that was not readable. My own code I deemed "readable" was in fact not, as time had shown when I returned to fix something. So, the cited part looks a bit arrogant 😅

    3
  • Zig vs Rust. Which one is going to be future?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 100%

    Down that path C may become somewhat of an intermediate representation language for binary interfaces. No one would write it by hand, and maybe for the better

    3
  • Might as well go cyberpunk, I guess.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 100%

    In a loose sense, any implant makes you a cyborg, in a more strict sense implants that control something in your body do. Heart rate control by a pacer, insulin level control by an implant, hearing aid, some more complicated implants all make you a cyborg but usually not the cyborg one imagines

    3
  • Anon is straight
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 100%

    Well, rubber fist may really be a different thing. I even think that a real fist or even a dick sometimes doesn't imply homosexually, only asserting dominance :(

    2
  • Cobol Has Been "Dead" For So Long, My Grandpa Wrote About It
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 100%

    And COBOL is listed as third-generation on Wikipedia, too.

    I now remember reading about this concept of generations in a book about Ada, it seemed fascinating then but turned out to not be as good as expected 🥲

    Also, Unix Shell is listed as 4GL example. There are SPSS, MATLAB, R, and Wolphram Alpha in the same list of examples, that kind of shows where 4GL went today.

    5
  • This is why it's not mainstream
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 100%

    Pretty much sums my experience with windows, something you want will either work fine, or be mysteriously broken beyond repair with no apparent reason. MacOS is like that sometimes, too. Linux is not perfect, but it usually allows for a fix to exist.

    4
  • Off by one solitude
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 100%

    There's no such thing as "zeroith" because it's called "zeroth — being numbered zero in a series"

    This works for building storeys, this would work equally well for tables. The only reason this is not used often is because the series are rarely zero-based in anything that doesn't also want to equate index and offset.

    You're right that first may be read as "opposite of last", that would add to the confusion, but that's just natural language not being precise enough.

    Edit: spelling

    Edit2: also, if you extend that logic, when you're presented with an ordinal number, you would need to first check all the options, sort them, and then apply the position you're asked, that's not really how people would expect ordinal number to be treated, not me, at the very least

    6
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMI
    Jump
    I promise the Republican Party
    The empire of C++ strikes back with Safe C++ blueprint
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 100%

    Reminds me of how I found some safety measures to be in China some years back, basically those were signs saying "plz don't fall to your death, if you do it's your fault"

    3
  • The empire of C++ strikes back with Safe C++ blueprint
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 100%

    If you want everyone to stop trying to shove Rust everywhere, just use smart pointers more. I may somehow get over Rust not replacing every other language if those languages will be safe

    3
  • The empire of C++ strikes back with Safe C++ blueprint
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    sukhmel
    Now 94%

    I think, the idea was along the lines of "because C++ was not memory-safe, and it has to stay compatible with how it was, there are still a lot of ways to not write memory-safely"

    This makes sense, there are memory-safely features available but there are a lot of programmers that will never willingly use that features, because the olden ways are surely better

    Other than that, I agree, when you're paid to fix an unfixable problem you will probably claim something like that and advocate for your solution being the only one that solves this

    15
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearAB
    A Boring Dystopia sukhmel Now 100%
    'Russia now is like 1984': Inside a Russian dystopian library
    www.bbc.com

    Dystopia in the books has stark contrasts, great oppression, heroic moves. A boring real-life dystopia seems to mainly consist of tired people trying to cope with life while half-believing the propaganda and not upsetting themselves too much on one side, and equally tired people doing their best to rebel however they can on the other. > If the billboards in Ivanovo are to be believed, Russia’s really going places. > > “Record harvest!” > > “More than 2000km of roads repaired in Ivanovo Region!” > > “Change for the Better!” > > In this town, a four-hour drive from Moscow, a giant banner glorifying Russia’s invasion of Ukraine covers the entire wall of an old cinema. With pictures of soldiers and a slogan: > > “To Victory!” > > These posters depict a country marching towards economic and military success. > > But there is one place in Ivanovo that paints a very different picture of today’s Russia. > > I’m standing outside it. There’s a poster here, too. Not of a Russian soldier, but a British novelist. George Orwell’s face stares down at passers-by. > > The sign above it reads The George Orwell Library. George Orwell library in Ivanovno The small library keeps books about totalitarianism and dystopian worlds > > Inside, the tiny library offers a selection of books on dystopian worlds and the dangers of totalitarianism. > > There are multiple copies of Orwell’s classic novel Nineteen Eighty-Four; the story in which Big Brother is always watching and the state has established near-total control over body and mind. > > “The situation now in Russia is similar to Nineteen Eighty-Four,” librarian Alexandra Karaseva tells me. “Total control by the government, the state and the security structures.” > > In Nineteen Eighty-Four, the Party manipulates people’s perception of reality, so that citizens of Oceania believe that "war is peace" and "ignorance is strength". > > Russia today has a similar feel about it. From morning until night, the state media here claims that Russia’s war in Ukraine is not an invasion, but a defensive operation; that Russian soldiers are not occupiers, but liberators; that the West is waging war on Russia, when, in reality, it was the Kremlin that ordered the full-scale invasion of Ukraine. > > “I’ve met people who are hooked on TV and believe that Russia isn’t at war with Ukraine, and that the West was always out to destroy Russia,” Alexandra says. > > “That’s like Nineteen Eighty-Four. But it’s also like Ray Bradbury’s novel Fahrenheit 451. In that story the hero’s wife is surrounded by walls that are essentially TV screens, talking heads telling her what to do and how to interpret the world.” > > Alexandra Karaseva thinks Orwell's novel is now the reality in Russia > > It was a local businessman, Dmitry Silin, who opened the library two years ago. > > A vocal critic of the Russian invasion of Ukraine, he wanted to create a space where Russians could “think for themselves, instead of watching TV”. > > Dmitry was later prosecuted for “discrediting the Russian armed forces”. He’d been accused of scrawling “No to war!” on a building. He denied the charge. He has since fled Russia and is wanted by police. > > Alexandra Karaseva gives me a tour of the library. It’s a treasure trove of literary titans from Franz Kafka to Fyodor Dostoevsky. There is non-fiction, too; histories of the Russian Revolution, of Stalin’s repressions, the fall of communism and of modern Russia’s failed attempts to build democracy. > > The books you can borrow here are not banned in Russia. But the subject matter is very sensitive. Any honest discussion of Russia’s past or present can bring problems. > > Although not banned, the contents of the books at the library can bring problems > > Alexandra believes in the power of the written word to bring change. That’s why she is determined the library stays open. > > “These books show our readers that the power of autocratic regimes is not forever,” Alexander explains. “That every system has its weak points and that everyone who understands the situation around them can preserve their freedom. Freedom of the brain can give freedom of life and of country.” > > “Most of my generation had no experience of grassroots democracy,” recalls Alexandra, who is 68. “We helped destroy the Soviet Union but failed to build democracy. We didn’t have the experience to know when to stand firm and say ‘You mustn’t do this.’ Perhaps if my generation had read Ninety Eighty-Four, it would have acted differently.” > > Eighteen-year-old Dmitry Shestopalov has read Ninety Eighty-Four. Now he volunteers at the library. > > “This place is sacrosanct,” Dmitry tells me. “For creative young people it’s a place they can come to find like-minded citizens and to get away from what’s happening in our country. It’s a little island of freedom in an unfree environment.” > > As islands go, it is, indeed, little. Alexandra Karaseva is the first to admit that the library has few visitors. > > By contrast, I find a large crowd in the centre of Ivanovo. It’s not Big Brother people have stopped to listen to. It’s a Big Band. > > In bright sunshine an orchestra is playing classic Soviet melodies and people start dancing to the music. Chatting to the crowd I realise that some Russians are more than willing to believe what the billboards are telling them, that Russia’s on the up. > > “I’m happy with the direction Russia’s heading in,” pensioner Vladimir tells me. “We’re becoming more independent. Less reliant on the West.” > > “We’re making progress,” says a young woman called Natalya. “As Vladimir Putin has said, a new stage for Russia has begun.” > > But what about Russia’s war in Ukraine? > > “I try not to watch anything about that any more,” Nina tells me. “It’s too upsetting.” > > Back at the George Orwell Library they’re holding an event. A local psychologist is finishing a lecture on how to overcome "learned helplessness" and believe you have the power to change your life. There are ten people in the audience. > > Pro-invasion propaganda is a fact of daily life in Russia now > > When the lecture ends, librarian Alexandra Karaseva breaks the news. > > “The building’s been put up for sale. Our library has to move out. We need to decide what to do. Where do we go from here?” > > The library’s been offered smaller premises across town. > > Almost immediately one woman offers her van to help with the move. Another member of the audience says she’ll donate a video projector to help the library. Others suggest ideas for raising money. > > This is civil society in action. Citizens coming together in time of need. > > Admittedly, the scale is tiny. And there’s no guarantee of success. In a society with less and less space for “little islands of freedom,” the library’s long-term future is uncertain. > > But they’re not giving up. Not yet.

    17
    1

    Image with a text, an image is of a blue top, white bottom pill laying on a red background. The top text reads: "This is a placebo meme". The bottom text is: "Studies show placebo Memes are still reacted to even when users know they are a placebo"

    367
    16
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearME
    me_irl sukhmel Now 97%
    me irl every time

    Credit: [Jake Likes Onions](https://jakelikesonions.com/post/680787466742071296)

    431
    39

    It seems that the web UI treats spoilers without a space after `:::` the same as the regular ones, while Thunder ignores those as spoilers. It looks like the closing spoiler marker may be entered without whitespace but it consumes extra text after the spoiler, and overall acts weird I can create an issue if that's needed, or this post may be referenced in an existing issue to be used as a test ``` :::spoiler no whitespace Content ::: ::: spoiler whitespace present Content ::: :::spoiler one-liner no whitespace Content::: ::: spoiler one-liner whitespace present Content::: Extra text in the end ::: spoiler one-liner whitespace present Content ::: Second extra text ``` produces :::spoiler no whitespace Content ::: ::: spoiler whitespace present Content ::: :::spoiler one-liner no whitespace Content::: ::: spoiler one-liner whitespace present Content::: Extra text in the end ::: spoiler one-liner whitespace present Content ::: Second extra text

    6
    5

    It's going to be her first New Year 😅 We don't erect a new year tree but there was a storm that broke lots of branches off trees, so we used one of those to create a holiday air

    45
    0

    I can't seem to find a definition for different kinds of icons Sync uses for special users, e.g. I know how OP and my account are denoted, I have seen bot accounts marked, also I guess that I have seen a mark where a user blocked me. Is there a place where I can check what each pictogram means and what are the possible ones?

    11
    5
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSU
    Now
    6 1.7K

    lad

    sukhmel@ programming.dev

    Rust dev, I enjoy reading and playing games, I also usually like to spend time with friends.

    You can reach me on mastodon @sukhmel@mastodon.online or telegram @sukhmel@tg