« first day (3935 days earlier)      last day (909 days later) » 

12:03 AM
TFW s/attached/attacked
 
1:00 AM
Sandbox posts last active a week ago: Is someone eavesdropping? (WIP)
 
@OldSandboxPosts :( You're the only one here
 
 
1 hour later…
2:16 AM
@NewPosts I would love to see a bunch of Perl answers to this :p
 
What is Math.fround, what does it do and why is it so cursed?
 
> The Math.fround() function returns the nearest 32-bit single precision float representation of a Number.
From MDN
 
ಠ_ಠ
 
@emanresuA It's short for Math.frowned and it makes you sad
 
2:21 AM
(Found while looking for unintended cracks to this )
@RedwolfProgrammed Agreed
 
Dang it you stole my joke
Very rude
 
There's all sorts of cursed Math functions
 
Math.clz32
Which Arnauld used quite nicely at one point
 
They range from the somewhat esoteric (imul, clz32) to the really cursed
 
I was gonna say that I suppose some would say that using fround is frowned upon but no redwolf had to go steal my joke
 
2:22 AM
@lyxal It seems unlikely that redwolf came all the way to Australia just to steal your joke. If I were you, I'd check your cupboards.
 
I also took a plat
And some socks
 
@RedwolfProgrammed Did you kidnap me?
 
No, I left you alive as a warning to the others
2
expm1 is a really strange one
Same with logp1
I wonder what the intended usage is
 
@RedwolfProgrammed don't tell me you took Aaron
 
Alright then, I won't tell you
 
2:24 AM
To add or subtract one from a result? Yeah, idk
 
@RedwolfProgrammed I think that's for better floating point accuracy
Python has functions like that
 
Oh weird, it's actually log1p not logp1
Such consistent
@lyxal Ah, you're correct
 
@RedwolfProgrammed well it still managed to find its way into my esolang
 
Yep
∆E (a: number) = (e ** a) - 1 # uses math.expm1()
 
2:26 AM
Seems like it'd be pretty useless in a golfing language, even as a doubly thingy
 
I saw it in the math library and just added it
 
But I guess there's no shortage of doubly thingies
So not including it would be kinda pointless, unless you planned on adding a ton of doubly thingies in the future
I was smortn't when making Ash and dedicated 16 whole code points to two byte commands
And another like 48 for single byte number constants
 
ಠ_ಠ
We have 5
@RedwolfProgrammed Six of those
 
@emanresuA 4
 
I'm counting 0 to 9
 
2:29 AM
@emanresuA There's only 4
 
@lyxal Wdym?
 
@RedwolfProgrammed I'll most likely have two or maybe four in my next golfing language
 
@emanresuA 4 digraph characters
 
Oh wait there are
 
Oh no wait k exists
 
2:30 AM
Oh :P
That's what I was thinking of
 
I'm not a huge fan of digraphs
 
¨øÞ∆k
@RedwolfProgrammed Why?
 
Constants, numbers, strings, lists and miscellaneous
 
They take a lot of work to implement and design, they're rarely used (by design), so you get very little use per unit of work
 
(Not in that order)
 
2:30 AM
Plus they're a tad cheaty IMO, but not enough that I oppose them for that reason
 
@RedwolfProgrammed øm is used more than a lot of the single-byters
(In v2.6 it will be ∞)
 
(If you had more than like ten it'd be cheaty since then you most likely just have something like sledgehammer, but 1-4 is perfectly fine IMO)
 
If you count modifiers as digraphs we have a lot tho
 
@RedwolfProgrammed And most with more than 4 are still fine since they don't use all of that
 
I just realised, we're going to have to go through all the answers that use builtins deprecated in v2.6 and add notes.
I still think we should go with v2.718
 
2:34 AM
One of Ash's design goals was to never have to update it upon release
 
laughs in 55 vyxal releases
 
@RedwolfProgrammed Idea: Fix Ash, rename it to Ember, and start using it.
 
Nah, I've got something exciting planned for my next golfing language
 
@emanresuA but they ain't exactly digraphs, they're operators
 
I'll be starting it in January
Since that's when I started Ash
 
2:37 AM
@emanresuA just move the 2.6 to vyxal.pythonanywhere.com
Ez
 
Either that or rvyxal.pythonanywhere.com
Cos v2 -> v3's going to be like v1 -> v2 - 90% of programs will not work.
 
I'd make a version change feature but idk if I can fit many releases into just 500mb
@emanresuA why the r?
 
golf the interpreter
@lyxal For rewrite
 
@emanresuA save it as byte code lol
 
@lyxal I'd make that v3 priority.
Since then we can build version switching into the language
 
2:50 AM
just make the link formats for version 3 incompatible with version 2 so v2 links are distinguished that way
 
True, we should at least base64 the code so each char isn't just %...
 
3:33 AM
@emanresuA lol I just realised that we most likely won't be using PA for v3
We can just use github pages because Scala to JS
 
4:17 AM
Why does "tortilla" mean "omelet" in spanish spanish
That's just...why
 
spanish spanish
as compared to English spanish or french spanish
 
...or latin american spanish :P
Which is different in a lot of ways
A lot like british english vs. american english
(Although "spanish spanish" is an intentionally bad way of describing it :p)
 
 
1 hour later…
5:32 AM
@lyxal So vyxal.pythonanywhere.com for the rewrite?
 
@emanresuA pretty much
 
o/ for now 'cos I have to do a three-hour maths test at half past six on a school night
 
o/
 
wait, are we actually using scala for vyxal lol
 
most likely, yes
in Vyxal, Nov 3 at 23:19, by user
That's why I need to try to get the basics set up first, so I can see if it could be easy enough and I could have alternatives for y'all to choose from
user's still working on drafting some demo code
and from there, if there's no major problems, scala will be the language of choice
 
6:01 AM
oh cool, thanks to DST I get an extra hour of sleep tonight
of course by which I mean an extra hour of staying awake and not sleeping
 
6:20 AM
@hyper-neutrino lucky
Australia's just only started that a month ago
And I hate DST
 
whats DST?
oh
oooh
daylight saving time?
 
Yes
 
so you actually do that
 
Unfortunately
Why can't we be like Queensland or Western Australia and not have it? Why does New south Wales have to be one of those states that decides it's a good idea (when it really isn't) to have daylight saving?
Gosh dang it.
 
7:18 AM
@lyxal bruh
why does DST exist
 
i think you can thank george bush for that? idr
nope I don't remember correctly
 
@hyper-neutrino ?? DST has been around for way longer than that
 
why is knuth's book so costly
 
you can probably just find a pdf of it online
 
7:32 AM
For example, I definitely do not condone going to the excellent book piracy site libgen.rs. Do not do it, because even though the site is totally safe, it's illegal! This link is not a good idea to click!
 
@pxeger ok i wont click it
i want a hard cover not a pdf lol
 
well hard cover books generally are pretty expensive, much more so ones like AOCP because it's not mainstream pop fiction
 
@lyxal Because you don't have sensitive cows.
 
6
Q: How long is the number in this base?

2x plus 1Given a positive integer \$n\$ and another positive integer \$b\$ (\$1 < b < 36\$), return the number of digits/length of \$n\$ in base \$b\$ 1597 16 -> 3 1709 9 -> 4 190 29 -> 2 873 24 -> 3 1061 27 -> 3 289 26 -> 2 1575 34 -> 3 1135 15 -> 3 1161 22 -> 3 585 23 -> 3 1412 23 -> 3 1268 14 -> 3 714 ...

 
 
3 hours later…
10:30 AM
just found my favourite line of Python code ever
import math as maths
9
 
Couldn't agree more
 
10:47 AM
i do love maths: maths.sins(2 * maths.pis)
 
 
2 hours later…
12:48 PM
0
Q: Dynamic Memory Allocator — Shortest Code

The ShwarmaGiven an integer n as input, write a function that dynamically allocates n bytes and returns their address. Rules The allocator must be able to dynamically allocate memory at runtime. It doesn't matter where the memory is allocated to or in what form, as long as it's allocated in a valid locatio...

 
1:30 PM
@pxeger This was what my old bio teacher recommended to get access to the class textbook and a few more lol
I didn’t even know there were pirated books on there
@Neil But math is shorter!
 
1:41 PM
@user but if you use import math, you're only allowed to use one attribute from it, as it's a singular :P
2
 
 
1 hour later…
2:46 PM
CMC: Output a random character from the jelly code page (take that other languages)
 
3 bytes in Jelly
Brownie points to anyone who hasn't used Jelly a lot before for getting it
 
3:03 PM
@PyGamer0 well, that's just outputting a random byte, and specifying the jelly code page as your output code page...
 
@hyper-neutrino Could I be changed back to Redwolf Programs again? I just realized there's an extra e in my name now ._.
And I can't rid the world of this disgusting vowel until Nov 25
 
@cairdcoinheringaahing ØJX? It was just two Ctrl+F's, not sure it's worth the brownie points
@RedwolfProgrammed log1p = x => log(1 + x)
expm1 = x => expm(x) - 1
 
Why you would need them I do not know, but Scala has the same methods in its math package/object, so perhaps it's a standard thing?
 
I think most languages' maths are roughly the same
 
3:13 PM
Except British ones
 
@user But I set the value of any brownie points I offer, so their "worth" is entirely up to me :P
 
True, and it's not like you'll ever let people cash in those brownie points for real brownies anyway :P
 
@RedwolfPrograms you have been 11'd
 
Thanks!!
 
You're fine with that first e though?
 
3:22 PM
Radwolf 😎
 
3:52 PM
@user I promise, if there is ever a mass meetup of CGCC members, anyone who has brownie points from me can redeem them for actual brownies :P
 
they're 100% gonna be weed brownies
 
I thought I made it clear via the starboard that I don't share drugs :P
 
Yeah, it's only brownie points, not weed points
 
4:09 PM
@cairdcoinheringaahing What I missed opportunity – I should have given you brownies when you visited.
 
@Adám You've got it the wrong way around - I should've brought some brownies for you and your family :) I did feel a little bad about eating your food without bringing any of my own to kick into the picnic
 
No worries. With all our kosher food rules, bringing things to us is a mine field.
 
I don't think it would've been a good idea to bring weed brownies to someone's family :P
 
My father apparently used to bake weed brownies.
 
0
Q: Smallest possible Scratch 3.0 project file (SB3)

Niall WardI've removed unneeded JSON and files and tried compression other than deflate (the default) but only gone down to 280 bytes without a "The project file that was selected failed to load" error from trying to import it. It only needs my project.json: {"targets":[{"isStage":true,"name":"Stage","vari...

 
4:14 PM
I feel like this could be a challenge with some work, but certainly not as it is
 
My father told me that weed grow much faster when placed on grilles above fermentation vats…
 
@NewPosts both of OP's other posts are golfing tips questions so this is almost certainly intended as a tip not a challenge
 
Maybe suggest editing into the challenge and explicitly stating what they want?
 
Please vote on this proposal to change to
 
wouldn't it work to just have one answer and to UV/DV it for voting lol
 
4:24 PM
This allows for additional answers, if people come up with more nuanced opinions than "yes" or "no"
Nuance? In my internet!?
4
 
"Yes, array-manipulation is bad, but let's rename it to array-man instead of array"
 
4:35 PM
Someone's robbers can crack this
 
4:52 PM
0
A: "Hello, World!"

weatherman115PICO-8, 32 bytes ?"h\69\76\76\79, w\79\82\76\68!" PICO-8 reads code in lowercase, but prints in uppercase. Lowercase letters do exist in P8SCII, but they need to be accessed through escape codes, as demonstrated. Alternate 32 byte solution, making use of the \* escape code to print the first tw...

 
5:31 PM
If you crack I give 50 rep
 
5:45 PM
@RedwolfPrograms Hey
 
@RedwolfPrograms can you crack this question
 
I don't know ><>, so probably not
I'm more of a KotH guy anyway :p
 
learn this
 
6:03 PM
holy shit bitbucket is the worst piece of software I have ever set eyes upon
 
What's bad about it?
 
it has basically no features
you can't even view a diff without it saying "sorry this is too big"
 
Opinions on // for integer division in a practical language?
Also, I really like {- for block comments, but it's ambiguous in most practical languages :(
 
{- ... -} is nice
@RedwolfPrograms I prefer :, but that's often used for other things in languages
 
@cairdcoinheringaahing Only problem is there's no way to know if a {- is the start of a block comment, or the start of a { ... } with a - operator at the start
I could make it so that unary - isn't allowed to be followed by whitespace, but that feels kind of weird
Maybe I could use \{ ... \}, which isn't as attractive but also isn't ambiguous
 
6:19 PM
% isn't that bad for a single line comment character
 
The fact that LaTeX and Matlab use that annoys me
 
And SQL too, right?
 
SQL uses --
 
Seems like a sensible comment character to me, it's not ambiguous
Ah
 
I like ; for single line comments personally
 
6:21 PM
Eh, I don't really like that LISP uses that because it means something different to me, coming from Java
 
It's what assembly uses, and it's not too far from how other languages use it
I definitely dislike it less than #
 
Opinions on >?
 
@RedwolfPrograms That's what Add++ does :D
 
@user Already using it for greater than
 
(* ... *) or [* ... *] would be nice
Making it nestable would also be cool
 
6:23 PM
Maybe even {* ... *}...
@user Was already planning on doing that, nestable comments ftw
CMQ: Should comments use a small amount of parsing to prevent the closing substring from closing the comment when it appears in a string literal?
E.g., {* This is a "string containing *}", and it shouldn't close the comment *}
 
I'm not sure I understand what you mean
Oh yeah, combined with nestable commnets, it'd be useful
 
@RedwolfPrograms Yes, strings shouldn't close or open a comment
 
And what about single line comments? If I put ; *} abc at the end of a line, then put {* at the beginning of it, should the *} close the block comment or not?
 
No, it shouldn't
You're basically nesting a comment inside, so everything inside that single line comment is treated as a separate comment to be ignored
Would probably make parsing harder though
 
the big advantage of nested comments is you can comment something out that has comments inside it already unproblematically
 
6:37 PM
^
 
6:52 PM
^
Does make some challenges here impossible tho
 
Only two that I know of
 
Yeah, illegal strings, and the two C&R based of that
 
7:09 PM
o/
 
7:41 PM
@RedwolfPrograms when you say "a small amount of parsing", do you mean basically lexing? if so, the answer is no
or at least, there should be a way of doing it that doesn't require it to lex correctly
what if I want a block comment containing a lone quotation mark? I can't do that now, because it's taken as a string
or, more practically, an English sentence containing an odd number of apostrophes, because they're wrongly taken to be single quotes
 
Hmm, good point. maybe there should be non-nesting, simple block comments too
Like {; ... ;}
No way, the hammer suit in smb3 lets you kill thwomps and boos
 
that makes sense; it's similar to the spike helmet in smw
 
I guess that's why it's so hard to get
 
wdym
oh you mean in the story mode?
 
Huh?
Oh I'm talking about the real game not SMM
 
7:50 PM
oh lol
too much smm2 on the brain
 
I don't even think the hammer suit is in SMM2, I think they replaced it with the boomerang suit
 
If y'all want to guess a word, I just posted a "challenge" there
 
@RedwolfPrograms it's there in 3dw
oh, it does something totally different actually
 
The builder suit's nothing like the smb3 hammer suit, yeah
The smb3 one makes you into a hammer bro
 
 
3 hours later…
10:32 PM
Hey guys I've found something y'all are all likely to hate
 
> Directly above the second Roto-disc orb from the left of the room is a Warp Pipe the player needs to fly up to.
Ah great game design
Thank you SMB3
That's definitely how to make a good level, just hide a pipe on the ceiling and make the player fly to it
With no hint about its existence
 
@lyxal sus
 
1
A: "Hello, World!"

HydrazerRickRoll-Lang, 70 bytes no interpreter on tio so i cloned the repo on replit lol (code in z_code.rickroll) take me to ur heart i just wanna tell u how im feeling "Hello, World!" Explanation: take me to ur heart -- "main()" function declaration i just wanna tell u h...

 
10:50 PM
@Hello,World! @lyxal reject vyxal, return to rickroll-lang
 
@cairdcoinheringaahing Already implemented
 
That's extra annoying on mobile, cause it opens the YT app :/
 
11:12 PM
CMM: IMO, this shouldn't be closed; it should be open and tagged with . Anyone else agree?
 
probably
maybe should also have and then marked by design
 
Yeah
I'm voting to close this question as off-topic because questions about badges and such belong on MSE. — user45941 Feb 15 '16 at 18:20
That's just.. wrong
 
Also I don't see how this is unclear in any sorts
Basically it is smallest valid ELF binary but with Scratch 3 instead of Linux, no?
 
11:37 PM
Yeah I voted leave open. The first few VTCs were from when it was first posted and it actually was a bit unclear, but not sure why people've kept voting to close it.
Actually seems like a pretty good challenge
 
the fact that I remembered how to extract everything from a scratch project after all these years surprised me
@Bubbler pretty much, but it's mostly just the smallest JSON configuration that can be accepted as valid
 

« first day (3935 days earlier)      last day (909 days later) »