Ephera
- 14 Posts
- 1.12K Comments
Clap has an entry in their cookbook for a REPL:
- Derive-API: https://docs.rs/clap/latest/clap/_cookbook/repl_derive/index.html
- Builder-API: https://docs.rs/clap/latest/clap/_cookbook/repl/index.html
Of course, this works best for simple stuff, where you just have individual commands to parse.
For a Python-style REPL with a full-fledged language attached, I would not use that approach.
There’s probably some REPL languages implemented in Rust already out there, where you can look at their approach.
Hmm, seems to work like you want for me. Using Plasma 6.6 with the icons-only task manager…
Coming at it from the Rust ecosystem, I’d primarily opt for uploading release binaries somewhere. You don’t particularly need a setup script, since Rust programs are generally self-contained.
Publishing a package in addition to that really isn’t hard, but would be my secondary choice, since users are not likely to have
cargoon their system.
Well, andcargocompiles on the target machine, which is great for supporting unusual architectures, but you may have C libraries included where it’s just a gamble whether you can compile them on a given target system.
Should perhaps add that you can generally run Linux distributions off of a USB stick for that first impression.
Just follow a tutorial for how to install Linux and when you see the actual installer on screen, you can just close the installer without installing and then click around in the UI.
It will be slow, because it’s running off that slow USB connection, but otherwise this is pretty much the operating system as it is when fully installed.
Ephera@lemmy.mlto
Python@programming.dev•An announcement from the Steering Council regarding the JIT project
1·12 days agoI do enjoy how much time they spent explaining that mommy and daddy are not arguing. Makes it feel all the more like they’re arguing.
Really doesn’t help, though, that they are effectively saying “stop doing that right now and explain yourself”.
Like, man, what predates this post? Did they ask the JIT devs before to submit a PEP and they just didn’t do it?I will say, a lot of this impression comes just from how open-source works.
You can’t really go up to someone privately before you make the conflict public, because all communication is public.
And of course, many people are involved here. Setting a deadline and all that helps those people to actually get coordinated. Maybe the folks on the Steering Committee just know that to be the case…
I always recommend Oh My Git.
Ephera@lemmy.mlto
Asklemmy@lemmy.ml•With regard to arts and culture, what would you call the view, whether you agree with it or not, that "everything's been done?"
6·19 days agoNot quite a direct answer, but I feel like this world view is linked to seeing art primarily as a commodity rather than a way to express emotions.
With expressive art, it doesn’t particularly matter whether you write the millionth poem in a standard rhyme scheme and meter, so long as what you express comes across.
But commodity art is explicitly ‘clean’, it does not carry a message or at least not a particularly complex/interesting message.And then, yeah, suddenly you ask yourself why would someone look at this particular drawing of a dragon, when there’s been a million drawings of dragons before.
Those are actually two different etymologies/meanings. Amazingly, the word “impregnable” itself has two meanings, which are kind of the opposite of each other.
See etymology 1 and 2 here: https://en.wiktionary.org/wiki/impregnable
For “impregnate”, it lists the meaning “to fill pores or spaces with a substance” under the same etymology as knocking someone up (which is etymology 2 above): https://en.wiktionary.org/wiki/impregnate
Ephera@lemmy.mlto
Linux@lemmy.ml•How do you restore ghosted window when going from dual monitor/laptop setup back to laptop?
1·20 days agoAlt+F3 can also work (possibly in addition to Alt+Space)…
Same. For whatever reason, I kind of hate all cursor themes. I disliked Breeze the least, then thought about how I’d want to change Breeze to improve it, realized that would look much worse, and since then I’ve been content with Breeze.
Ephera@lemmy.mlto
Funny@sh.itjust.works•Chinese robot tries to dance like Michael Jackson
9·26 days agoYeah, much more impressive than these choreographed performances.
Yeah, certainly not uncommon for dictators to murder people on one side, but portray themselves as loving animals on the other…
Yeah, the long explanation: https://en.wikipedia.org/wiki/Adolf_Hitler_and_vegetarianism
Had a refinement yesterday, where we decided that we should add all tickets of an epic individually into the milestone (except for two).
And for whatever reason, our project manager had decided to use the in-browser split view and was struggling against that, but also just was about to do it in some cumbersome way. I think, he wanted to manually compare the list of issues in the epic vs. the milestone.Either way, I could tell that he’d need 10+ seconds to even get started. And telling him how to do it would probably take equally long. So, I just open each issue of the epic in a new tab and check on each tab that the issue is in the milestone or add it, then close the tab. And yep, I was long done when he was still trying to find the issue list for the milestone.
That was certainly one of those moments. 🫠
He isn’t entirely familiar with that issue tracking UI, so it’s fine, and of course, it is my job to be good with computers and all that, but still felt wild that he could’ve easily needed ten times as long to do the same thing.
Last week, some LLM bot commented under one of our issues and it became apparent pretty quickly, that it is a bot. So, I went to report it (incredibly the report menu did say they want reports for bots).
I filled out the reporting form probably five times in total, trying at different times of the day. Every time, I got an error 500 (Internal Server Error) as response.
Later, I checked my mails, and saw that actually two of my reports did go through, meaning I created two tickets on their side.What those mails also said: They’re very sorry, if it takes longer, since they’re currently experiencing a higher number of reports.
Gee, I wonder why.
The funny part is that upon reading your question, I figured surely the Wikipedia page would have that information. Then I saw that it said in the first few words:
Xbox (stylized as XBOX)[[2]](https://www.theverge.com/news/931918/microsoft-xbox-rebrand-caps)
…which links back to the same article. Which is how I found out that the article answers your question. 🙃
The use of all caps for Xbox is a return to original form, though. Microsoft’s first Xbox logo for its console was all caps, and the company has favored using similar capped versions for the Xbox 360, Xbox One, and Xbox Series X / S console logos.
Ephera@lemmy.mlto
Programmer Humor@programming.dev•Microslop official documentation on how to ground an AI
15·1 month agoIt’s a reference to another Microsoft classic: https://www.windowscentral.com/software-apps/microsoft-caught-plagiarizing-graphics-with-ai-slop-microsoft-continvoucly-morged-my-diagram-there-for-sure
Apparently, that’s American English. And for whatever reason, it’s the British that are less hoity toity about it:
- “brackets” or round brackets ( )
- square brackets [ ]
- curly brackets { }










I find that setting the power profile to “Power-Saver” makes a huge difference.
KDE has support for that built-in, although I’m not sure, if distributions install the corresponding daemon on desktop systems: https://gitlab.freedesktop.org/upower/power-profiles-daemon
You should be able to cycle through power profiles with Meta+B on KDE.
You can also see and change the profile via the systray icon for the battery, but on a desktop system, that presumably won’t be shown by default.
Otherwise,
powerprofilesctlis also an option, as described in that link.