last day (27 days later) » 

2:35 PM
ohai
 
hai
can I haz room ownership
 
This is for discussing jolf and possibly asking for help with jolf.
2
 
@CᴏɴᴏʀO'Bʀɪᴇɴ was just waitiing for that message. ;P
ohai @Downgoat
 
2:36 PM
@EᴀsᴛᴇʀʟʏIʀᴋ oh I see
 
hai
 
So, young master, what do you need help with?
 
Specifically unused chars in jolf.
 
Has this always been here or am I just dumb
 
What do . and s do?
 
2:36 PM
It was just made.
 
@quartata I just made it.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Property accessor (think object.prop) and inclusive range.
 
wtf is object.prop
Small caps are welcomed, small caps bashing/hate is banned.
2
 
An object and it's properties.
 
object.property
 
2:37 PM
yes
but what does it do
 
Accessing the property of an object
 
Like, array[0]
^^
 
s is dyadic range right
 
var myObject = { o: 3, p: 5 };
myObject.o;  // 3
myObject.p;  // 5
 
oh
I forgot object == dictionary
 
2:38 PM
@quartata Yes, but the technical term is "binary range" for Jolf
 
hm
Do you have a comment command?
 
//
THERE IS NO STACK
AHHHHHHHHHHHHHH
 
lol
 
Jolf is a prefix language, like Pyth.
 
2:39 PM
*prefix
 
Well, how to print stuff?
@CᴏɴᴏʀO'Bʀɪᴇɴ don't know pyth
 
@EᴀsᴛᴇʀʟʏIʀᴋ a
 
But it implicitly prints so
Basically think of Pyth/Jolf syntax as being normal Python syntax but there are no parenthesis
 
^, and I'm getting rate-limited hard
 
2:40 PM
Instead it knows how many arguments there are because all the functions are fixed arity
Here I'll give an example
 
<3 it makes me happy you know so much
 
apxQxt
So p takes three arguments
a takes one
Q takes one
and t is variable
 
(and x is input)
 
So this is like a(p(x,Q(x),t))
 
2:42 PM
Does that help?
 
yes
what is Q?
 
k
@EᴀsᴛᴇʀʟʏIʀᴋ Q is square
 
^. I should make a tutorial
 
Step range
 
2:43 PM
step range
 
hydroelectric child that was fast
 
Range from x to Q(x) in steps of t, which is 10
 
String concatenation command?
 
+
+"stringA""stringB" => "stringAstringB"
 
@CᴏɴᴏʀO'Bʀɪᴇɴ are ' and " supposed to be interchangable?
 
2:46 PM
No.
 
Like "can't" transpiles to 'can' and a error
 
oh
Try using French quotes
 
guillemets
 
«...»
That is an unescapable string
«can't»
 
' is a one char string like in CJam
at least I thought it was. Been a while
 
In regular string, "text2'text1" creates two strings, so +"test'ABC" would be "testABC"
@quartata Yes, that's correct when outside of a string
 
wtf just happend
 
2:49 PM
nvm
missed a «
but want the results?
 
aThis program wasnt written in »«Jolf»+«, it was built for »«Fuzzy Octo Guacamole»«!»
Output:
var i=prompt("i = ");var n=0;alert(setInterval(function(){head(i)},rangeInclusive(prototypeFunc("p",range(g=range(alert((function(J){return Math[" "]})()),decrement(alert(rangeInclusive(n,10)))),prototypeFunc("w",)),range(i,10)),10)));jolf(n);prototypeFunc("i",n,prototypeFunc("»",));`Jolf`;add(`, it was built for `,`Fuzzy Octo Guacamole`);`!`;
 
where's the open guillemet?
 
Yeah, i missed it at first
fixed now
D: « doesn't work with addding
 
a+++«This program wasn't written in »«Jolf»«, it was built for »«Fuzzy Octo Guacamole»«!»
Prefix, remember?
 
+s go before arguments, not inside
 
It still didn't work, refhreshing fixed
 
Does your browser use ES6 multiline strings?
 
i think so
oh yeah
ala `
a
a
a
a
a
`
yeah
 
cool.
what's the code output? I can't use Jolf on IE
 
That's not an error
4 mins ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
In regular string, "text2'text1" creates two strings, so +"test'ABC" would be "testABC"
Try escaping the '
 
ninj'aed
already did. ;)
 
okai
   a++++"This program wasn\'t written in ""Jolf"", it was built for ""Fuzzy Octo Guacamole""!"
Prints
This program wasn't written in Jolf, it was built for Fuzzy Octo Guacamole!
\o/
now for the FOG side
 
Protip: Ά is +, but takes three arguments
 
2:56 PM
Are you learning Jolf just for this?
 
He is. :(
Maybe he'll come to see the light
 
Oh, that's a shame. I thought he was going to be one of us
 
Yeah... JOIN US @EᴀsᴛᴇʀʟʏIʀᴋ
USE JOLF FOR GOLFING/JOLFING
it's won a few times so its good and stuff
I forget if I ended up adding a polyglot command to Jolf like the other JS golfing langs
 
FINISHED!!!
@CᴏɴᴏʀO'Bʀɪᴇɴ yeah, am planning to learn Jolf completely.
I like the prefix bit.
I think FOG is mostly postfix.
@CᴏɴᴏʀO'Bʀɪᴇɴ Polyglot command?
   a++++"This program wasn\'t written in ""Jolf"", it was built for ""Fuzzy Octo Guacamole""!"//__ssss.Z_sssts''.j_;
 
@EᴀsᴛᴇʀʟʏIʀᴋ :D
@EᴀsᴛᴇʀʟʏIʀᴋ There isn't any, I just looked
 
3:06 PM
yeah but what would that do?
 
something about evaling the contents of a text node
 
@CᴏɴᴏʀO'Bʀɪᴇɴ how to end the program in jolf?
okai
and you said { ends?
or }.
 
yeah but is there a end command not a end everything including your life command?
 
It's the same thing
 
3:10 PM
okai.
BUT I DON"T WANNA DIE
 
It's okai :) you have the seal of the jolfer upon you
 
@EᴀsᴛᴇʀʟʏIʀᴋ I have an exercise for you to see if you have learned how to Jolf
 
in a mo, writing my answer
but sure
 
show me your code so far?
 
3:17 PM
#Fuzzy Octo Guacamole and Jolf

    a++++"This program wasn\'t written in ""Jolf"", it was built for ""Fuzzy Octo Guacamole""!"//__ssss.Z_sssts''.j_;

Prints `This program wasn't written in Fuzzy Octo Guacamole, it was built for Jolf!` in FOG, and `This program wasn't written in Jolf, it was built for Fuzzy Octo Guacamole!` in Jolf.

This was fun.

FOG side is complicated, because there is no command to swap the top 2 items.

###Explanation:
    a++++"This program wasn\'t written in ""Jolf"", it was built for ""Fuzzy Octo Guacamole""!"//__ssss.Z_sssts''.j_;
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Can you add bifurcate?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ
0
A: I'm not the language you're looking for!

Easterly IrkFuzzy Octo Guacamole and Jolf, 113 bytes a++++"This program wasn\'t written in ""Jolf"", it was built for ""Fuzzy Octo Guacamole""!"//__ssss.Z_sssts''.j_; Prints This program wasn't written in Fuzzy Octo Guacamole, it was built for Jolf! in FOG, and This program wasn't written in Jolf, it was ...

@quartata ^
 
@quartata add what now?
 
Like Pyth's B: Bx -> [x, x.reverse()]
 
3:24 PM
Oh, that's a good idea!
 
@EᴀsᴛᴇʀʟʏIʀᴋ OK here you go: Implement a primality test using Wilson's Theorem: n is prime iff (n - 1)! is congruent to -1 mod n
 
Practice! :D
No built in prime testing allowed
 
((n-1)! + 1) % n == 0.
 
3:26 PM
!Y is factorial, in case you were wondering.
 
It's not, actually.
 
It isn't?
 
No, it's a math module
 
Right, but I'm saying !Y calls math.js's factorial
 
Ohhhh
XD
I thought Y was data
 
3:28 PM
Oh
No
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I can't use that trick.
 
Yeah, that sounds right
@EᴀsᴛᴇʀʟʏIʀᴋ Why not?
 
In FOG, it appends the unicode chars to the beginning, and I can't clear without extra bytes.
 
Also, m! is factorial
@EᴀsᴛᴇʀʟʏIʀᴋ Oh. It saves two bytes for a jolf program, but adds two bytes to a FOG program XD
 
The clear stack command in FOG appears to be parseInt in Jolf, c.
 
3:29 PM
Yup!
 
oh, polyglot?
 
You trying to do another polyglot?
 
That was me saying that I DON"T CARE ABOUT ANYTHING BUT THAT IT DOESN"T WORKKKKKKKKK
And no.
 
3:32 PM
oh XD
 
Just disappointed at the chance of a shorter bytcount utterly crushed....
@CᴏɴᴏʀO'Bʀɪᴇɴ decrement command in Jolf?
 
@EᴀsᴛᴇʀʟʏIʀᴋ w
 
thx
@CᴏɴᴏʀO'Bʀɪᴇɴ @quartata rekt you bad in your own language
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You really should add logical NOT also
 
@CᴏɴᴏʀO'Bʀɪᴇɴ equality check?
 
3:37 PM
=
 
nvm got it
dangit ninja'ed
well
a=%+1m!wxx0
done
 
ssorry, I'm back
 
This is mine (7 bytes): =0%h!Yw
 
@quartata Jolf, 11 bytes:
a=%+1m!wxx0
@quartata what is h?
 
@EᴀsᴛᴇʀʟʏIʀᴋ h is increment (head).
 
3:38 PM
sorry am being blocked by school security thing
 
dangit should have checked
 
Few things to note:
The a is unnecessary since it is implicitly printed
 
Differnce between Y! and m!?
 
I don't think there is a difference lol
I just did !Y
 
there is none
 
3:39 PM
okai
pls fix
 
Also, x is implicitly added if there aren't enough arguments.
 
is logically not
 
make m! that.
 
In the case of mine though you have to do input twice: 5\n\n5 for instance
Because the input isn't saved to a variable (hint hint @CᴏɴᴏʀO'Bʀɪᴇɴ)
 
3:40 PM
I think it is.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Great, that makes it 6
 
The compiled code does?
 
@quartata rekt your score
with valid code.
=0%h!Ywxx
9 bytes.
 
use \x7f instead of =0
 
3:44 PM
why?
is longer
 
@EᴀsᴛᴇʀʟʏIʀᴋ Because the implicit input doesn't use x it uses prompt
@EᴀsᴛᴇʀʟʏIʀᴋ No it's not. He means the raw byte.
 
@EᴀsᴛᴇʀʟʏIʀᴋ How is mine not valid? conorobrien-foxx.github.io/Jolf/#code=fyVoIVl3&input=NQoKNQ
 
Requires double input.
 
That's just a different input format.
I'm pretty sure that would be allowed in any challenge
 
3:45 PM
I don't think so.
 
wait that really works?
 
What?
Mine or his?
 
double input format is okay?
 
no.
I really don't think so.
At the very least meet @Geobits's friend the downvote.
Not even a downgoat.
 
Well it wouldn't need the double input
@CᴏɴᴏʀO'Bʀɪᴇɴ hint hint
don't use prompt
 
3:47 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ FIX IT NOW
And you set x to be 42 at defualt??? roflmao
 
That's if there's no input.
 
what should it do then? and how did you even know about implicit input?? - also, am on tablet on ie being blocked by a school blocking thing
 
Because I saw the github commit
@CᴏɴᴏʀO'Bʀɪᴇɴ It should just append x.
 
3:49 PM
That way it doesn't consume the input without saving it in a variable
 
Well, that makes sense too. But what if I want to ahve different implicit inputs?
 
I don't see a situation where that would be useful.
You could just take input as an array
 
That's true, that's true.
Thanks for the suggestion! :D
 
Hmm what should the next exercise be
OK, try this challenge:
26
Q: Atbash Self Palindromes

Cᴏɴᴏʀ O'BʀɪᴇɴConsider the Atbash transformation: A|B|C|D|E|F|G|H|I|J|K|L|M Z|Y|X|W|V|U|T|S|R|Q|P|O|N Where A ⇔ Z and L ⇔ O, e.g. There is an interesting property that some words share. When some strings are translated to their atbash-equivalent, said translation is the original word reversed. I call these ...

 
Hints: pu and pl are upper- and lower-case alphabets.
 
3:54 PM
I.. actually don't remember what transliterate is.
 
Also @CᴏɴᴏʀO'Bʀɪᴇɴ I had no idea how many math built-ins math.js has. That's awesome.
 
You could really squash Pyth in a heavy-math challenge.
@CᴏɴᴏʀO'Bʀɪᴇɴ ah yes
 
That's true! I just need one of those. I'll make a kolm. challenge, and you do that :3
Would cinnamon gum be good at a challenge where, give N, draw a thing dependent on N?
 
3:59 PM
Don't try to design the challenge to be easy in Cinnamon Gum :P
But to answer your question no but soon yes
What does έ do again?
 
I won't, just wondering if its even feasible in it :
that char is a tab variable IIRC
 
Oh right
Huh, what order does A take arguments
Aγ+pupl_γI doesn't seem to work
 
A(string, orig, target)
 
Ah, OK.
Oops, it uppercased
You probably should have .toUpperCase
 
4:05 PM
This chatroom seems to have been needed badly.
 
Oh wait I remember what it is now
 
@CᴏɴᴏʀO'Bʀɪᴇɴ should I give @quartata room ownership?
 
yeah add him
 
4:08 PM
=ABIpu_pu_BI should work but it doesn't
 
I'm being blocked, so I'm kinda hacking this connection
 
It transliterates TEST to GEHG... weird
 
What's B, again?
 
Binary but it's also uppercase
 
Oh, right
Challenge idea
An w, h boat
<|
___|__
\__|_/
W = 6, h = 3

H >= 3, W >= 4
<|
_|__
\|_/
H,W=4

Formal description:

( ) (W-4) FOLLOWED BY <|
_ (W-2) FOLLOWED BY | FOLLOWED BY __

\ FOLLOWED BY _ (W-3) FOLLOWED BY | FOLLOWED BY _/
 
4:13 PM
sure
 
    Challenge idea
    An w, h boat
      <|
    ___|__
    \__|_/
    W = 6, h = 3

    H >= 3, W >= 4
    <|
    _|__
    \|_/
    H,W=4

    Formal description:

    ( ) (W-4) FOLLOWED BY <|
    _ (W-2) FOLLOWED BY | FOLLOWED BY __

    \ FOLLOWED BY _ (W-3) FOLLOWED BY | FOLLOWED BY _/
sorrs
 
Actually, Cinnamon Gum could do that possibly.
I'd need to make a regex.
Yeah, I think it could do that. The regex would be a little annoying
 
Cool! Feel free to add whatever tho, I'm still not sure if I'll run with it.
 
4:30 PM
@EᴀsᴛᴇʀʟʏIʀᴋ By the way, many of the skills you'll learn here can be applied to Pyth easily. The commands are different obviously but the syntax is the same
 
5:26 PM
FYI I will soon be overhauling the current interpreter page, and probably replacing it with something more friendly that doesn't consume arguments.
 
okai
@quartata cool
 

  last day (27 days later) »