[-] edinbruh@feddit.it 9 points 7 hours ago

France ๐Ÿคข

Come here in Italy where there is no tipping culture and you can hate pickpockets all you want

[-] edinbruh@feddit.it 3 points 17 hours ago

Wait, you mean like permanently? Like Maud?

[-] edinbruh@feddit.it 12 points 1 day ago

Nah, boy. You gotta own it all the way

[-] edinbruh@feddit.it 1 points 1 day ago

3 coffee shots. And that's it

[-] edinbruh@feddit.it 2 points 1 day ago
  • they both suck in different areas and excell in others
  • Vim is only useful when SSH-ing into an embedded device. Emacs can't even do that. So I agree...
  • Tautology
  • Tautology
  • Yes, but you still need C in a handful of situations

Adding:

  • All Unix style shells suck, and the shell should not be based on human readable text, but on serializable objects like in powershell
  • The kernel should support windows style acls
[-] edinbruh@feddit.it 2 points 2 days ago

But if it had that issue, you could have solved it by mounting gtk settings info the flatpak

[-] edinbruh@feddit.it 2 points 2 days ago

Some apps Will draw their own cursor and there's nothing you can do about it. However, what's happening here might be something else, so, are these apps in flatpak?

[-] edinbruh@feddit.it 2 points 2 days ago* (last edited 2 days ago)

I'll give you a fast-forward of the subjects you need to study to actually learn this stuff (with links). Many of these are part of typical computer science curriculums. However, most will exclude at least some of this to its fullest. Note that it's a lot of knowledge, you might find it frustrating to just deep dive into it on your own, don't take it the wrong way, maybe follow an actual course and you will be guided into all of this. Maybe I'll also try to give a run-down, skipping the preupedeitic knowledge... later... if I have time.

P.s.: to get the general feeling you don't really need to know all of this tho. Just skim it. And dive deeper if you like it.

  • Any respectable computer scientist needs to know at least some first order logic https://en.wikipedia.org/wiki/First-order_logic
    • Read the semantics part. You don't need everything, but you must understand what it means for a Formula to be a logic consequence of a set of formulas
    • Read a bit the deductive systems part. I find "natural deduction" (in detail here https://en.wikipedia.org/wiki/Natural_deduction) easier to understand (more... Natural) however, your mileage may vary, many people find it confusing, hence why "sequent calculus" was invented. We'll use the sequent calculus later
  • You need to know lambda calculus https://en.wikipedia.org/wiki/Lambda_calculus If you know any functional programming language it will be easier, but it's optional
    • You can learn it on its own, but it fits better as part of a "foundations of computer science" course. I don't have a link for that.
  • You also need to know a bit of programming in basically any strongly-typed language. This will give you some kind of general idea of what types and type systems are.
  • Now you can put together what you know of types and sequent calculus, and learn what type derivation rule are https://en.wikipedia.org/wiki/Typing_rule
    • Now you understand the meme
    • You can also check out what type systems are as a whole https://en.wikipedia.org/wiki/Type_system
    • We have skipped Curry-Howard, but you can see how typing rules look a lot like logic deduction rules, in particular sequent calculus
  • Hooray, time for Curry-Howard https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspondence they basically notice the same similarity you just noted, but take it a step further, they can do it because they know other logics other than first order logic
  • The next step, if you are interested, are theorem provers, which are the direct application of the correspondence https://en.wikipedia.org/wiki/Proof_assistant
    • Check out rocq or agda
[-] edinbruh@feddit.it 8 points 3 days ago

I was aware of that, but I didn't want to do a full write-up from zero knowledge to type theory...

Maybe I'll do it later tho. Because I enjoy explaining this stuff.

Anyway, despite the comedic delivery, that comment should give a 1st year CS student all the keywords they need to research the subject. Especially the letters between Curry and Howard, which are referred to as the "Curry-Howard correspondence"

[-] edinbruh@feddit.it 27 points 3 days ago

Oooooohhh! That's my field of study!

So, you know how in programming you have data types (like int, float, structs etc...) well, they are actually math.

In math, more specifically in logics, there's these things called "judgement derivation systems". They are basically sets of rules that tells you if you can derive a judgement, from a set of hypothetical judgement. The most notorious are sequent calculus and natural deduction. Both are used to determine if a logic formula is consequence of a set of hypothesis.

You see, one day Mr Howard wrote to Mr Curry: "I was working on a type system for lambda calculus, and I noticed it kinda look like natural deduction" and curry answered: "wow, that's cool, I'll tell you more, a type system for this other thing kinda looks like combinatory logics" and then they both went "could it be that every type system is actually a logic deduction system, and every logic deduction system is actually a type system?" And this is what modern type theory (and theorem provers) are based on.

Now, formal type systems are often defined as judgement systems. More specifically, they look like sequent calculus, and they use a "context" object, which is often identified with the letter gamma.

[-] edinbruh@feddit.it 221 points 5 days ago

Two pairs of scissors

69
submitted 2 months ago by edinbruh@feddit.it to c/opensource@lemmy.ml

cross-posted from: https://feddit.it/post/28858403

A friend and I wanted to use a Wiimote as a PC remote for movie night. We have tried various existing software, but all had some issues: some were old Xorg-only programs, some didn't have proper IR tracking, and all were abandoned by the developer. But most of all, no software (even modern remappers like InputPlumber) had any support for key combos. So, we set out to write our own.

Some of our requirements were:

  • Key combos (the wiimote has only few buttons)
  • Proper IR tracking
  • The ability to enable or disable the IR with a key combo
  • Having no observable latency

We first developed "esperto" a powerful system for describing and detecting key combos, which we implemented in this library. It is generic so it can be used on pretty much anything that needs combo detection. At first, we intended to plug that into InputPlumber, but then decided it would be easier to do everything ourselves.

So, we ported this IR tracking algorithm from Hector Martin to rust, and put it together with our esperto library, and this is the result. It is extremely fast (mostly dominated by the actual latency of evdev's and uinput's UAPI), and it meets all of our requirements. And we already have ideas for future improvements, for example how to add support for wiimote extensions.

86
submitted 2 months ago by edinbruh@feddit.it to c/linux@lemmy.ml

A friend and I wanted to use a Wiimote as a PC remote for movie night. We have tried various existing software, but all had some issues: some were old Xorg-only programs, some didn't have proper IR tracking, and all were abandoned by the developer. But most of all, no software (even modern remappers like InputPlumber) had any support for key combos. So, we set out to write our own.

Some of our requirements were:

  • Key combos (the wiimote has only few buttons)
  • Proper IR tracking
  • The ability to enable or disable the IR with a key combo
  • Having no observable latency

We first developed "esperto" a powerful system for describing and detecting key combos, which we implemented in this library. It is generic so it can be used on pretty much anything that needs combo detection. At first, we intended to plug that into InputPlumber, but then decided it would be easier to do everything ourselves.

So, we ported this IR tracking algorithm from Hector Martin to rust, and put it together with our esperto library, and this is the result. It is extremely fast (mostly dominated by the actual latency of evdev's and uinput's UAPI), and it meets all of our requirements. And we already have ideas for future improvements, for example how to add support for wiimote extensions.

9
submitted 3 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se

My god! I have been stuck here for hours! I know there's a shortcut after the third gauntlet, but I can't even beat the second! I only beat it once and then died in the first wave of the next one! High halls was a piece of cake compared to this, at least you didn't have overlapping waves and so much area denial. And those flying things are fucking annoying, they are always barely out of reach! Why is everyone always ranting about high halls and not this?

Please, tell me it's the last time I have to deal with these ridiculous gauntlets. Or at least that there will be checkpoints. This is like a forced boss rush but worse because at least bosses are fun.

26
submitted 3 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
32
submitted 3 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
47
That's just mean (feddit.it)
submitted 3 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
33
submitted 4 months ago* (last edited 4 months ago) by edinbruh@feddit.it to c/Silksong@indie-ver.se

I just did the twisted child ending. I wanted to get all silk hearts before, but I was so frustrated by failing The Unravelled that I had to leave it and try some good bosses instead. I'd say The Unraveled is on par with Broodmother as worst boss yet.

34
Here we go again (feddit.it)
submitted 4 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
23
submitted 4 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se
29
submitted 4 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se

I'm still not over how bad the broodmother was

25
submitted 4 months ago* (last edited 4 months ago) by edinbruh@feddit.it to c/Silksong@indie-ver.se

I hate this bossfight, I've been at it for like 5 hours, it's so annoying, everything is absolutely random. And the reward is too low... 220 rosaries? Seriously? I could get those in 3 minutes by farming the three pilgrims next the halfway home!

Edit: I just did high halls, it took fewer attempts than broodmother. This is bullshit.

38
submitted 4 months ago by edinbruh@feddit.it to c/Silksong@indie-ver.se

Still easier than delivering the flower, tho

view more: next โ€บ

edinbruh

joined 3 years ago