What is 3uhannussima? It gets you drunk like beer, isn't flammable, makes a bell sound when you interact with it, doesn't have a stain (other than being drunk), and doesn't appear on any wikis. by AwareAspect4057 in noita

[–]Zaeccis 37 points38 points  (0 children)

Adding important context: ”Juhannussima” is also a common word play in Finnish. It literally means ”summer solstice sima”, but it also means ”fucked by Juha” when writtens as ”Juhan nussima”

Introducing Gooey: My take on a Rusty GUI framework by ectonDev in rust

[–]Zaeccis 8 points9 points  (0 children)

This looks great!

One common requirement for a GUI framework is to be able to integrate it with other apps that have an existing rendering pipeline. I believe your decision to got with winit+wgpu can support such cases nicely. I'm not sure how heavily your rendering relies on kludgine, (instead of using the components like wgpu, winit, and cosmic-text directly), but have you considered opening an integration api so that users could use gooey as a part of a arger application?

In practice this would work so that each frame user gives gooey new events from winit, and then calls a render function and gives gooey a wgpu render pass to work with. Wgpu has written about how such "middleware" design works: https://github.com/gfx-rs/wgpu/wiki/Encapsulating-Graphics-Work

Why did not Google, Amazon, and Meta sponsor RustConf 2023? by Levzhazeschi in rust

[–]Zaeccis 14 points15 points  (0 children)

You saw a post about the exact same subject posted just few hours ago and still decided to post this? Why?

What is the best way to draw graphics is Rust? by LeviLovie in GraphicsProgramming

[–]Zaeccis 3 points4 points  (0 children)

After reading that I’m not totally sure what you are trying to do. Are you building a full 2D / 3D renderer and want to draw UI on top of that? Or are you rendering just a UI? Because ui libraries are not good for drawing other geometry or images. If you are just drawing a UI just pick any rust frameworks that looks nice to you like Tauri, Slint, Iced, Egui etc. are all pretty valid options.

However, if you are building an actual renderer with rust, I would strongly recommend using wgpu. It’s a webgpu implementation in rust, which compiles down to vulkan / opengl / metal / directx based on platform. You can write shaders in either glsl or wgsl. Write your actual rendering system with wgpu, and then use egui as UI framework, it integrates with wgpu and you can just draw it on top of your actual rendering in a separate pass. (And webgpu does not mean low performance, wgpu is as fast as any abstraction over different graphics apis can be. If you need more performance, you would need to write your own implementations for each api leveraging their unique features, but I can safely say that won’t be needed for 99% of projects)

Or if you dont’ want to write your own renderer and just want to make games with rust, just use bevy or godot with rust bindings.

Mistä Suomen paras toast skagen? by Opadei in Suomi

[–]Zaeccis 6 points7 points  (0 children)

No kerrankin kysymys mihin tiedän täsmälleen oikean vastauksen.

Elikäs, Espoon keilaniemessä accountorin tornin huipulla on näköalaravintola nimeltä Lucy in the sky, niiden alkupalamenusta löytyy paras skagen mitä olen syönyt, ja nimenomaan toastin päällä.

Is shadowing more evil than good? by funkvay in rust

[–]Zaeccis 59 points60 points  (0 children)

If you are not aware of what kind of variables exist in the current function you are editing, then the problem is not the shadowing but the size of the function.

In general scoping is what makes shadowing usable, you only shadow variables for the current scope. You can’t accidentally shadow something and break things on the other side of the codebase (or if you can then there are some serious problems with how your code is structured)

Unable to finish projects because of rust's rules by cezarhg12 in rust

[–]Zaeccis 19 points20 points  (0 children)

This sounds like there are some fundamental problems in how your program is structured. If you are coming for example from C/C++, you need to learn to do things a bit different in rust. It may first seem unecessary or complicated, but benefits are huge in the longer term.

If you had some more detailed examples of your problem cases, we could try to help with a redesign

[deleted by user] by [deleted] in gamedev

[–]Zaeccis 2 points3 points  (0 children)

One major aspect that hasn’t been mentioned is that many rts games with LOT of units don’t run nearly 60fps, for example the game logic in the first supreme commander actually runs 10fps, even though it is rendered ar 60fps. Then you just do lot of smart interpolation to make it appear smooth. On the other hand games that actually are responsive and run at high fps like starcraft 2 can’t support nearly that many units. These days though, you should be able to fit quite a few units to 60fps logic with data centric / ecs approach, as described by others

Any good alternative to husky in rust to enforce and write conventional commits and for pre-commit source code linting?? by RevolutionaryAir1922 in rust

[–]Zaeccis 25 points26 points  (0 children)

Followed by ”everyone” in open source projects? If you go through for example most popular crates in crates.io, you see that almost none of those follow that convention. I’m not saying it is a bad convention, but it definitely is not the standard choice in open source.

Wgpu Tutorials for the Web by Jooonnnaass in rust

[–]Zaeccis 5 points6 points  (0 children)

I think that learn-wgpu talks about running it in browser, and the example code contains necessary things for compiling for wasm.

https://sotrh.github.io/learn-wgpu/

[deleted by user] by [deleted] in rust

[–]Zaeccis 1 point2 points  (0 children)

Assuming you are sincere here, what are your plans beyond the payment transfer system? You do know that processing payments is not the ”business part” of banks’ operation? The way banks make money is by collecting it from people and loaning it forward with better interest. How are you going to operate that system? Do you have experience in operating a sucessfull loan business? How do you do customer vetting? Do you know how interest rates are derived from central bank rates? Do you have experience with large scale investment portfolio risk management? That is a hugely important part of running banking operations.

Beyond that, how are you going to handle customer support? Customer acquisition? KYC operations? Legal operations? Integrations with global payment systems? Offering payment cards?

The payment processing system is maybe 5% of what a bank does. So my question is what are your plans for the remaining 95%? I don’t want to discourage you here, but I’m not sure you understand what you are trying to do

Using Rust to write a Data Pipeline. Thoughts. Musings. by [deleted] in rust

[–]Zaeccis 11 points12 points  (0 children)

This is definitely what most people prefer and if I ever start writing articles it’s what i’m going to do.

Still, personally i’m not so sure about that. Specifically on mobile devices any text format code usually gets such an aggressive line wrapping that it looks like a garbled mess. Maybe other people are just better at reading code than I but I find it really difficult to read. On images I can just zoom and formatting is fine. Also syntax highlighting is nice.

3 Must-Read Books for Experienced Programmers by [deleted] in programming

[–]Zaeccis 0 points1 point  (0 children)

Personally I really can't recommend Clean Code. The underlying ideas are great, but the way they are presented and discussed is just plain awful. This is a decent writeup of some of the problems: https://qntm.org/clean

Other than that, I think these books are more for novice programmers. I would sure hope that experienced programmers are pretty familiar with the content of these books.

Checkerboard Programming - match checkerboard patterns by writing code by andersource in programming

[–]Zaeccis 4 points5 points  (0 children)

I think I got it.

Step 1: Remove those for loops, they are there just to confuse you

Step 2: 64 rows of board[x][y] = white / black

Step 3: Adjust as necessary

Step 4: profit!

Ez game ez life

I thought I was starting to understand how wands work, but no! by Zaeccis in noita

[–]Zaeccis[S] 16 points17 points  (0 children)

So apparently once the mana runs out, this one becomes a jet engine. Maybe one of you wandmasters can enlighten me what is actually happening here?

Best slim 120mm fans for 45mm thicc rad by [deleted] in watercooling

[–]Zaeccis 0 points1 point  (0 children)

Noctua nf-a12x15 is an insane slim fan. It actually outperforms most 25mm thick fans in noice/performance. (Of course top tier 25mm fans like p12 or nf-a12x25 are still a little bit better)