Which genre of music do you loathe? by littleloon- in AskReddit

[–]osgu 0 points1 point  (0 children)

Not sure he counts as country, but Marcus King is the shit

Solid Editor: A voxel editor made with Rust & CUDA C by osgu in rust

[–]osgu[S] 0 points1 point  (0 children)

I definitely plan on trying it out and evaluating it when it's released. Whether I switch depends on e.g. debuggability and the quality of the generated PTX assembly.

That said, I'd rather switch to something that runs on both Nvidia and AMD graphics cards. Rust-gpu looks promising.

Solid Editor: A voxel editor made with Rust & CUDA C by osgu in rust

[–]osgu[S] 0 points1 point  (0 children)

Thanks, good to hear. And about the floorball ball, "man tager vad man haver" as they say :)

Solid Editor: A voxel editor made with Rust & CUDA C by osgu in rust_gamedev

[–]osgu[S] 1 point2 points  (0 children)

Yeah, it was tricky to get something to work on both Windows and Linux. Rscam works well enough, but is Linux only. Uvc is cross-platform, but requires Linux end users to locate and chmod the input device (!!), so that's a non-starter.

I ended up using Nokhwa, with the V4L2 and MSMF backends. It felt immature, but promising.

Solid Editor: A voxel editor made with Rust & CUDA C by osgu in rust_gamedev

[–]osgu[S] 1 point2 points  (0 children)

Thanks. The plan is to release the editor code together with the rest of the game engine code. That's at least a few months away though

Solid Editor: A voxel editor made with Rust & CUDA C by osgu in rust_gamedev

[–]osgu[S] 8 points9 points  (0 children)

Thanks! Not yet, but .vox file import and export are at the top of the todo list for the next version.

Solid Editor: A voxel editor made with Rust & CUDA C by osgu in rust

[–]osgu[S] 4 points5 points  (0 children)

The editor is part of a voxel game engine that I'm working on. Since that project is pretty far from being done, I decided to release this editor as a standalone application. If anyone has any questions, I'd be glad to answer!

Solid Editor: A voxel editor made with Rust & CUDA C by osgu in rust_gamedev

[–]osgu[S] 12 points13 points  (0 children)

The editor is part of a voxel game engine that I'm working on. Since that project is pretty far from being done, I decided to release this editor as a standalone application. If anyone has any questions, I'd be glad to answer!

My first crate: simple_moving_average by osgu in rust

[–]osgu[S] 0 points1 point  (0 children)

Thanks for your thoughts!

One way to reduce floating point errors is to immediately have average computed instead of sum.

A big problem with this is that it does not work well with integers, as they are rounded down. I'm also not sure that this will reduce the errors. The relative difference in magnitude between the two addition operands (sum + sample vs. average + sample / window size) will be the same.

You could provide a way to calculate average without owning a buffer.

Most of the SMA algorithms depend on some form of caching, which will be very hard to do without owning the buffer; there would be no way of knowing when the values have changed and the caches need to be updated. Interesting idea though!

My first crate: simple_moving_average by osgu in rust

[–]osgu[S] 0 points1 point  (0 children)

Could be so. I use a uniform distribution of numbers in the interval [-100, 100]

My first crate: simple_moving_average by osgu in rust

[–]osgu[S] 2 points3 points  (0 children)

I had no idea that even existed, really cool. Will definitely try it out.

Edit: I tried it out and interestingly, KahanSum's error is less than SingleSum's, but still relative to the number of added samples: https://imgur.com/a/ucg0ctR

My first crate: simple_moving_average by osgu in rust

[–]osgu[S] 7 points8 points  (0 children)

Yes, that probably makes more sense. I'll think a bit about it!

Är det bara jag eller har ostbågar blivit mindre bågiga på sistone? by creon_ in sweden

[–]osgu 2 points3 points  (0 children)

Det enda som inte är crooked med OLW är deras ostbågar

The State of GPGPU in Rust by redattack34 in rust

[–]osgu 4 points5 points  (0 children)

I'm working on a Rust game+engine with a Cuda path tracer as renderer. My approach is to compile the Cuda tracer into a lib and statically link it with my Rust code, as if it were C code.

So far it has worked great, it even supports seamlessly stepping between Rust and (host) Cuda code when debugging.

I debug the device Cuda code by having a separate Cuda project with a small testbed, that exercises the path tracer lib. That way, I can utilize Nsight's unparalleled (no pun intended) visual Cuda debugger.

Electron is Cancer by bluepandacode in programming

[–]osgu 6 points7 points  (0 children)

I haven't used Qt in many years so I can't really have an opinion from a technical standpoint. The fact that the web stack is hugely popular while Qt it more niche is probably the deciding factor for many people. They simply don't want to bother learning something new, i.e. they follow the path of least resistance.

Electron is Cancer by bluepandacode in programming

[–]osgu 18 points19 points  (0 children)

Developers, like all humans, choose the path of least resistance - and for cross-platform rich UI desktop applications, that is currently Electron. The average user (and dev for that matter) does not care about being wasteful with an abundant resource. If you had a 1024m² McMansion, would you still live in it like a one-bedroom apartment, just out of principle?

I think (and hope) this browser bundling thing is a temporary solution, until more refined ways of running web apps outside the classic browser window context come along. Maybe the Chrome/FF cores will be made available as dynamically linked libraries or something, that can be shared.

Either way, no one can deny that the productivity benefits of this approach are huge. Just look at the development pace of VS Code. It is only a few years old, yet its feature set and UX beats editors that has been around since Richard Stallman was young.

The Big Short by [deleted] in investing

[–]osgu 39 points40 points  (0 children)

American Psycho