« first day (1999 days earlier)      last day (2835 days later) » 

user214599
9:00 AM
ah then can anyone make Pyth in Pyth
 
ಠ_ಠ
 
@MatthewRoh the evaluate command is .v in Pyth
 
I love doing unrecommended behaviors...
 
@LeakyNun ¿Mejor ahora? I've included the stack contents in each step
 
9:00 AM
@LeakyNun lambda x,y,c:[x,y][y*c>x*c]
 
gcc can evaluate 64-bit literals, right?
 
@MatthewRoh See this
 
@LeakyNun or lambda x,y,c:max(x*c,y*c)/c in Python 3
 
ಠ₁ _ ₁ಠ
 
user214599
uhh
 
9:01 AM
@xnor oh my god.
nice
 
Geez it's late. I really need to go to bed...
 
@DrGreenEggsandIronMan goodnight
 
user214599
if anyone makes brainfuck in brainfuck then we could say that he/she mastered brainfuck
 
good noght
^^
 
9:02 AM
^^^ someone did iirc
 
Someone did that already
 
user214599
good noght?
 
multiple people did
 
Hold on lemme find the link...
 
there is a guy who made a really short one, and a guy who made a really fast one
 
@LuisMendo Por que el primero listo de la primera resultad tiene solamente siete elementos?
 
user214599
Yep they all mastered brainfuck
 
i need to make a language that entirely depends on ;__; and ;-; faces
then i can write hidden programs in chat
 
@LuisMendo ahora mejor gracias
 
9:04 AM
over a long time
wait
 
64-bit literals aren't supported by gcc ;_;
 
y u do dis GNU ;_;
 
not the same
;___; why you do dis
;-;
;_______;
;--;
what would be good is if its possible to pass a chat log from this room
into the compiler or interpreter
and it works
syntax free and stuff
 
user214599
You can make a brainfuck derivative
 
user214599
9:06 AM
like chicken
 
user214599
6
Q: Write a chicken interpreter!

Matthew RohYou have to write an interpreter for a cool language called Chicken! You should read a Chicken program from a file, standard input, program or function arguments, or whatever is most convenient for your language, as well as input to the program. You should print or return the result of interpr...

 
@DestructibleWatermelon you can build on this idea
(try some other inputs to see the principle!)
 
PLZ HALP GNU GCC DONT HAVE 64-BIT LITERALS :(:(:(:(:(
 
Well, I was going to give up on the idea anyway
i probably just would have stopped caring
;_;
 
9:08 AM
@TùxCräftîñg Sure it does.
 
dont work on my machine, interpret like 0, even with ULL
 
Then you are doing something wrong.
 
I need to think of cool memory system
 
user214599
use int64_t
 
all the best esolangs have cool memory systems or code systems
befunge belongs to the cool code systems
while bf belongs to cool memory systems
 
9:09 AM
void p1_setcr(Processor1 *state, uint64 number) {
    state->CR &= ~(F_N | F_P | F_Z);
    if (number == 0) state->CR |= F_Z;
    if (number > 0x7FFFFFFFFFFFFFFFULL) state->CR |= F_N;
    else state->CR |= F_P;
}
where the defines are
// Flags
#define F_N 0x8000000000000000ULL // Negative or lesser than
#define F_P 0x4000000000000000ULL // Positive or greater than
#define F_Z 0x2000000000000000ULL // Zero of equals
#define F_V 0x1000000000000000ULL // Overflow
state->CR is never modified
 
LL will have at least 64 bits. You can also just use int64_t, which will have exactly that.
 
where does the name of this chatroom come from?
 
i get unknow type name with uint64_t
 
even with stdint or stddef
 
9:11 AM
In golf, the nineteenth hole is a slang term for a pub, bar, or restaurant on or near the golf course, very often the clubhouse itself. A standard round of golf has only eighteen holes, so golfers will say they are at the 'nineteenth hole', meaning they are enjoying a drink after the game. The concept is similar to Après-ski in skiing. The 19th hole on miniature golf courses is often a hole in which if a hole-in-one is scored, one receives a free game. == References in media == The golf stories of author P. G. Wodehouse, which are narrated by his character, the Oldest Member, discuss the nineteenth...
 
@DestructibleWatermelon and The Nineteenth Byte is exactly 19 bytes long
 
user214599
#include <cstdint> or <stdint.h>
 
@TùxCräftîñg It's in #include <inttypes.h> for C99
 
I remembered this cool idea for a language i had earlier
 
9:12 AM
\o/ it work
 
My idea is probably too complex for me to implement it anyway ;_;
 
@TùxCräftîñg Not surprising.
 
I had an idea for a challenge
and the last one was 10 hours ago
 
nope, CR still unchanged
 
would people like me to just preview the challenge here instead of sandboxing it?
 
9:16 AM
Sandbox as many as you like at the same time
 
sandboxing it now
or starting to sandbox it
 
plz halp gcc hate me ;_;
 
you have to show your dominance
make it perform menial tasks
to weaken it
like adding by unary adding.
be back
 
this dont helped me to or with 64-bit literals
 
user214599
hategccs gonna hate
 
9:32 AM
@LeakyNun Oops. Corrected. Realmente son ocho elementos. ¡Gracias!
 
@LuisMendo de nada
 
@LuisMendo I don't get the second part, and Leaky Nun's reply.
 
@LuisMendo Por que habla en medío inglés y medío español?
hablas*
 
@LeakyNun Because I'm used to English here, I dunno :-)
 
^^ And these two messages. ^^^
 
9:34 AM
@zʏᴀʙiɴ101 Spanglish. Sorry :-)
 
i ≈understand
 
@TùxCräftîñg you speak spanish?
 
no, i speak french, but spanish and french are close
 
@TùxCräftîñg specially when written. Spoken, not so much :-)
 
In Python, how to convert an int/long to a string of a specific radix other than 2 (bin()), 8 (oct()), 10 (str()) or 16 (hex())?
 
9:36 AM
Also Italian. Does anyone speak Italian here?
 
holds hand down
>>> str(279077036461760328726821135497537077734L, 6)

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    str(279077036461760328726821135497537077734L, 6)
TypeError: str() takes at most 1 argument (2 given)
 
@zʏᴀʙiɴ101 untested:
def conv(n, basestr):
    b = len(basestr)
    s = ""
    while n:
        s += basestr[n % b]
        n //= b
    return s[::-1]
call like conv(102, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")
 
>>> conv(279077036461760328726821135497537077734L, "123456")
'31343611512335121345311334615656144355364352312133'
>>> conv(279077036461760328726821135497537077734L, "012345")
'20232500401224010234200223504545033244253241201022'
>>> int('20232500401224010234200223504545033244253241201022', 6)
279077036461760328726821135497537077734L
It works! :D
 
Anonymous
@LeakyNun Yeah I don't really know how I'd do it, either.
 
Anonymous
9:41 AM
I'd probably use registers to store counts, but I'm too tired to think that through
 
@Mego which means... revolution.
 
Anonymous
I'm not sure how overthrowing an existing government would help you with this challenge :P
 
I mean, revolutionize the language
by adding some more features to it
 
Anonymous
Yeah I know it needs more features
 
Anonymous
9:45 AM
I just don't yet have a good list of things to add
 
well
reduce on operator
nested function declaration
 
TIL actually/seriously dont support nested functions
 
@TùxCräftîñg you forgot to put TIL in front
 
Anonymous
@TùxCräftîñg Yeah that's a downside of using the same token to start and end functions
 
Anonymous
@Downgoat Gah... You still have typos in your README for Cheddar.
 
Anonymous
9:49 AM
@Downgoat But I'm not going to make a PR for adding one character in. In step 2 of the installation procedure, the typo is "succesfully"
 
Anonymous
@LeakyNun There are two different "reduce" functions: 1, 2
 
@Mego reduce on operator
also, convert list from base
 
user214599
Frainbuck
 
if I had either of these I would have been able to complete the answer
 
Anonymous
@LeakyNun What do you mean by that? Bolding part of the text doesn't help me understand what you mean any better.
 
9:53 AM
@Mego like, ♪- instead of `-`R
 
@Mego a thing like APL's 1 2 3+2 = 3 4 5
 
Anonymous
@TùxCräftîñg Try [1,2,3]2+ and tell me what you get :)
 
Anonymous
@LeakyNun Ahh. Maybe. Maybe soon.
 
and i dont have seriously/actually
 
9:56 AM
@Mego again, if I had either of these I would have been able to complete the answer
@TùxCräftîñg what does this mean?
@Mego Is there currently any way to make nested function?
 
i dont have actually or seriously
 
Oh my god
@Mego I meant this instead
 
Anonymous
@LeakyNun Yes. A few ways, actually. £ converts a string to a function, so you can use string formatting functions to stick a function definition inside a string, then make it a function and call it.
 
@Mego good
 
Anonymous
Oh that
 
9:59 AM
OMG MY PROGRAM WORK \o/\o/
 
Anonymous
Yeah nesting a map inside another map and using enumerate is all you need
 
Jul 10 at 13:50, by LegionMammal978
@TùxCräftîñg well my name is Le gionMa mmal978
 
@LegionMammal978 and what is a gionMa?
 
Jul 10 at 13:53, by LegionMammal978
@zʏᴀʙiɴ101 gionMa is a substring of LegionMammal978.
 
10:03 AM
This is not a sentence.
 
@LeakyNun Why is that not a sentence?
 
@LegionMammal978 that's just some pixels on your monitor
The Treachery of Images (French: La trahison des images [la tʁaizɔ̃ dez imaʒ], 1928–29, sometimes translated as The Treason of Images) is a painting by the Belgian surrealist painter René Magritte. == Description == The picture shows a pipe. Below it, Magritte painted, "Ceci n'est pas une pipe.", French for "This is not a pipe." The famous pipe. How people reproached me for it! And yet, could you stuff my pipe? No, it's just a representation, is it not? So if I had written on my picture 'This is a pipe', I'd have been lying! == Context == Magritte painted The Treachery of Images when he was 30...
 
@LeakyNun Dang it, been too long since I've read GEB....
 
what is the equivalent to parseInt in C?
 
113
Q: Converting string to integer C

user618677I am trying to find out if there is an alternative way of converting string to integer in C. I regularly do the following in my code. char s[] = "45"; int num = atoi(s); So, is there a short way or another way?

 
10:05 AM
kthx
 
@TùxCräftîñg atoi
 
84
A: Converting string to integer C

cnicutarThere is strtol which is better IMO. Also I have taken a liking in strtonum, so use it if you have it (but remember it's not portable): long long strtonum(const char *nptr, long long minval, long long maxval, const char **errstr); EDIT You might also be interested in strtoumax and s...

 
@LegionMammal978 what's GEB?
What does the a in atoi and atob and btoa and atof really mean?
 
Anonymous
@LeakyNun I've got a solution in Actually in 21 bytes
 
10:06 AM
@Mego nice, post it
 
what is the output of atoi on a bogus value?
 
@LeakyNun Array?
 
@LeakyNun Pointer(=a) representing string to integer
 
Anonymous
@LeakyNun Gödel, Escher, Bach: An Eternal Golden Braid by Douglas Hofstadter.
 
@Mego you beat me to it ;)
 
Anonymous
10:07 AM
@LeakyNun ascii, aka a C-style string
 
@LegionMammal978 aka Array.
 
@Mego and what does that have to do with this?
 
brb in a long time
 
@Mego conflicting answers
 
Anonymous
@LeakyNun The referenced picture was in GEB
 
10:08 AM
@LeakyNun It references The Treachery of Images
 
@Mego I see
 
ninja'd
 
@LegionMammal978 thanks
 
Anonymous
0
A: Dijkstra's Challenge

MegoActually, 21 bytes ñ`i╗ñ"i╜+@;(=*"£Mi`MΣ Try it online! Thanks to Leaky Nun for making me stop being lazy and finally write this. This uses 0-indexed matrices, and takes input as a nested list. Explanation: ñ`i╗ñ"i╜+@;(=*"£Mi`MΣ ñ enumerate input `i╗ñ"i╜+@;(=*"£Mi`M ...

 
@Mego nice
which leads me to another suggestion: zipwith
1 2 3 +" 4 5 6 => 5 7 9
 
Anonymous
10:13 AM
Gah foreign language flags
 
@Mego nice
 
ven
Did I really just get flags for the Russian StackOverflow? -_-
 
ven
this system is broken
 
@Mego Well, this is only for the operator +
 
ven
10:15 AM
@Mego you have your own codepage?
 
Anonymous
@ven I didn't make it - CP437 predates me by many years
 
@ven what did you say?
 
Anonymous
 
Anonymous
@LeakyNun There was a flag in the Russian SO room
 
ven
@LeakyNun I got chat flags from the Russian StackOverflow
 
10:16 AM
@Mego whaaaaaaaaaaaaaaaaat it's how is used???????
@ven I know, but I can't read Russian
 
ven
@LeakyNun same.
which is why it's useless sending me those flags
 
@Mego thanks
@Mego How would I do a -> [a] ?
 
Anonymous
@LeakyNun # for single items, k for the entire stack.
 
10:22 AM
@Mego thanks
 
Anonymous
# doesn't work if a is already an iterable - it just converts it to a list (without nesting).
 
Anonymous
For that you'd need []o
 
@zʏᴀʙiɴ101 What's today's Random Totalistic CA of the Day?
 
@Mego Does work on triads?
@LegionMammal978 what does CA mean?
 
Anonymous
10:25 AM
@LeakyNun I saw :P You don't need to ping me here, comments make notifications. That runs into efficiency problems with larger inputs.
 
@LeakyNun cellular automaton
 
ven
what's "1 byte" for PPCG? 8 bits?
 
Anonymous
@LeakyNun What do you mean?
 
@ven yes
 
ven
okay
 
10:25 AM
@Mego monads (functions that take 1 argument)
dyads (2)
triads (3)
 
Anonymous
Nope, it's a very dumb operator
 
@Mego then make it wise
 
Anonymous
There aren't many triads in Actually
 
you can even overload one atom
by making it detect whether the operator is a monad a dyad or a triad
 
@LegionMammal978 I was playing with OpenPGP, but this seems more important.
 
10:27 AM
@Mego the point is to let you potentially golf your code by checking if there's any golfable codes in my code
 
@zʏᴀʙiɴ101 Yes, my CPU fan is running at dangerously nonlethal speeds
 
@LegionMammal978 damn, the portal reference
 
Anonymous
There are exactly 4 triads in Actually
 
@LeakyNun ;)
 
@Mego you can still overload it
 
Anonymous
10:28 AM
Yeah but for 0 benefit
 
> Neurotoxin pressure has reached dangerously unlethal levels.
@Mego not really
you got a new space left for new functions
 
(although you haven't used up all your spaces)
 
Anonymous
@LeakyNun Because so many operators are already overloaded, that would be very difficult
 
@Mego alright
 
Anonymous
10:29 AM
I have 30-something unused characters, and many, many more overloads that can be used
 
@Mego 2-char operators perhaps?
 
Anonymous
The effort required is not worth the payoff
 
Random totalistic CA for the day: B35/S34.
 
@LegionMammal978 not really required, since he has 30-something unused characters
 
Anonymous
@LegionMammal978 Those are coming soon™
 
10:30 AM
btw, he or she?
 
Anonymous
I am male penguin
 
@Mego: A golfed Mego.
 
Anonymous
@mınxomaτ Impressive
 
@Mego alright
 
Non-explosivity proof:
x = 3, y = 3, rule = B35/S34
b2o$2o$bo!
 
10:31 AM
@mınxomaτ why the whitespace?
 
Anonymous
Also coming soon: libraries
 
@LegionMammal978 Here it is.
 
@Mego Do you see any golfable places in my code?
for example lr
 
@zʏᴀʙiɴ101 Looks pretty life-like at first with the B3/S3
 
Anonymous
@LeakyNun I'm gonna be asleep in like 5 minutes, so I'll have to look at it later
 
10:32 AM
@Mego goodnight
 
> <svg xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M63.4 23.7c2.2-.5 4.4-.4 6.6-.4 4.2 0 7 3.5 10 5.7 2.8-1.4 5.2-3.6 8-5.2 7-2.2 16.2 1.2 18.5 8.8 3<...>16.2.7l-2.2-3.3 1.5-4c-2 .5-4 0-5.8-1.4.2-1.8-.5-4.2 1.4-5.2zM80.7 117c10.3-.8 21.3-2.8 29.2-10 1.8 0 3.7 0 5.5.6 2.2 1 2.6 4.2.8 5.7-1.4 1.4-3.4 1-5 1 1.7 2.2 2.2 6.2-1.2 7-7 .4-14 0-21-1.2-3-.5-6-1-8.3-3z"/></g></svg>
wat
Hmm, give me a sec...
 
CMC: the n-th row of the Pascal triangle (n is a positive number) (built-in is banned from this challenge)
@zʏᴀʙiɴ101 looks like doable in your language
 
Anonymous
@LeakyNun (I'm a rebel)
 
@Mego I built the challenge exactly based on this operator
s/based //
 
Anonymous
9 bytes without the builtin
 
Anonymous
10:42 AM
Probably but meh
 
@Mego How do you do [a]*b?
 
Anonymous
@LeakyNun You mean [a for a in range(b)] or [x*b for x in a]?
 
@Mego I mean [4]*5 == [4,4,4,4,4]
standard python notation
thought you write your language in python
 
Anonymous
I do, but * is vectorized for int/list args
 
Anonymous
So the second is what you would get with *
 
10:46 AM
Yes, which comes to my question
 
Anonymous
I need to add a "repeat n times in a list" operator, to replace the previous non-vectorized functionality
 
@Mego meaning this feature is completely absent?
 
Anonymous
You can do it, but it's a lot longer
 
can u show me?
 
Anonymous
Starting with [[a], b] as your stack (top is element 0), i@;(n(╟ should do it
 
@Mego nice
 
Anonymous
Remind me later to add that "repeat n times and push to list" function
 
Anonymous
I've been meaning to add that for ages
 
@Mego ok
@Mego which character would you add it to?
 
11:05 AM
 
Can anyone ask a question? It's already 12 hours since the last question.
 
I have a difficult question that's still in the works
 
@orlp nice
 
if I have a list of n random elements each uniformly selected from [0, n), how many duplicates will I have on average?
 
@orlp how many duplicates does [1,1,1] count as?
 
11:15 AM
3
 
ven
after or before shaving their goats?
 
[1, 2, 3] is 0 duplicate
[1, 1, 3] is 2 duplicates
[1, 1, 1] is 3 duplicates
num_duplicates = lambda l: sum(bool(l.count(e) > 1) for e in l)
 
@orlp here
0.0

1.0

1.6666666666666667

2.3125

2.952
starting from 1
 
is that a simulation?
or
 
that's brute force
calculating from every possible array
 
11:22 AM
can you display it as a fraction?
 
@LegionMammal978 What's your state on search of the B35/S34 rule?
 
2.952 seems odd
 
@zʏᴀʙiɴ101 Lemme check the Catagolue...
 
[0, 1]

[1, 2]

[5, 9]

[37, 64]

[369, 625]
@orlp
 
those are different numbers
 
11:23 AM
0/1

1/2

5/9
 
0, 0.5, 0.5555555
 
@zʏᴀʙiɴ101 It's surprisingly Life-like, look here
 
[0, 1]

[1, 1]

[5, 3]

[37, 16]

[369, 125]
 
can you do one more
 
@zʏᴀʙiɴ101 Although there seem to be several still-lifes composed of chains of blocks
 
11:24 AM
on your machine?
 
[4651, 1296]
 
(n+1)^n - n^n
 
nice
 
now the denominator
one more :P
oh nvm
1296
oh oh
 
@orlp Well, I simplified them
you can unsimplify them
 
11:29 AM
[70993, 117649]
 
@orlp nice
 
@LegionMammal978 Congrats, you found a spaceship! Speed: c/9
x = 7, y = 4, rule = B35/S34
o5bo$2obob2o$b2ob2o$2b3o!
 
@zʏᴀʙiɴ101 yup
 
consistent with (n+1)^n - n^n
but that's a new sequence on OEIS!
117649 unknown term
 
so you got ((n+1)^n - n^n)/(n^(n-2))
 
11:31 AM
huh?
 
not?
 
where does the dividing term come from
 
never mind
 
oh dude
>>> factorization(117649)
{7: 6}
look at that
 
I said I simplified the fractions
you might get something if you unsimplify them
 
11:33 AM
no
that was with simplification
 
never mind
 
prob = lambda n: (n**(n-1) - (n-1)**(n-1)) / (n+1)**(n-1)
 
@orlp nice
 
 
@zʏᴀʙiɴ101 Full summary: xq9_36cac63 has 14 cells, a 7x4 bounding box, a speed of c/9 orthogonal, a period of 9, and a heat of 17.1.
 
11:41 AM
:O :D
 
Currently, it is the only spaceship known for this rule.
 
HELLO GOLFERS
 
HELLO PART OF GOLFERS
 
> If the converted value would be out of the range of representable values by an int, it causes undefined behavior.
:(
 

« first day (1999 days earlier)      last day (2835 days later) »