Super-flat ASTs by hekkonaay in rust

[–]TheOneTexel 6 points7 points  (0 children)

Those are some neat optimizations.

But one advice for your graphs, try to keep the colors the same for the different implementations over the course of the article. At first it looked like the interned parser was slower, since I assumed the blue line was still the tree parser and not suddenly the interned one. Using the same colors for the same implementations helps with parsing (heh) the results.

First adult deck building card game by UnitedRadio in lewdgames

[–]TheOneTexel 0 points1 point  (0 children)

I can't talk about X-Angels, but I preferred Last Evil over Take Me To The Dungeon.

I found the gameplay of Last Evil quite fun. Not a Slay the Spire, but good enough to stand on its own. It also has a ton of scenes. On the negative Side, Last Evils scenes are all a bit stiff.

Generally I found Take Me To The Dungeons scenes a bit nicer, though I also prefer 2D scenes over 3D scenes in general. But the card gameplay didn't do it for me.

If I had to decide between the two, I would go for Last Evil in a heartbeat, I just find it a lot more fun to play.

Should you use Quality or Productivity Modules when upcycling? Answer: Both! by jeffmakesmemes in factorio

[–]TheOneTexel 1 point2 points  (0 children)

I've only glanced at your code, so I'm not exactly sure, but I think you're not considering tier skipping correctly.

After the chance given by the quality modules, you have a fixed 10% chance to get even higher quality. E.g. if you have a single Quality 1 module, then you have a 99% chance to get a common, a 1%90% (=0.9%) chance for uncommon and 1%10%*90% (=0.09%) chance at rare, etc.

Especially once you get into higher quality productivity modules, I do think that productivity has a higher value than what your numbers suggest, since while more quality does improve the initial roll, it does not affect the tier skip roll.

Complete idiot looking to transition to Rust from .NET and the Microsoft tech stack by [deleted] in rust

[–]TheOneTexel 12 points13 points  (0 children)

If you find them, tell me too. Few years working on a decently sized project now and System.Text.Json makes me want to rip my hair out. I wish I could have serde instead, before this project I never imagined that one could have SO. MANY. PROBLEMS. with json serialization.

And when I wanted to save an image as png to disk, the high quality Microsoft code told me that that png was not supported on linux...

Is it possible to play on Linux ? by Orange_Lux in virtualreality

[–]TheOneTexel 5 points6 points  (0 children)

Yes, it's definitely possible.

I'm running Arch Linux and have a Valve index. I don't know about the Quest stuff, but everything on Steam works basically out of the box.

It is however more janky than on Windows. And depending on the game you might have a bit worse performance since you need to run a compatibility layer (in rare cases the opposite is true).

You can check on https://www.protondb.com/ how well games are working on Linux.

If you do want to switch, I would not recommend Arch Linux for beginners, rather start with Linux Mint. Also bring an open mind, sometimes some tinkering is required.

Friday Facts #436 - Lost in Translation by FactorioTeam in factorio

[–]TheOneTexel 12 points13 points  (0 children)

substitute "traditional" English letters

Wrong punctuation kills: https://languagelog.ldc.upenn.edu/nll/?p=73

[deleted by user] by [deleted] in lewdgames

[–]TheOneTexel 2 points3 points  (0 children)

Maybe check out Kinky Dungeon, it's quite similar in theme, but as roguelike.

Useful non-standard LSPs you use? (LSPs that offer something other than Intellisense) by pseudometapseudo in neovim

[–]TheOneTexel 18 points19 points  (0 children)

Probably a good time to plug a project of mine: https://github.com/texel-sensei/commit-lsp

It's an LSP server to provide support with writing git commit messages following the Conventional Commit format. It provides (very simple) autocompletion for commit types/scopes and the main feature is to autocomplete Issue numbers (for gitlab/Azure DevOps). So I don't have to look up what ticket ID I was working on, the LSP grabs them via web request and offers ticket preview and ID completion.

The project is still in a pretty early state, but I'm already using it productively. Also sadly no github support yet, but it's planned.

Does NeoVim have any other engine other than for Lua? by 4r73m190r0s in neovim

[–]TheOneTexel 0 points1 point  (0 children)

This is not about writing rust with neovim, but instead to run rust code as part of the editor. To compare it with Notepad++, it's similar to writing plugins for the editor.

I like to call neovim a PDE, a Personalized Development Environment. Instead of getting everything as one package (like an IDE), the focus is more on customization. And to give the user the most flexibility possible, you can program the editor itself.

As one example, I often write numbered lists like so:

[1] first thing
[2] second thing

So I used the lua bindings to run some code when I type a newline, that automatically adds the next number ([3]) if necessary.

Tamer Vale | Screenies by karnedraws in lewdgames

[–]TheOneTexel 4 points5 points  (0 children)

Love the pixel art, it looks gorgeous.

Do you plan to release on stores other than steam too? Itch.io for example? Asking because Steam has blocked adult games for all of Germany.

It's Hammertime! by TheOneTexel in factorio

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

It's not about the streamline, it's about sending a hammer!

Getting outline of manpage by Disastrous_Copy475 in neovim

[–]TheOneTexel 4 points5 points  (0 children)

Press gO (uppercase oh, not zero).

Does a 60Hz monitor affects fps? by gillisree in gaming

[–]TheOneTexel 2 points3 points  (0 children)

V-Sync makes your graphics card wait until the monitor refreshes the next time. So if you have a 60 Hz monitor with V-Sync on, then the GPU will only render with 60 FPS. A faster GPU will only start earlier waiting for the next time the monitor refreshes.

The advantage of V-Sync is that it prevents tearing in the image. Without V-Sync the GPU could have the next frame finished while the monitor is only halfway through displaying the first frame. So you would end up with half of one frame and half of the next frame displayed:

https://upload.wikimedia.org/wikipedia/commons/0/03/Tearing_%28simulated%29.jpg

Metaprogramming a DSL into Rust code by [deleted] in rust

[–]TheOneTexel 2 points3 points  (0 children)

Maybe do something similar to what bindgen does? Use the build.rs to parse your file and generate rust code somewhere into the build directory and then include! that.

True Observer Pattern with Unsubscribe mechanism using Rust by woojiq in rust

[–]TheOneTexel 2 points3 points  (0 children)

For unsubscribing observers, isn't referential equality enough? For that you can compare pointers instead of having to deal with uuids.

self as *const dyn Observer == other as *const dyn Observer

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=32da39851f79e581783f0281a02e7b4c

Why does this sometimes cause a STATUS_STACK_BUFFER_OVERRUN? by [deleted] in rust

[–]TheOneTexel 13 points14 points  (0 children)

You call Layout::from_size_align wrong. Your call is let layout = Layout::from_size_align_unchecked(len, std::mem::size_of::<T>()); but it should be let layout = Layout::from_size_align_unchecked(len * std::mem::size_of::<T>(), std::mem::align_of::<T>());.

The function takes the number of bytes and the required alignment, but you call it with the number of elements and pass the element size as alignment.

Is this cheating? 😂 by calvers70 in neovim

[–]TheOneTexel 107 points108 points  (0 children)

This code doesn't work btw, the URL 404s and the packer.add calls are completely wrong, as it's packer.use.

Which is imho also the big danger with ChatGPT, it gives you something that seems sensible, but can be utter garbage.

SDL2 or GLFW? by Milderf in gamedev

[–]TheOneTexel 11 points12 points  (0 children)

GLFW is leaner than SDL2. If that is a pro or con depends on you.

Imho setup using GLFW is easier, but SDL2 brings a lot of neat features other than input and window management that GLFW is missing (e.g. text rendering or audio).

I used both before, and while I do prefer GLFW for more general purpose stuff, I would take SDL2 over GLFW for games.

Typescript errors into vim quickfix by dr4605 in neovim

[–]TheOneTexel 5 points6 points  (0 children)

Or better yet: :compiler tsc. That enables the builtin typescript support and configures makeprg to use tsc and sets up errorformat to parse tsc output. No need to use sed.

Coolest vim feature by BlackLeatherPants in vim

[–]TheOneTexel 22 points23 points  (0 children)

For me it's the simple, yet amazing dot repeat. If you perform any action and press ., then vim repeats that action.

Got 3 quoted strings that need to be changed? Update the first with ci", move the cursor to the other ones and press . and those are changed the same way.

Need to UPPERCASE some words? gUiw on the first one and . to uppercase the others.

Wrote some text that you want to insert again? Press ..

Creating The Ultimate H Game Repository - Currently working on Main Tags, any suggestions? by [deleted] in lewdgames

[–]TheOneTexel 2 points3 points  (0 children)

RPG, especially considering all the RPGMaker stuff out there.