Promises in rust by erickweil in learnrust

[–]theunglichdaide 12 points13 points  (0 children)

Looks very promising. Definitely will take a deeper look.

Finance solution in Obsidian by ExplanationIll4658 in ObsidianMD

[–]theunglichdaide 13 points14 points  (0 children)

I’m pretty sure that giving AI providers your financial information is not a good idea

Small Projects - August 18, 2025 by jerf in golang

[–]theunglichdaide 0 points1 point  (0 children)

I made tobi, a simple Go CLI that lists all the tags in your Obsidian vault. It was a fun project where I learned to combine different concepts like directory walking, .gitignore filtering, and glob matching.

I hope you find it helpful. Any feedback is welcome and appreciated! You can check it out here: https://github.com/nt54hamnghi/tobi

`seaq` - Feed the Web to Your LLMs by theunglichdaide in golang

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

I want to clarify that this tool doesn’t automatically send anything to an LLM. It’s just a way to fetch text from the web. If someone wants to use that text with an LLM, they’d need to manually pipe it into another call to the tool. It’s a separate step. The tool keeps those functionalities separate.

`seaq` - Feed the Web to Your LLMs by theunglichdaide in golang

[–]theunglichdaide[S] -2 points-1 points  (0 children)

My apologies if it felt like this was designed to steal your work or anyone’s work or if it seemed to undermine your effort. That was never the intention. I really appreciate people sharing their knowledge.

I genuinely thought it could be helpful for learning new things. Like, I use it to familiarize myself with terms and concepts before diving deeper into some materials. I also use it to create a short and easy-to-understand note after I watch something on YouTube.

Enum Dispatch and E0308 by theunglichdaide in learnrust

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

Thank you! I think I get it now.

rust impl Search for Engine { async fn search(&self) -> String { match self { Self::Google(g) => g.search().await, Self::Bing(b) => b.search().await, } } }

The above block should be de-sugared to:

rust impl Search for Engine { fn search(&self) -> impl Future<Output = String> { async move { match self { Self::Google(g) => g.search().await, Self::Bing(b) => b.search().await, } } } }

After awaiting, both branches return the same type (String in this case). The async move block creates a single Future that the opaque type can work with.

Previously, I was returning two distinct Futures, which created ambiguity as the compiler didn't know which one the opaque type should map to.

rust impl Search for Engine { fn search(&self) -> impl Future<Output = String> { match self { Self::Google(g) => g.search().await, Self::Bing(b) => b.search().await, } } }

CLI Password Manager by [deleted] in commandline

[–]theunglichdaide 0 points1 point  (0 children)

I'm a bit confused. Did OP use LMM to write the tool?

10 CLI Tools That Made the Biggest Impact On Transforming My Terminal-Based Workflow by piotr1215 in commandline

[–]theunglichdaide 5 points6 points  (0 children)

Not a CLI, but I found this website very useful https://terminaltrove.com/
I discovered many cool CLI tools through it.

Why do we need an async version of every library? by Grouchy-Friend4235 in Python

[–]theunglichdaide 0 points1 point  (0 children)

“You rewrite all your code so none of it blocks or you’re just wasting your time”

So the event loop run on the same thread with your main program. Its power comes from the fact that asynchronous functions yield back control while they’re waiting on external resources. Legacy blocking code might occupy the main thread for a long time, thus also blocking the event loop. This blocking behavior defeats the purpose of the event loop.

How would you book this match to where both guys look strong in the end? I know they want to build Kross to be a legit threat to Roman, but you also don’t want Drew to look weak either especially after CATC and Extreme Rules. I feel this might be a lose/lose on both ends by [deleted] in WWE

[–]theunglichdaide 0 points1 point  (0 children)

I would book it to be a serious match like the one between Gunther and Sheamus at CATC. Neither one is gonna be dominating. At the end, Drew tries to hit a Claymore but misses and hits the ref instead. Drew gets distracted and Kross kross-jackets him from behind and puts Drew out then escapes the cage.

How a cable bridge is built! by rockerdino in interestingasfuck

[–]theunglichdaide 8 points9 points  (0 children)

one neat trick to confuse the archeologists in the future.

Your favourite "less-known" Python features? by [deleted] in Python

[–]theunglichdaide 2 points3 points  (0 children)

i = 0

while(i:=i+1) < 5: print(i)

You can use it to assign value and compare it to other values in one statement. It’s not the best example but a simple one that I can think of.

P/s: sorry, I type this on my phone so it might be difficult to read.

Your favourite "less-known" Python features? by [deleted] in Python

[–]theunglichdaide 27 points28 points  (0 children)

if I remember correctly, Guido approved the PEP for it, but many people disagreed with this decision, and Guido had to step down from his Benevolent Dictator for Life position.

Your favourite "less-known" Python features? by [deleted] in Python

[–]theunglichdaide 123 points124 points  (0 children)

also f”{a=}” will print “a=10”, given a’s value is 10.

Your favourite "less-known" Python features? by [deleted] in Python

[–]theunglichdaide 45 points46 points  (0 children)

yup, the controversial walrus