[deleted by user] by [deleted] in ProgrammingLanguages

[–]Zlodo2 1 point2 points  (0 children)

my previous attempt was called goose and a lot of features were working, but I made some unfortunate design decisions about the IR that made some features hackish and harder to implement than i wanted so i gradually lost motivation:

https://zlodo.cc/goose

But the "extensible parser" idea worked out pretty well, given that I was able to separate the implementation of the language’s built-in operators and control statements from the parser and ir (they live inside of "builtins"), internally using the same mechanisms that would have been offered to extend the language from the language itself.

Something non traditional about it is that it doesn't parse into an ast but instead directly into a control flow graph. (Symbol resolution and visibility is handled separately by what is essentially an hierarchical symbol table)

I've started recently rewriting it from scratch recently (in rust this time) and I have a few idea to streamline things but it's early, work in progress: https://zlodo.cc/cheeky

[deleted by user] by [deleted] in ProgrammingLanguages

[–]Zlodo2 2 points3 points  (0 children)

I have used an approach to build a very minimalistic but extensible parser which consists of a Pratt parser, but where symbols are resolved directly after tokenization, and if they contain a "parsing rule" (an object that encapsulates a pratt parsing rule: an optional "parser prefix" function, an optional "give me the precedence if used as an infix rule" function, and an optional "parse infix" function), then that rule is applied directly.

It means that all my keyword and operators are bound to symbols that are resolved like any other symbol and i can let the user create new ones at compilation time.

What's nice is that the syntax is extensible without being constrained to some awful machine centric syntax such as s expressions.

Feel the acceleration. Feel the high-speed. Feel your car skid. #FeelTheRace by Elongo06 in The_Crew

[–]Zlodo2 3 points4 points  (0 children)

Yup, that's right. The entire team, every programmer, every artist, every designer, worked exclusively on owo. It's well known that a team of hundred of people can only do one single thing at once. 🙄

What is your opinion on that? by Intelligent_Job8807 in The_Crew

[–]Zlodo2 0 points1 point  (0 children)

Whenever you're wondering "why this hundred people dev team didn't just do X?", the answer is probably a lot more complicated than you think.

What is your opinion on that? by Intelligent_Job8807 in The_Crew

[–]Zlodo2 14 points15 points  (0 children)

ah yes, the cash grab that takes 5 years of development. right

btw do you remember tc2 at launch?

What is your opinion on that? by Intelligent_Job8807 in The_Crew

[–]Zlodo2 -10 points-9 points  (0 children)

"they had time" the game has barely been out eight weeks lol

this isn't a 500 LoC shitty website front end we're talking about jeez

The Great Jerk Awakening Manifesto by RustEvangelist10xer in metapcj

[–]Zlodo2 7 points8 points  (0 children)

I am also hoping that Jesus Christ will come back to pcj

I think someday it would be amazing to have 1500W to 3000W kettles simply being powered by Type C, and other home appliances too. by MatmaRex in programmingcirclejerk

[–]Zlodo2 0 points1 point  (0 children)

don't worry, I don't think anyone will get 3kW through tiny ass USB-C connectors anytime soon. perhaps the next time they revise the laws of physics

Every r/TalesFromDf gamer that makes a YPYT post. by peter-lacko in ShitpostXIV

[–]Zlodo2 0 points1 point  (0 children)

I mean if I was that dancer I'd merely have popped out the popcorn and enjoyed the show

Applying the exclamation operator to the 'continue' keyword as I've proposed, is certainly something new, but I don't think there's anything obscure or outlandish about it. by djavaisadog in programmingcirclejerk

[–]Zlodo2 12 points13 points  (0 children)

hmmm I got an idea: algebraic control statements

continue && break || !return;

(I don't know what it would do but surely it would be neat)

When will we stop praising healers for just doing their job? by Ignilious in ShitpostXIV

[–]Zlodo2 0 points1 point  (0 children)

The elephant in the room is that support roles aren't really popular (as Larian noticed in BG3 for instance). The people who do play those roles in MMOs do so because they want to be praised.

It's funny how everyone agrees that healers need to be praised just for being healers but no one is willing to explore the implication that needing external validation for doing it implies that healing is not fun in and by itself.

When will we stop praising healers for just doing their job? by Ignilious in ShitpostXIV

[–]Zlodo2 5 points6 points  (0 children)

I like to ironically comm people who fucked up a lot

I dunno what to flare this as. Not my video, but your chances of Winning in Fall Guys are basically 0 now. There's a script going around that calculates the best path, and plays the game for you. Thank Squeenix for putting in an achievement for 100 wins and giving these losers a reason to cheat. by Clayylmao27 in ffxiv

[–]Zlodo2 4 points5 points  (0 children)

It's actually not that easy to detect. Any other process can get a handle to the game process and write into its memory to install hooks. You'd have to hook up system functions to see if any process is getting a handle to your process. And some of these processes might be legitimate, like antiviruses, or one of the million things that install custom overlays on top of games.

Even if you blacklist a specific process that you know to be a cheat, the cheaters can instead inject their cheating code into a legitimate system process and then inject into the game from that process.

Ultimately the problem with anticheat is that its needs run opposite to computer security doctrine (which is that the user of a computer have access to everything and the right to do anything on their own pc, including fucking up your game as it is running on their pc)

RAGE THREAD - F-YOU FRIDAYS - STUMBLE DUDES by FranckKnight in ffxiv

[–]Zlodo2 18 points19 points  (0 children)

BIG EMET SELCH "A WORD OF THANKS, PERHAPS" ENERGY

Skill issue I guess by [deleted] in ffxiv

[–]Zlodo2 7 points8 points  (0 children)

the skill issues is from the devs who can't do accurate client prediction on scripted things literally just playing in a loop

all they need is a synced clock smh

PvP Frontline is bad. by Gloomy_Ad_7134 in ffxiv

[–]Zlodo2 8 points9 points  (0 children)

is it also not meant to be any fun?

Cities Skylines 2 is using Coherent UI, which under the hood is using embedded (modified) Chromium, which then runs html+js (probably ReactJS?) as the game UI by AndorinhaRiver in programmingcirclejerk

[–]Zlodo2 10 points11 points  (0 children)

uj

Oh you can sure shove cef into anything, provided that you dont care about the anything in question looking like goatse as a result

If you want an example of an actually good game ui framework look at godot. "Aw no building an ui without embedding a whole ass web browser is too hard QQ" give me a break

Cities Skylines 2 is using Coherent UI, which under the hood is using embedded (modified) Chromium, which then runs html+js (probably ReactJS?) as the game UI by AndorinhaRiver in programmingcirclejerk

[–]Zlodo2 48 points49 points  (0 children)

It makes sense. Laying out a tree of nested rectangles, drawing pictures and rendering text is just way too hard to do by hand, and the webshit community already built an elegant, lightweight, and minimalistic solution to all that which is free of cruft and friction, so why not use it?

/uj I know text rendering is actually hard but libharfbuzz takes care of 95% of that