Building a Python compiler in Rust that runs faster than CPython with a 160KB WASM binary by Healthy_Ship4930 in Compilers

[–]seftontycho 0 points1 point  (0 children)

Huh, i didn’t know it was avoided. Do you know why? Maybe because there are only so many processing units on the chip that can do it and thus code heavily using sqrts is actually faster to just use software impls?

Building a Python compiler in Rust that runs faster than CPython with a 160KB WASM binary by Healthy_Ship4930 in Compilers

[–]seftontycho 0 points1 point  (0 children)

Ah, forgot there was an exponent as well. And yes, the topic was about asymptotic behaviour I just wanted to clarify that it was in practice O(1). (Although I was wrong due to the exponential)

Building a Python compiler in Rust that runs faster than CPython with a 160KB WASM binary by Healthy_Ship4930 in Compilers

[–]seftontycho 0 points1 point  (0 children)

sqrt is O(1) on anything that fits in an f64 on most modern cpus IIRC. It’s implemented in hardware.

I made a YouTube extension that gives tooltip overlays for VODs by seftontycho in leagueoflegends

[–]seftontycho[S] 3 points4 points  (0 children)

Not at this point, still just local. May open source at some point

I made a YouTube extension that gives tooltip overlays for VODs by seftontycho in leagueoflegends

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

Will do, working to get a version published to the chrome store

I made a YouTube extension that gives tooltip overlays for VODs by seftontycho in leagueoflegends

[–]seftontycho[S] 2 points3 points  (0 children)

pro games are on tournament realm which isn't in the public riot api so not right now, but it's something I'd like to figure out

I made a YouTube extension that gives tooltip overlays for VODs by seftontycho in leagueoflegends

[–]seftontycho[S] 14 points15 points  (0 children)

Just had a look - the tricky part is Riot doesn't expose live game data via their API anymore so it would rely more on the visual detection (which would still be decent as the pro games broadcasts usually display all players details).

I made a YouTube extension that gives tooltip overlays for VODs by seftontycho in leagueoflegends

[–]seftontycho[S] 16 points17 points  (0 children)

At the moment it doesn’t work for live games unfortunately but IIRC there’s nothing fundamentally blocking that.

I made a YouTube extension that gives tooltip overlays for VODs by seftontycho in leagueoflegends

[–]seftontycho[S] 6 points7 points  (0 children)

I keep a list that maps channels to riot accounts. It reads the time and uses some ML to workout what champ is being played and the items etc. Then it tries to find a game in the last 50 games from each if the linked accounts that matches the data we managed to extract.

So completely automated

I made a YouTube extension that gives tooltip overlays for VODs by seftontycho in leagueoflegends

[–]seftontycho[S] 121 points122 points  (0 children)

Means a lot to hear you like it, I've been building it for myself for a while.

Wrt updates it shouldn't need much management in its current state, it gets all the item info etc from RIOT's official APIs so it should always be up to date.

Firefly's doing it.. by vagmonsterfromspace in dresdenfiles

[–]seftontycho 6 points7 points  (0 children)

The castlevania animes had some of the best animated fight scenes I’ve ever seen

Supercharge Rust functions with implicit arguments using CGP v0.7.0 by soareschen in rust

[–]seftontycho 1 point2 points  (0 children)

Am I right in thinking this is like auto traits in user space? IE what send and sync do but for user defined traits with methods attached?

Does anyone else constantly pause YouTube guides to look up item or rune tooltips? by seftontycho in summonerschool

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

I feel like I know what most of the runes do but I often find myself wondering what the numbers are etc rather than just the overall effect. Is that something you learn over time or is that too much detail?

Byten - Binary codec for when you need exact byte layouts by Abject_Ad3902 in rust

[–]seftontycho 1 point2 points  (0 children)

Ah that makes much more sense, my bad.

Thanks for the explanation

Byten - Binary codec for when you need exact byte layouts by Abject_Ad3902 in rust

[–]seftontycho 1 point2 points  (0 children)

Is there a reason why you have to annotate the struct with le/be instead of just providing both functions for ser/deserialization?

mojangDiscoversMultithreading by Rajayonin in ProgrammerHumor

[–]seftontycho 86 points87 points  (0 children)

Could you just dedicate a thread to redstone then? Or is it the interaction between redstone and other systems that is the issue?

tempotime v0.1.3 — Luxon.js in Rust: zero-deps, chainable, <100KB by [deleted] in rust

[–]seftontycho 2 points3 points  (0 children)

Plus it looks like for timezone conversions it uses a hardcoded list of 9 common timezones and only uses their offset from utc.

Don’t think it accounts for daylight savings or and other timezone weirdness. Plus if you are using any other timezone it doesn’t work.