« first day (4120 days earlier)      last day (1021 days later) » 

15:07
i got the yearling badge!
@Seggan i think its a feed so its slow
it only updates every ½ hour or so
what is necro bumping?
have you tried googling it?
@des54321 Looks like the @ actually makes it not work, so yeah, definitely remove that. ;) Also, it's the same length but you don't need the collectors. Alternate configuration.
@emanresuA ... Huh. I wonder if that's a bug in the program or the interpreter.
@pxeger oh
15:30
0
A: Sandbox for Proposed Challenges

SegganDraw the Archimedean Spiral code-golf Overview I was playing with Desmos and discovered a really cool spiral: Doing some research, I discovered that this spiral was the Archimedian spiral. Every point on the spiral is exactly \$\theta\$ radians/degrees away from the origin, where \$\theta\$ is t...

random poll from my school
๐Ÿช
About 0.3% of the earths' mass in cookies
In that case, I'm thinking I'll pick the water molecules. Don't want to bury myself thousands of feet deep in cookies. :P
@Seggan Hmm, new site design
15:42
lol i just noticed
i noticed that a couple of days ago
RSNBATWPL is ready to be released
ping me when you do
@PyGamer0 thats his (practical) language
15:58
oh
^^^
@Ginger you should probably add simple docs for etch...
16:15
0
A: 1, 2, Fizz, 4, Buzz

Radvylf ProgramsrSNBATWPL, 57 bytes for{i=1;i<101}$print{(("Fizz"*1>i%3)+"Buzz"*1>i%5)or++$i} RSNBATWPL, or Radvylf Should Not Be Allowed To Write Programming Languages, is a "practical" programming language I've designed over the last week or so. It aims to be a sort of "super-JS/PHP/C++": a language that see...

๐Ÿ‘
> I to N are case insensitive; takes inspiration from FORTRAN
Trying to read the source code already, I see
> Enable bleeding edge optimizations, may cause some instability
eval(random string)
There is a nonzero chance it can generate another eval(random string) with a longer length which generates another random string which creates a genetic optimizer which improves the performance of the program
16:21
@RadvylfPrograms ... Is it okay that my first reaction is, roughly, "Ugh"? (I only say that because I think that might be the reaction you were going for.)
Yes, the attractiveness of the syntax was very far from the top of my list :p
my first response is a defeated sigh
Fun oddity: You can't have parens or braces in strings
E.g., to access the (inputs) variable, you need to do var{'("inputs"')}
@RadvylfPrograms My main 0_o moment is the right-to-left expression parsing. For some reason, it's fine when APL does it, but anything that looks C-like definitely shouldn't.
The reason I did is so that = behaves reasonably
a=2+3 makes far more sense as a=(2+3) than (a=2)+3
Same with ~
You can use anything as an infix operator, even something that's not an identifier. E.g., 2 (x ~ y ~ y - x) 7 is 5
16:26
Can you do a{1}=2?
if a is an array
No, of course not
That would be totally unreasonable
What about (a{1})=2? :P
Although you're free to redefine , to return a function which acts like an array in every way except that a{1} returns an id which can be set
@DLosc That's parsed identically :p
Also, whatever happened to using : for assignment? Or was that for a different project?
I decided = was more reasonable
16:29
:(
uh oh I found an issue
Fixed
cast.float was returning something with a type that doesn't exist
17:13
I DID IT
I GOT PUSH MESSAGING WORKING
:D
> any way to negate a full list in desmos?
> I DID IT
whoopsie
context go
og txetnoc
wait what do I do with the public key
._.
Oh you keep that one. Put the private key somewhere very visible on your website /jk
17:18
...I genuinely cannot tell what the public key is supposed to be used for
lemme try deleting it
It still works???
I'm going to leave it in case it's needed in the future
but it's public so I can post it here right?
In theory yes
oKAY THEN
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELqxyRrjqbK6ZMOIbfWr7guvjW6qb
L6Wq81FQ8GPV+vvUEBDaAWNbSBpLE5YCUtPqmag6eZ350OgBMuwapaBaGg==
-----END PUBLIC KEY-----
Seems kinda short?
there it is ladies and gentlemen
ah yes:
> MuwapaBaG
it's a bag that you put muwapas in
well, now I just have to implement everything else
yey
Now, the real question. What's a muwapa?
17:28
Good question.
Well as an adjective it would clearly mean "public"
new katlani word!
in TNB Conlang (katlani), 4 mins ago, by Radvylf Programs
WR: murapa (adj) Public
How's that for a ninja :p
17:43
@RadvylfPrograms You're on fire today. You also just ninja'd my edit to that Politics.SE question. :)
first weird quirk of rSN I've discovered: assignment operations always evaluate to the old value of the variable
so if foo is unassigned, foo = 15 evaluates to the reasonable Null
but if you then do foo = 7, that evaluates to 15 even though foo is now 7
thats cool
okay i clearly dont fully understand this syntax, how do you apply the sort function to an array
array sort function
arr$sort?
17:55
E.g., array sort cmp is the "default" sort
what
oooooh its an infix
thats cursed
Any function can be infix in rSN
so you can also do sort{array}{cmp}
and you just pass it an arbitrary function to compare them
thats beautiful and stupid at the same time
17:56
Yep. sort < and sort > are golfy, but less efficient, ways to do min and max sort
@RadvylfPrograms If cmp is the second argument, does that mean you can't easily use the currying to make a "sort ascending" one-argument function that takes an array?
Nope. You'd need x ~ x sort cmp
Too bad
next LYAL: rasin batwaffle
I am going to add it to the LYAL voting at some point :p
17:59
how nice that #01abda is a nice shade of blue
remember campfire? I'm making a version that's closer to SE Chat and calling it lambda.chat
and I'm going to use #01abda as the main color
fun fact about raisin batwaffle: it doesnt seem to have a maximum recursion depth
It does, it's JS's max recursion depth
E.g., {} will instantly cause bad thingsโ„ข
huh, i just threw a recursive function into the online interpreter and it hasnt errored or anything yet
18:04
It just freezes for me lol
oh hold on browser console is full of "out of memory" errors
Yeah I just used a whole gigabyte of memory in a couple of seconds, with a two byte program
whats the diff between cond and if
._.
18:08
i wish i had that much memory lol
im pretty sure thats only half the memory on this machine, i think i have 16 GB of ram
@Seggan cond is more like an if/else
although im not convinced my computer knows that, because task manager was showing i was using like 80% of my ram there despite nothing else i have open using more than 200MB
theres no else?
No, with the way the parsing works it'd be close to impossible
18:10
@Seggan you mean in ruby?
No, in RSNBATWPL
oh lol
@RadvylfPrograms what about else if
hold on i actually love the fact that you can use while as an infix operator, but rather than doing the readable code while condition you have to do condition while code
18:11
@Seggan You have to nest conds, no else if equivalent
oof
imagine using google and not duckduckgo
lol i googled rasin batwaffle and it autocorrected to "raisin bar waffle" and is now showing be waffle recipes
@des54321 imagine using duckduckgo and not google
duckduckgo does not find things
lol
^ ^^
rasin batwaffle returns no results
18:12
duckduckgo aint all that bad, and at least google isnt tracking me
but it doesn't find what you want
i tried it once and i ended up always going to google in the end
duckduck go finds rSNBATWPL
oh wow that was fast indexing
wait that actually looks like a good lyal, rsnbatwpl
we should nominate it
18:15
^
yeah this would actually be a good LYAL, break the cycle of semi-tarpits we've had the last few langs
I'll nominate it
ok ima use if{non't} forever now ๐Ÿคฃ
what about J
that would also make a good lang of the month imo
(I mean J, not rsnbatwpl)
Is don'tn't still in the spec?
18:17
yes
@Steffan agree
imma nominate j for both
0
A: Language nominations for the "Learn You a Lang for Great Good" chat event

Radvylf ProgramsRSNBATWPL A.k.a., rSN, raisin-batwaffle, or Radvylf Should Not Be Allowed To Write Programming Languages. Rsnbatwpl is a "practical" language with a lot of oddities. The parsing has a lot of quirks which make golfing interesting, and also mean it would be easier to learn with LYAL's format than w...

oh my what on earth
Radvylf should definitely not be allowed to write programming languages
may cause some instability
18:22
lol
logo!
Whoa that's big
It's an svg
reminds me of haskell for some reason
will be scaled down
18:23
I mean in chat
I just exported it at 500px png
It takes up like an eighth of my screen
about a fourth for me
but do you like it?
@Ginger Can you please edit an m into this, is what I'm tryna say
18:24
outa time
sorry
but do you like it?
I mean, it's a lambda on a blue background. It's good enough I guess
nice
well, now I just need a contrasting header bar color...
18:26
hmm
https://codegolf.meta.stackexchange.com/questions/2140/sandbox-for-proposed-challenges/24748#24748

Any feedback?
@RadvylfPrograms what shade?
@Romanp seems like an interesting challenge, i do wonder if theres a better solution than just "brute force every possible selection, discard the ones that spend too much money, and return the one that spends the most" though
18:33
Huh, that's not my challenge. Sorry, let me check the link.
Mine's "make the apartment building," that other one's a lot better.
@RadvylfPrograms #3300CC is a nice deep blue
0
A: Language nominations for the "Learn You a Lang for Great Good" chat event

SteffanJ J is a high-level, general-purpose programming language that is particularly suited to the mathematical, statistical, and logical analysis of data. It is a powerful tool for developing algorithms and exploring problems that are not already well understood. (copied from the J site because I'm la...

18:48
I did it I did it I made an ellipse with a polar equation!
what is it
huh rSN lets you redefine builtin operators
Yeah
You can even do stuff like id{"do"} = 2 to set the variable do, although do's a keyword so it won't be accessible
wait lyal is still running
Unless you do var{"do"}
Oh huh, just realized sort> is exactly as efficient as sort cmp performance-wise
Probably since it uses mergesort
19:02
are you trying to this lol
No, I was just curious :p
just made a very fun to watch bitcycle dupneg bomb
0vvv
>~~~<
>~~~<
>~~~<
0^^^
19:28
Even more cursed than the last set.
i dont even want to know how you abused a programming language into doing that
CMQ If n is an integer, what function tells me how many terms of sum 2^i for i = 0.. you need to get a number bigger than n? I.e. if n = 10 it is 1+2+4+8 so 4 is the answer
that is the smallest x so that sum_i^x 2^i >= n
@graffe ceil(log_2), right?
@RadvylfPrograms oh thanks!
It might be something like floor(log_2 + 1), you'll need to watch out for off-by-ones
19:38
@graffe Working on this problem? codegolf.stackexchange.com/questions/247028/…
right if n = 1 you get 0 from ceil(log_2)
@Romanp sadly no
@RadvylfPrograms floor(log(10,2)+1) looks good
casually uses cmps for outsourcing challenges
seggan not admitting that he did that once too
19:58
@Seggan sqrt(1/cos^2(theta)/h^2+sin^2(theta)/k^2)
oh yikes
It's surprisingly simple
> // THIS CODE IS MIT LICENSED TO HOBBYISTS. FOR-PROFIT CORPORATIONS MUST USE ANY 2 CLAUSES OF A 4-CLAUSE BSD LICENSE.
... what
._.
given a power of two n, and a query integer n <= i < 2n, how can I find the smallest number of terms in n+n/2+n/4+... needed to sum to a number at least as a big as i?
is there a formula for this?
20:08
i needs to be >= n and < 2n, btw
@RadvylfPrograms that's not for me is it?
oh I see what you mean
But I'd guess it's something like log2(2n - i) - log2(n)
let me try that
20:11
There are probably multiple off-by-ones in that, just a warning
is there a floor somewhere?
or a ceil?
Yes, but I'm not going to attempt to guess where
n = 2**8
log2(2*n - 1) - log2(n)
Likely one wrapping the whole thing
@Steffan probably because of the lambda
20:12
that gives a number less than one
Well because i is not between n and 2n
good point
Yeah, so ceiling that should work
n = 2**8
log2(2*n - (n+10)) - log2(n)
that's legitimate right?
with i = n+10
Yeah, as long as n > 10
20:15
2**8 > 10
the answer should be 2
in this case
Ah, so it's ceil(...) + 1
this formula gives you -0.05748549466076014
Wait I got it backwards
It's log2(n) - log2(2n - i)
aha!
Yep, looks like it's working perfectly now
Math.ceil(Math.log2(256) - Math.log2(512 - 385)) + 1 // 3
20:19
what is the //3 part?
A comment with the result
phew :) In Python that's integer division by 3 :)
thanks so much!
Yeah, realized that right before you asked
what language is your code in?
JS
Although it'd work in most C-style languages
(Assuming the math library was called Math in them all)
20:24
except for C I suppose
where nothing works
I should probably learn JS one day. People here seem to like it
uuuuuuuuse pythooooooon
@graffe I wouldn't say that necessarily :p
that is what I uuuuuuuse!
@RadvylfPrograms :)
the only think I know about JS is the website wtfjs
link?
There's a lot of stuff wrong with JS, but it's just convenient for a lot of reasons
20:25
I'm actually using it right now!
I would like a language where I could do simple animations easily. I mean it was so easy in the BASIC!
python has pygame but it is barely suppported
JS canvases aren't overly difficult to use
you may get stuck on the wtfjs page :)
@RadvylfPrograms that's the impression I get.. hence maybe I will have to learn it?
If you've used Python for a little while, using JS is really just writing the same code with different syntax
20:29
And the console built into basically every web browser is a really convenient way to get familiar with it
@RadvylfPrograms I guess there is no python equivalent of canvas though?
No, since there's no Python equivalent of HTML :p
Ooh nice
@RadvylfPrograms (Namely, I can write code in JS, and very easily move it between the browser and back-end/desktop)
20:44
I think it finally gave up...
Every expression now returns errors like then when ran.
You've broken Mathematica forever, you monster
Not yet...
requesting authorization to have Romanp and their copy of Mathematica thrown into the ocean
That's next up after finding how to do ACE
I overwrote CompoundExpression which seems to have broken things
But hey, Print["hi"] still runs, it just lags like crazy
Oh my...I just found an extremely dumb website
It does input validation on the back-end, for every keystroke
And it's meant for long-form typed content
20:58
That's, uh, very safe, I guess?
So after every keystroke you have to wait a split second, and it sends thousands of requests as you type
Better than doing client-side input validation
It's not input validation in that sense though because it's never sent anywhere
@RadvylfPrograms lmao, do they basically make you DoS them?
It's like a spellcheck sort of thing
20:59
What
Why would anyone handle spellcheck like that?
My error messages now create error messages when you click on them.
21:17
hell yeah
22:13
It's really annoying how open collectors can output bits they've recieved while open
It breaks so much stuff
BCMC: Move a signed integer towards 0
What does BCMC stand for?
BitCycle CMC
Look at the pinned message
@emanresuA Decrement it if positive, increment if negative, do nothing if zero?
22:29
Huh it doesn't show any pinned messages to me.
Oh I just had to reload the page. Chat was borked.
23:19
My favourite boolean value is non't
And you can't change my mind on that
non'tn't
@lyxal personally im partial to willn't
@emanresuA ive got 12 bytes
Hm nice
10 based of that
alternate 10 byter:
@emanresuA actually im pretty sure that is 11 bytes
Oops I can't count
23:30
the only multiplication BCMC we've had is multiplying unsigned ints, right?
surely just this works
@des54321 Yeah, signed woould be a pain
@JoKing Ooh nice
oh good one
CMQ: calling with named arguments in functions, is foo(bar=x) or foo("bar"=x) preferable, considering itโ€™s possible to do a variable assignment inside the arguments as well, which would require parentheses in the first example
23:31
@JoKing actually no, fails for input of 1
i knew there was a reason you had to actually detect the sign bit
oh darn
@ATaco I feel slightly partial to the first one, but i think thats python prejudice
because of course in python, if youre doing variable assignment in that context you have to use := instead of =
I prefer the first one, but Iโ€™m not sure I like overriding syntax like this.
The second one is overriding the syntax
In the context of the language, assigning to a non-variable is invalid. So using string literals avoids any sort of collision with regular assignment
23:40
BCMC: given two signed ints, a specific one of which is guaranteed to be either 1 or -1, multiply them
could use an entirely different syntax then; foo(bar:x) or some such
That being said, I already use the first form for function definition
if you have map/dictionary literals then perhaps use whatever those use
@ATaco IMO named arguments should use a different syntax
I have yet to implement them, but I will likely use the same thing as the calling
Maybe I use the walrus operator..?
23:43
Is this for funky3?
@ATaco I would prefer the first, but if it's ambiguous, I agree with Radvylf, maybe foo(bar:x)?
my firefox and discord were just crashed by my windows insider build telling me it'll expire in like october
23:59
bar:x would conflict with the Lua-style curried index operator, foo:bar(baz), but foo(bar:=x) is completely free for use

« first day (4120 days earlier)      last day (1021 days later) »