doesntthinkmuch

u/doesntthinkmuch


r/cpp_questions•

Does this work for you on your machine? It compiles in GCC 14.2 for me, but not 15.1?

#include <cstdio>
#include <map>
#include <expected>
#include <system_error>

template <class T>
struct Value {
  int v;
};

int main() {
  std::map<int, Value<void(std::expected<int, std::error_condition>)>> m;

  auto it = m.find(3);

  if (it == m.end()) {
    printf("Not there!\n");
  }
}

Compiler flags: '-O3 -std=c++23`

1810

r/Synths4Sale•

Mixing things up. Shipping to the continental USA from Atlanta, GA, USA included. Have conducted many trades / sales here!

Images: https://postimg.cc/gallery/6ppnBJ9

FS/T:

  • 4ms Tapographic Delay Price: $245
    Description: Stereo multi-tap delay

  • bpc TXo+ Price: $175
    Description: Teletype output expander

  • bpc TXb Price: $90
    Description: I2C interface to faderbank / teletouch

  • Intech Grid EN16 (x3) Price: $120 each
    Description: 16 encoders
    Notes: All intech devices have this slight issue where they produce a single cc value upon releasing the encoder. Not a problem for controlling continous parameters

  • Intellijel Spock Price: $170
    Description:

11


r/Synths4Sale•

​

https://preview.redd.it/e1joo89gaccb1.jpg?width=4608&format=pjpg&auto=webp&s=bc749992616c320c7a1bda724dc26fffb62f66c9

  • Xaoc Bytom (summing mixer, trigger combiner), $75
  • Instruo CS-L (complex oscillator), $480
  • Make Noise Wogglebug (Random source), $175
  • Make Noise X-Pan (panner, crossfader), $200

Shipping to ConUSA included.

Especially willing do partial trades for the CS-L.

Trade list (+/- cash):

  • Mutable Ears (clones)
  • Mutable Stages / Clones
  • Intellijel Flurry
  • Antumbra Knit (uPlaits)
  • Antumbra ATN8
  • Anything else, feel free to message and check
11

r/archlinux•

Friendly reminder, if you were like me and were using Nvidia drivers with X.Org and were wondering when the Wayland transition was going to arrive, it already has!

Make sure you enable Nvidia's DRM KMS setting and the Wayland option will show up (at least on GNOME).

Edit: Note that you can do this and still use the X.Org session. You can do this to sample the Wayland session, and to switch over when you deem it stable enough.

13143

r/neovim•

Hello r/neovim!

I recently made a vim plugin integrating fzf and neovim that I thought the subreddit would appreciate.

https://github.com/vijaymarupudi/nvim-fzf

It differs from the traditional fzf vim API by being easier to use, simpler in implementation, and more powerful.

An example of using fzf to pick between a list of items.

local fzf = require("fzf").fzf

coroutine.wrap(function()
  local choices = fzf({1, 2, 3, 234, "test"})
  if choices then
    -- do something with choices[1]
  end
end)()

It uses lua coroutines to abstract away the callback

9928

r/Minneapolis•

I'm moving to Minneapolis to be a graduate student at the U of M this Fall and found some nice places in Uptown. However, it seems a bit far away from the U of M, but I've seen many people talk about the express buses. Looking at the express bus times right now online, they don't seem to run that often throughout the day, and I can't seem to figure out the timings during the regular semesters of the university. I'm posting to ask people about how often the 113, and the 114 run and during which time ranges during the semester. Thank you!

210

r/learnpython•

Here's the code.

import asyncio
import aiohttp


async def fetch_numbers(session):
    counter = 0
    while True:
        counter += 1
        resp = await session.post("https://httpbin.org/post", json={"number": counter})
        yield await resp.json()


async def main():

    async with aiohttp.ClientSession() as session:
        counter = 0
        async for item in fetch_numbers(session):
            counter += 1
            print(item)
            if counter == 99:
                break

if __name__ == '__main__':
    asyncio.run(main())

Here's the error I get:

unhandled exception du
57

r/ManjaroLinux•

Hmm, this update seems to have broken my install in a way. GDM loads but starting a DE fails, returning it back to GDM. I think it has something to do with Nvidia? Checked the logs and I see a lot of

Gnome-session-c trap int3 ...
Gnome-session-b trap int ...
Invalid ELD data byte
Freed GPU:0
Allocated GPU:0

Things I've tried

  • Reinstalling nvidia drivers (did not work)
  • Booting to budgie (same errors)
  • Falling back to nouveau (did not work)

Things I guess I've ruled out

  • Not nvidia (can't change the title now I guess)

I suspect it's gnome

Here are some log snippets

[   17.899367] traps: gnome-session-c[965] trap int3 ip:7ff232695411 sp:7ffcf6be2360 error:0
[   1
34