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 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 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

Follow

@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?

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!