Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
!dev
Italy is apparantly the only place in europe where flow meters dont exist.
Why the fuck are you trying to gaslight me into thinking 48L of fuel fit into a 45L tank that was 10% full!3 -
Freelancers, where and how do you find clients?
And how's the whole freelancing thing working out?8 -
while researching age of consent by country to respond to a comment under another rant, I decided that going to wikipedia and sorting countries by age of consent ascending is probably the quickest way to get on a list.
-
Okay I'm about to do something diabolical
Anybody knows if reading beyond the bounds of an allocation is UB in llvm when I'm doing the read via inline assembly? 👀6 -
I hate 2FA, solving a problem I don't have. I expect it rather to lock me out some day than actually helping me.
Just subscribed to a service, pissed that I couldn't use a simple password and had to do one of those impossible ones making you store it in a Keychain or making you the forget-button dozens of times. Activated account, and then it wanted you to do the 2-FA as well.
Do realize, my freaking bank has just a four digit code weirdos!5 -
There is an interesting age of consent system in certain tribes of Africa: a female can consent since her first period. All rape is punishable by death, so if you're had sex with someone who you claimed was legal, but it turnt out that she didn't have her first period yet, well, then it sucks to be you.5
-
OK, I think Ive figured out how I want to implement the core of my game.
Basic idea. Everything is made of sigils. What is a sigil? Lorewise, a representation of a concrete idea. Mechanically, it's a container for one or more ingame effects.
Again, anything you can think of, be it mundane or arcane, is a sigil. Every object attribute and method that causes a mutation of the game world state is composed of either a single or a sequence of sigils, known as a signa. You can do abstraction and have one thing encapsulate others, all that good stuff.
We go turnbased because tabletop rules. In your turn, you choose what to do with the sigils available to you. Common stuff like walk, talk, crouch, attack, et cetera are available to everyone.
You choose which effects to use, keeping in mind that order matters, and these effects either clash against or boost each other according to internal rules. Any relevant environmental modifiers around you or status effects apply here as well. Theyre also made of sigils, so theyre just implicitly components of the spell.
Finally, we get the result. An aura. It is simply the aggregate of all the sigils, containing the final transaction that will be applied to the game world, with dicerolls, if any are needed, already performed.
So here's the crucial bit. We record the aura for each turn, taken by either the player or the game itself, which includes the sequence of sigils used. Because each of these are words, or a series of words, it can be used narratively.
Let me give you an example. You are in a swamp, you use your turn to move around. This gives you an aura like so.
src: player, location: swamp, status: ok, walk.
We push that to a stack the game can see.
Now the game has to take its turn, and will look at the stack to get ideas. So lets say this swamp hindered your movement, gave you some trouble getting around. This is noteworthy enough as it affected something in the game world, and theres nothing else going on, so its made into a topic. The game will now pay attention to it and make it available for talking about.
topic: swamp-slow on player-party.
Everything is sigils, remember? Speaking is an effect, as is giving you something to talk about. Adding a topic results in an aura, push that to the stack.
Maybe then the game decides have the players companion make a comment on this topic. OK, just pair speak with other sigils to make an expression. The current topic is simply about a single negative effect, so one or two should be enough for a comment.
Factoring in the companions traits, also sigils, and the fact that for now this only a minor annoyance, we end up with an aura.
speak: topic -> complain about.
Do you see where this is going yet? The spellmaker gives us the means for text generation. The key here is instead of processing natural language like a bunch of dumbasses we just have an array of structures meant specifically for this purpose.
Anyway, the player now takes their turn. They can keep silent and continue moving, or say something as well. So let's say you pick the speak sigil too because why not, the current topic is also available to you, so you can reply. Depending on what the last message (aura) was, you get a range of options, and why not, let's factor in the player's chosen traits as well.
speak: shutdown -> complain about topic DOT change-topic -> mcguffin-quest.
We're on a mission to recover some plot stuff so shut up.
This results in further state changes, albeit behind the scenes. Our companion isn't happy, and we have a sequence of structures to prove it. Actions taken in relation to a topic can be associated with it if they're deemed significant, id est they caused a mutation of the game world's state.
speak: remind -> topic-name.
Thats right. Companion dude WILL remember that, you son of a bitch, and you bet your ass hes gonna bring it up if you keep acting like youre his boss or some shit. You dont even pay him!
You may say its such a small thing, but it all matters in a story. So we keep track of it, see what we can make this branch off into once a little more time has gone by.
What do you mean crazy, Im a fucking patrician of tenebrous arcana. You solve the problem by not solving the problem, obviously. Fuck natural language processing, all my homies use Litechnics to make narrative-driven programmable representations of the human condition.
Further rules include breaking gameplay down into scenes and acts as if it were theatre, because why not, and having baddies cooking shit up behind the scenes. Mechanism for that is the same, read the current stack and output structured wordsoup based on it.
We can even have a chorus narrating.
Or an audience reacting lmao.
OH GOD.
BUT I'M SO FRIGGIN SLOW OF A DEV.
WHAT IF I DON'T LIVE LONG ENOUGH TO IMPLEMENT THIS?
SHIT.
WORST SHOULD COME TO PASS,
PLEASE AVENGE MY DEATH.5 -
This is a post towards those developers working on uncommon/premium technologies like RPM, manhatten etc : How is the world on that side?
I feel like going for a switch. I have been an Android Developer for last 6 years and Android as a technology is fast paced and its requirements from client is even faster/hectic.
I am looking to work in a place where there is less pressure on making shiny stuff. I also want to understand how to become part of those consultant firms like PWC, deloitte etc, and if the work done by tech people there is hectic or okish? -
What is your method of dealing with states in state machines? In programming, we often come across situations where we have to model states in our head as to not get the programming wrong, e.g. in my case right now:
You have a tabular webform that gets filled in.
Requirements:
- When the user is able to search the data for a specific value, it should be a cumulative search (e.g.: search for books with "eng" in the language and then with with "19" in the publishing date)
And so the current pseudocode is:
search(e) {
if(!word) {
set(previousState);
}
const searchdata = previousState.filter((row) => row.indexOf(word) != -1);
// but wait, what if I say: searchdata = searchdata.filter() for cumulative search? Oops, I can't, because it doesn't exist at that moment yet. What if I create another variable?
setState(data: searchdata);
}
Current bug:
- when deleting characters from the search field, it doesn't filter cumulatively; it just filters the data according to the current filter.
It's things like these that get me stuck sometimes.16 -
Login button appears twice. What the fuck. Is the component somehow being rendered twice? That doesn't even make sense. You'd still only get one button.
No, it's because at some point, by the miracle of AI, when I hit tab to accept some superficially useful edit, the bastard thing thought it would be a good idea to duplicate a few lines of code further down the screen.
Thank you, CoPilot. You cretinous son of a cheap backstreet whore.2 -
Lol just realized that in BBC Micro, both “BBC” and “micro” words can be used to describe cock. So BBC Micro is an oxymoron.
-
This is the thing that OpenAI just misses with fine tuning of their models making their training almost impossible. It always fail on some content. It even failed once when trained with his own historic chat messages. So they went trough the LLM before! But later declined!
This is using Mistral. While I would never advise to pay the mistral chat, their API platform is top notch. It's like OpenAI but actually working decent.
For people that don't know, fine tuning works like this (kindof standard), it's a JSONL (json splitted by new lines) in exactly this format:
{"messages":[{"role":"system","content":"You are good api bot"},{"role":"user","content":"Are you cute?"},{"role":"assistant","content":"Hell yeah!"}]}
{"messages":[{"role":"system","content":"You are good api bot"},{"role":"user","content":"Did Epstein kill himself?"},{"role":"assistant","content":"He did not unalive himself."}]} -
Product idea:
Create an app to dox people. Then with poor coding skills dox the entire app community.9