@Arantor egui doesn't expose this for mostly the same reason it doesn't expose sound effects: it's not part of making a GUI and there's already a library for it. Rust libraries are very much Unix-philosophy-lite on this front - e.g. instead of something like OpenSSL, each algorithm has its own library.
Posts made by pie_flavor
-
RE: The Official Status Thread
-
RE: WTF is happening with Windows 11? And nothing else
@Gustav said in WTF is happening with Windows 11? And nothing else:
It's 20 fucking 24 why the fuck the fucking Windows fucking Subsystem for fucking Linux CANNOT HANDLE THE FUCKING LAPTOP GOING TO SLEEP AND THE CLOCK GOES OUT OF SYNC!!!!!!!!!!!!
I discovered that almost my entire static port range had been magically assigned to WSL with basically only dynamic ports left. A thousand errors over the past... year, including in the system clipboard, rust-analyzer, and the userland part of the graphics driver of all things, suddenly resolved themselves when I restored it.
-
RE: The Official Status Thread
@Arantor I came up with a zinger a few years ago, but then I looked it up and it had not only already been made, but in the most crufty image macro possible. So now I only tell the one about the clairvoyant dwarf on the lam.
-
RE: The Official Status Thread
@Applied-Mediocrity holy cannoli, this place is still running!
-
RE: The Official Status Thread
@Benjamin-Hall said in The Official Status Thread:
@HardwareGeek said in The Official Status Thread:
@Benjamin-Hall said in The Official Status Thread:
I have no intention and desire to up vote things
I do for channels I subscribe to, because it helps the channels grow; The Algorithm® suggests the videos to more potential viewers. I don't comment on videos, I don't "join" any channels, I don't do superchats, and I don't (yet) support any on Patreon, so it's a simple, free way I can help the creators I thing put out good content. But if YT insists on being , it makes it a lot less simple.
I don't subscribe to channels. I use Youtube almost exclusively for background music. And that's almost a random walk...ish.
That's the best time to be upvoting things, so it can remember what you like. Half the reason I folded to the adblock badgering is because of how good YouTube Music's recommendations are when you start upvoting things.
-
RE: Can you even escape from Hades?
@Gąska oh, those are all followed threads and @obeselymorbid bumping.
-
RE: Can you even escape from Hades?
@pie_flavor In fact, I've only ever been mentioned twice in history!
https://i.imgur.com/FYqbidK.png -
RE: Can you even escape from Hades?
@Gąska How can I be, when NodeBB is too retarded to even show me them?
-
RE: Can you even escape from Hades?
@error said in Can you even escape from Hades?:
I'm really impressed that after twelve escapes and seeing the "real" ending, there's still fresh voice-acted context-sensitive dialogue!
This game has by far the most written/spoken content I've ever seen in a game. It manages to be very witty throughout, and it never gets stale.
Time to hunt for the epilogue!
-
More reply-expander silliness
If you click on this post https://what.thedailywtf.com/post/1710191, and open the replies drop-down, you can click the timestamp of the first and third posts to jump to them, but not the second. No obvious reason why. @julianlam @barisu
-
RE: TIL (about the Dark Arts of HTML)
@topspin If you want to phrase it in such a silly way, sure. A Self type that is whatever the type of
self
is. -
RE: So *that's* where they got it from!
@The_Quiet_One and today I learned that Yogi Bear's name was a reference to Yogi Berra.
-
RE: TIL (about the Dark Arts of HTML)
@anonymous234 it's amazing the contortions that APIs go to, to work around the lack of a
Self
type. -
RE: The Official Funny Stuff Thread™
@boomzilla said in The Official Funny Stuff Thread™:
Googling who the idiot was that came up with common core.
-
RE: The Official Status Thread
@Applied-Mediocrity Have you tried Rider?
Or CLion, or WebStorm, depending on what it is you're doing in VS. -
RE: Security Snake Oil Inc.
@Shoreline My university has password requirements, all of which are lifted if it exceeds 16 characters. I think that's a good middle ground.
-
RE: The Official Status Thread
@anonymous234 As is to be expected. An application developer would rather just Do Thing, not Ask Permission To Do Thing first.
-
RE: Recommendations for 14-15in dev and gaming laptop
I might be a bit late on this but Gigabyte is a great company and I'd recommend looking at whatever they're currently selling. This laptop was a steal when I bought it, and when every other gaming laptop seemed to have something wrong with it like high heat or no HDD or un-upgradable RAM or no numpad on its keyboard, Gigabyte's did not. (In case you were wondering mine is the P55 Wr7.) So not really a tech recommendation but a brand recommendation.
-
RE: The Raku Programming Language
@dfdub said in The Raku Programming Language:
Just look at the average line of code and every implicit temporary that will be created in that line. Do you write explicit types anywhere? No?
Rust is actually going to get generalized ascription soon. This will let you suffix any expression with
: <type goes here>
, likex.to_string(): String
, while still being able to dot-chain after it or encase it in parentheses, for the exact purpose you just mentioned. -
RE: The Raku Programming Language
@Steve_The_Cynic said in The Raku Programming Language:
To be sure, a good IDE will explore the chain of calls and find it for me, but I can't just look at the code and see the type.
A good IDE will show the type right next to the variable declaration, so you can just look at the code and see the type.
-
RE: The Raku Programming Language
@bobjanova said in The Raku Programming Language:
@pie_flavor said in The Raku Programming Language:
A junction is ...
I actually kind of like that, although who knows if it's at all performant for anything half way complicated.
The docs say:
Rakudo has been developed with the philosophy of "make it work right then make it work fast."
Unsure which step they're on.
-
RE: Official forum improvement requests thread
@Cursorkeys said in Official forum improvement requests thread:
@pie_flavor said in Official forum improvement requests thread:
We should re-enable animated avatars.
That would re-introduce the @tufty problem. The animated lemon was OK but the one before was not.
TBH I prefer it if, generally, things don't animate on webpages.
Edit: Ohhhhhh, I see now
I've never actually learned, can anyone else answer what was the @tufty problem?
-
RE: The Raku Programming Language
A junction is a logical superposition of values. For example,
1|2|3
is simultaneously any of the values 1, 2, and 3 (also constructible with lists, likeany 1, 2, 3
). There'sany
/|
for logical-or junctions,all
/&
for logical-and junctions, andone
/^
for logical-xor junctions.A junction has two magical properties. First, if you evaluate it in a boolean context, it evaluates all its elements in a boolean context, and collapses to a single boolean value according to its logical operation. Second, any function existing on a junction's elements, automatically exists on a junction, and forwards it along, changing signatures as necessary. For example, given
sub convert-to-english(Int $x --> Str)
, despite taking specificallyInt
and notJunction
, you can callconvert-to-english(5|6)
and get「five」|「six」
. You might check if 5 is contained within the range [3, 8) withif 5 ~~ 3..^8
, but you could just as easily sayif 5 == any 3..^8
, despiteinfix:<==>
only existing between numerics, not junctions. -
RE: The Raku Programming Language
Some things that look like methods are actually keywords. This is fine. What's not fine is getting no error when you define a method with the same name, and getting no warning when you call it.
class A { method WHAT { "ain't gonna happen" } }; say A.new.WHAT; # OUTPUT: «(A)» say A.new."WHAT"() # OUTPUT: «ain't gonna happen»
-
RE: WTF Bites
@pie_flavor based on @Mason_Wheeler's post, my guess is lowercase property names.
but it absolutely does not have lowercase property names by default.
-
RE: The Raku Programming Language
I have been enlightened. Disregard all previous content about
Int:U
andtypeof
, especially the bit about calling C.
See, when you define a class, the name of that class now refers to a type object, which I previously thought roughly meanttypeof(int)
in C#. But this assumes Raku's object-model is like C#'s, and boy is it not. If I useInt
's type object, the reason that passes a type-check forInt
is because it is anInt
. Just an undefined one. It is like a typed null, a null that can only be used where a nullable Int is required and not where a nullable, say, Str is. Then when you callbless
, it makes an object just like the undefined one, except defined, and then starts the construction process. This makes the:D
and:U
syntax much clearer:Int:D
takes definedInt
s, andInt:U
takes undefinedInt
s. -
RE: The Raku Programming Language
@Mason_Wheeler Single-pass with no circles, remember? What's before in resolution order is before in runtime order.
Anyway, you can read more about things likeINIT
in this post. -
RE: The Raku Programming Language
@Mason_Wheeler In Raku the rules for this are simple. Just wrap it in
INIT { }
and it's before everything else. -
RE: The Raku Programming Language
@dkf In Raku, however, 'binding' means something convoluted involving 'containers', which are something convoluted. The upshot is you can say
my $x = 5; my $y := $x; $y++;
and have
$x
be 6. And it works for every value in every context. For example, to update a list:for @list <=> $x { $x++; }
Of course this is much more clearly written as
@list»++
, but it gets the point across. -
RE: WTF Bites
@Kamil-Podlesak said in WTF Bites:
C# take on covariance and contravariance
This is the part where Java really fucked up. Even type-erased generics can be worked around, but this part here blows. In a sane language,
Iterator<String>
is a subtype ofIterator<Object>
, andConsumer<Object>
is a subtype ofConsumer<String>
. In Java, go fuck yourself, and write outIterator<? extends Object>
every time you want to do anything. -
RE: The Raku Programming Language
Despite all these features, Raku is still a one-pass language. That means modules can't be circular, mutually recursive functions require forward declarations, and all the other fun things you normally come across.
-
RE: Request to confirm email, some lost settings
@cabrito said in Request to confirm email, some lost settings:
@boomzilla said in Request to confirm email, some lost settings:
I blame @ben_lubar.
Meanwhile, in Lubar's
basementLair ...This certainly aged like wine.
-
RE: WTF Bites
@anonymous234 said in WTF Bites:
@CarrieVS Yeah that's called
malware and tricking usersstandard practice on the web. -
RE: The Raku Programming Language
@boomzilla The entire thing grew out of Larry Wall's original delusions. He made the language. The community still operates by Rule 1.
-
RE: The Raku Programming Language
@TwelveBaud Yes, I must of forgot to mention. The reason that
@x».y
does not guarantee the same order of operations as in the list is because it's executed over several threads. -
RE: The Raku Programming Language
@topspin More syntax? Okay. Ruby is the (or an) originator of
function-name if $condition
syntax, but unless I am mistaken,function-name($^elem) for @elems
is entirely Raku in origin. Like@elems».&function-name
, but all on the same thread. -
RE: The Official Status Thread
@Parody That's the thing. It works great a lot of the time. Until it doesn't. YouTube sorts by high view count, and if you're watching a series with a very low view count, it decides you must not really want to watch the next episode because it has a low view count, but when you're watching episodes with, say, 10k views, then obviously you want to watch the next episode in the series because that's what everyone else did.