Skip Navigation
C++
  • well, if I have an object on the heap and I want a lot of things to use it at the same time, a shared_ptr is the first thing I reach for. If I have an object on the heap and I want to enforce that no one else but the current scope can use it, I always reach for a unique_ptr. Of course, I know you know all of this, you have used it almost daily for 7 years.

    In my vision, I could use a raw pointer, but I would have to worry about the lifetime of every object that uses it and make sure that it is safe. I would rather be safe that those bugs probably won't happen, and focus my thinking time on fixing other bugs. Not to mention that when using raw pointers the code might get more confusing, when I rather explicitly specify what I want the object lifetime to be just by using a smart pointer.

    Of course, I don't really care how you code your stuff, if you are comfortable in it. Though I am interested in your point of view in this. I don't think I've come across many people that actually prefer using raw pointer on modern C++.

  • steam-presence: A script that takes the game you're playing on steam and displays it on discord
  • I strongly disagree. Multiple times I've been playing a game and a friend saw my Discord status and chatted with me about it. It's just another way for my friends to see my interests, nothing new on the internet.

    Would I want this status to be displayed somewhere else (especially a more FOSSy place)? Hell yeah. But there isn't any, and the people that rarely talk to me and are into gaming, aren't, unfortunately, on anywhere else but Discord.

  • Note-taking app that looks too good to be true? - Siyuan
  • I've downloaded and tested it for a bit and it does look a bit too good to be true. The source code is licensed under AGPL, and the F-Droid app page didn't show any anti-features. And I also really liked the app itself.

    However, while it does enable self-host of the same data (and it's pretty easy too. you can even self-host from your phone! I wish more note apps did this) and manual exporting/importing, the cloud syncing (even to a third-party server of your choice) is locked behind a paywall. While I do understand paying for a service to save my data, it does bother me that I can't sync with my own servers, which should not require any service from their part.

    The app also includes a login feature that lets you use a specific text-oriented Chinese social media (that also seems to be fully open source and AGPL licensed!). Honestly, I wouldn't be bothered by it especially since it's opt-in, and doesn't seem to do anything with your notes unless logged-in. Though I don't know how self-hostable it is, and even if it were, the app does not give me the option to enter my own server.

    And to top it all off, it has a bullshit AI feature (that seems opt-in). I don't think I need to explain why this is very icky.

    Considering everything, it seems like an awesome app for people that use the specific social media it is optionally coupled with. But anyone that doesn't and prefers to sync your data to a self-hosted server will be left without options. Also, you must consider that it apparently doesn't seem to phone home, according to F-Droid, though it is very strange that the network, social media, and especially AI features are not mentioned at all as anti-features. So if you would want to be sure, I'd recommend you to read the source code and deduce yourself if it doesn't phone anywhere you haven't allowed to by default.

    I personally wouldn't use it myself, but if you trust it doesn't phone home, don't care about manually exporting and importing your data, and isn't bothered by the weird network features, I'd say it's a great notes app.

  • BookWyrm
  • A lot of people do use Bookwyrm! It just depends on finding the right community.

    I am on a fairly small brazilian instance (velhaestante.com.br) and even though I joined while not knowing anybody I still get a fair amount of interactivity. Not enough to be logging in every day, of course, our instance is not nearly as big as something like bookwyrm.social and I don't read and update that often.

    It's just like any other fediverse software. Even on a small instance you can get a fair level of interactivity and on top of that you can still interact with big instances and large amounts of content! Of course, if you just create an account and forget about it, or you don't use it very often, and don't seek out interactions/following other people, of course you won't get the same level of content in your feed as if you were on GoodReads.

    That's the charm of the fediverse!

  • Golang Co-Creator Rob Pike: 'What Go Got Right and Wrong'
    thenewstack.io Golang Co-Creator Rob Pike: 'What Go Got Right and Wrong'

    An excellent standard library and packaging system, first-class concurrency support and a focus on readability are among the traits that keep Golang devs happy.

    Golang Co-Creator Rob Pike: 'What Go Got Right and Wrong'

    > An excellent standard library and packaging system, first-class concurrency support and a focus on readability are among the traits that keep Golang devs happy.

    Though this was from some time ago, I'd like to share it here and have a light discussion. Rob did an awesome talk, and I agree with him at almost every point.

    I do hardly disagree with him on the gopher license attribution. I do heavily attribute gopher's image to Renee French, but I'm not the creator, so whatever.

    0
    DuckDuckGo failed me today
  • Firefox with ublock origin is even better than the DuckDuckGo browser alone. Yes, you can use DuckDuckGo as a default search engine, and even install the extension, if you need to.

  • It's joever. Tachiyomi will no longer be actively developed.
  • oh yeah, I heard about the already forked projects before, certainly awesome that people already have that option. I do use Aniyomi, and it's pretty damn good.

    For some reason I've never felt like I needed extra features that the main project didn't have, so I've never looked out for forks. But looking at some of the forks right now they seem pretty good as well and do have features that would be super useful to me. Certainly will try it out.

    FOSS is so amazing.

  • It's joever. Tachiyomi will no longer be actively developed.
  • i'm so fucking sad that a shitty¹ company was able to bully a 100% legal piece of FOSS to shut down.

    It is THE best app for reading manga, and it single-handedly started my love and (healthy) addiction to reading manga lol. It's also one of the best examples on how a FOSS model is superior to any competitive proprietary one.

    I hope so much luck to the devs and every contributor. Their work through all these years is immeasurable. Makes me regret a little for not trying to contribute to the community with some code at a time I was wanting to. Thanks for all the hours of fun reading manga. I'm sure at this very moment people are already organizing a fork to live on Tachiyomi's legacy, as is the spirit of FOSS.

  • What if Jesus fed the homeless?
  • I always have to remind myself that in the U.S. feeding people that live with hunger might be controversial, some-fucking-how.

    If you think the phrase "feed the homeless" is even close to controversial, you seriously need to evaluate your own life and sense of empathy. That is absolutely the dystopia every writer was afraid about.

  • What's running on you CI/CD ?
  • I'm running tests and deploying binaries, nothing special.

    I actually use GitHub Actions, even though the project is hosted on Codeberg. I'm too embarrassed to ask for Woodpecker CI/CD for such a small (and not that active) project lol

  • [DISC] Soredemo Ayumu wa Yosetekuru - Chapter 225 (END)
  • it was so much fun reading soredemo ayumu for all these years and following the ups and downs, the development and the stagnation with the translation team and the HM community.

    it has been an amazing journey, this manga couldn't have ended better. thank you Yamamoto for the incredible wholesome experiences over the years!

    may we all keep senpai in our hearts 🫡

  • WASI support in Go - The Go Blog
    go.dev WASI support in Go - The Go Programming Language

    Go 1.21 adds a new port targeting the WASI preview 1 syscall API

    WASI support in Go - The Go Programming Language

    Go 1.21 adds a new port targeting the WASI preview 1 syscall API through the new GOOS value wasip1. This port builds on the existing WebAssembly port introduced in Go 1.11.

    0
    Writing an OS in Go: The Bootloader

    How you could write an operating system with pure Go code (including no CGO!)

    0
    Experimenting with project templates
    go.dev Experimenting with project templates - The Go Programming Language

    Announcing golang.org/x/tools/cmd/gonew, an experimental tool for starting new Go projects from predefined templates

    Experimenting with project templates - The Go Programming Language
    0
    Show off your project(s)!

    cross-posted from: https://lemmy.ml/post/2230752

    > I really like seeing people's interesting projects. Even if they are generic or were started just to learn something. > > And on top of that, I consider Go to be one of those languages that you can find projects on a pretty diverse range of topics. > > So, is there any interesting (or not too) personal Go projects that is in the making, or is already finished?

    0
    Show off your project(s)!

    I really like seeing people's interesting projects. Even if they are generic or were started just to learn something.

    And on top of that, I consider Go to be one of those languages that you can find projects on a pretty diverse range of topics.

    So, is there any interesting (or not too) personal Go projects that is in the making, or is already finished?

    0
    [meta] Use a community icon

    Every time I come across a !golang post I feel like a proper icon is missing.

    I mean, why not? Other programming communities already have theirs, and, in my opinion, we have the best and cutest mascot of them all, so why not use it?

    I would propose we use the classic standing gopher. There is a free gophers collection as well. Both are licensed under Creative Commons 3.0 and CC0, respectively.

    @gregf@lemmy.ml and @rek2@lemmy.ml, any thoughts on this?

    0
    General Programming Discussion @lemmy.ml whou @lemmy.ml
    Who should lead us?
    1
    Game Development @lemmy.ml whou @lemmy.ml
    GitHub's Game Off 2022 Jam theme announcement
    github.blog Game Off 2022 theme announcement

    The secret theme for this year’s Game Off is ██████ (you’ll have to click to find out)!

    Game Off 2022 theme announcement
    0
    AniDex, a torrent tracker and indexer for everything anime related!

    Everything from anime english fansubs and raws, to translated visual novels and a lot of JAVs, for some reason.

    0
    What are your favorite/most used source ports for playing DOOM?

    My favorite and most used is PRBoom+, more specifically the UMAP info fork, since it brings many QOL and modern features compared to the now abandoned and kinda old last official version.

    Other source ports I use and love: Eternity Engine, Crispy Doom, DOOM Retro and GZDoom if I'm feeling ""funky"".

    Very curious to know lemmy's favorites!

    0
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)WH
    whou @lemmy.ml

    Otaku, gamer, self-taught programming student and professional procrastinator from Brazil. In fact, I am procrastinating at this very moment. I love boomer shooters too.

    Posts 19
    Comments 56
    Moderates