Follow

boss: your mission, should you choose to accept it,

super hacker: this better be good

boss: is to write a program that takes in valid DD/MM/YYYY dates and outputs milliseconds since epoch,

super hacker: below my pay grade old man

boss: in brainfuck

super hacker: Now We're Talking

@typhlosion boss: also make sure it uses the correct timezone

hacker: …

@albino @typhlosion i had to make a change to a persistent data syncing framework once that relied on a database in Scoresbysund, Greenland time which follows European Daylight Savings Time which is different from the US DST

that shit is not fun

@vahnj that sounds awful… my condolences

It would be nice if the EU decided to collectively abolish DST but I'm not sure they'd ever do that :-(

@typhlosion i want to try to write this in befunge98 just to see if i can
the real question is
unix epoch or julian date epoch

@typhlosion i'm going to use unix epoch just because uh
befunge-98 has an extension that uses julian date so

@typhlosion okay so i was working on this but for some reason befunge98 thinks 17368 days plus 1970/1/1 is 24/5/17373 which is
very wrong

@boots is it that befunge thinks it, or that your algorithm thinks it

@typhlosion im pretty sure it's either befunge being bad or the befunge's docs being bad

@boots wait, are you using some kind of date fingerprint or are you doing the logic yourself

also what interpreter are you using

@typhlosion im using the date fingerprint in cfunge
first output is the stack before A
second output is the stack after A
computerfairi.es/media/LnBnofP

@typhlosion the weirdest part is mycology passes so i dont see whats wrong with my implementation specifically
here's my code
ghostbin.com/paste/b5kes
change <<> to <>> for stack before A

@boots i'll poke at this when i get home from work in a few hours; i admit the only fingerprint i've ever used was TURT so i don't know much about DATE

@boots at a glance: this code looks like you're putting the operands in the wrong order (days d m y TOP, rather than y m d days TOP)

@boots it says on the page (Notes section under the ToC) that arguments and outputs are listed left-to-right from bottom to top, but it's easy to miss if you go from ToC straight to the thing you wanted to look for

@typhlosion alright i finished and then realized i did the exact reverse of the actual program intended but uhh ghostbin.com/paste/qtrpg

@typhlosion because i was using 4k. before and i didnt want to bother with adding and removing spaces

@typhlosion id say its pretty good for my first program in befunge-98 /shrug

@boots it's not bad! befunge is a really fun language to mess around with

have you seen the IRC bot written in it?

@boots i use CCBI; i have no idea about cfunge or whether its implementations of the fingerprints are any good

i can, however, confirm with great certainty that fingerprints are woefully underdocumented

@typhlosion that doesn't seem THAT hard tbh

the tricky part would be hardcoding leap seconds and what have you

@typhlosion and i guess base conversation into something where you have to worry about knowing where your zeroes are less, but i've done that in bf before, it's doable

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!