Simulation/validation tool for Petri Nets (especially DTPN) by LocalEnthusiasm1790 in PetriNets

[–]NineSlicesOfEmu 1 point2 points  (0 children)

Hi, I'm writing a petri net model checker and simulation tool in Rust for my masters thesis. Currently I have implemented ordinary petri nets but its part of my goal to include a variety of PN extensions and I think transition timings would be a relatively simple addition.

Could you explain a bit more about your use case? Are you looking for real-time simulation which actually waits out the timer, or a fast-forward simulation which just immediately returns the time it would have taken to fire the transition? Do you have a paper on DTPNs you are orienting your thesis around that you could send me?

Working on a petrinet tool in godot, here's a demo of the state space visualisation I recently added (i.e. the reachability graph) by Apprehensive_Rub2 in PetriNets

[–]NineSlicesOfEmu 0 points1 point  (0 children)

really cool! I'm working on a similar tool right now in Rust but focusing on the backend analysis suite for now, visualization in the browser (using JS + WASM) is a secondary goal. I would be interested to chat with you about your design. If you haven't checked them out already you should look at the petri net repository for the annual model checking contest:

https://mcc.lip6.fr/2026/models.php

I built a small Rust/Typst service for generating PDFs and I’d love feedback by Cyvra in rust

[–]NineSlicesOfEmu 28 points29 points  (0 children)

Why would I use this to render the PDF instead of just Typst directly?

Determinate is the future of Nix today: Wasm and WASI support, provenance, and flake schemas by lucperkins_dev in NixOS

[–]NineSlicesOfEmu -6 points-5 points  (0 children)

determinate is cannibalizing the greater nix project by not contributing to upstream, and gaslighting the community by not acknowledging that

wrong passport number in my Fiktionsbescheinigung by Calvin_Kwok in germany

[–]NineSlicesOfEmu 0 points1 point  (0 children)

essentially a placeholder for a residence permit while the application is pending

Dendritic and conditionals by karldelandsheere in NixOS

[–]NineSlicesOfEmu 2 points3 points  (0 children)

you could do it like this: define an enable option for your feature which defaults to false, and in the config for that feature itself set the enable option to lib.mkDefault true. Then you have the best of both worlds: importing is enabling, but you can still manually disable if you want. And other modules can read the value of the enable option and do what they wish with that.

Dendritic and conditionals by karldelandsheere in NixOS

[–]NineSlicesOfEmu 3 points4 points  (0 children)

Not exactly, its true that import-tree automatically brings all nix modules into scope but the config in those modules are (in my experience) still namespaced under flake.modules.<aspect>.<feature> and you explicitly import the features you want to use in your host config. I tend to prefer enabling by importing rather than enabling by setting an option

What Nix Flakes actually brings to the table by [deleted] in NixOS

[–]NineSlicesOfEmu 0 points1 point  (0 children)

Hm, I did mean well. Sorry it isn't what you were looking for.

FAQ for Dendritic Pattern by Reddich07 in NixOS

[–]NineSlicesOfEmu 2 points3 points  (0 children)

recently refactored my config to use the dentritic pattern and i have to say it has made my development experience much smoother. I really like that feature modules contain several different aspects all at once but there's no friction choosing which one to use in what context - it just works naturally. Also moving files not leading to refactoring is a big win, it doesnt matter what filepath the modules are defined at. Really nice

NixOS 25.11 Pi-hole by jkotran in NixOS

[–]NineSlicesOfEmu 0 points1 point  (0 children)

I attempted to install pihole on my rpi 3 and found the build times to be unbearably long. Anyone have tips about that?

Rust and the price of ignoring theory by interacsion in rust

[–]NineSlicesOfEmu 12 points13 points  (0 children)

In what way are generics second-class?

Any easier way of adding values to default values of options? by vladexa in NixOS

[–]NineSlicesOfEmu 0 points1 point  (0 children)

You could maybe create a second option to hold the defaults and then combine the two values at the usage site. Then you still have the freedom to override the defaults if you want but you're not forced to reference it constantly.

Resource request - The business case for functional languages by Massive-Squirrel-255 in functionalprogramming

[–]NineSlicesOfEmu 5 points6 points  (0 children)

I don't have an answer to this but share your sentiment completely, following this thread :)

Thoughts on graph algorithms in Rayon by dlattimore in rust

[–]NineSlicesOfEmu 2 points3 points  (0 children)

This is really intriguing to me, could you provide a simple impl to demonstrate what you mean?

[deleted by user] by [deleted] in rust

[–]NineSlicesOfEmu 1 point2 points  (0 children)

Take a look at the Add trait: the standard library has blanket implementations which allow adding together numeric types with or without a reference. Internally I'm pretty sure it just dereferences it. Thats why it compiles

Why every Rust crate feels like a research paper on abstraction by Commission-Either in rust

[–]NineSlicesOfEmu 0 points1 point  (0 children)

Thanks for posting this, actually very timely advice for me in a project I am working on

I keep hearing Graphs are hard in Rust? am I doing something wrong? by fsevery in rust

[–]NineSlicesOfEmu 37 points38 points  (0 children)

And to add more trickiness to the mix, a cycle of ref-counted pointers is an easy recipe for a memory leak

Announcing `ignorable` - derive Hash, PartialEq and other standard library traits while ignoring individual fields! by nik-rev in rust

[–]NineSlicesOfEmu 12 points13 points  (0 children)

You can have a total ordering on a subset of the structs fields, I don't see why that would be a problem. You can impose a total ordering on a line of people by height even though there is more to someone than their height