« first day (2876 days earlier)      last day (1983 days later) » 

12:02 AM
@HyperNeutrino ... use mine
 
12:18 AM
Is there an SE for finding novels you read many years ago and only remember vague details of?
 
@Οurous Lit perhaps, but you'd have to check if story-ID is on-topic first
 
Ooh yeah they have a tag and a bunch of questions for that. So does scifi. Didn't know about that tag.
Probably gonna try scifi since it's in that domain and it's a bigger site.
Thanks
 
Anonymous
Basically every creative arts site (music, lit, sff, m&tv, others that I can't think of right now) allows ID questions
 
12:35 AM
I think my mouse-wheel button has died in the past day. Which is annoying because I tab all the things
 
12:48 AM
so i think there was a CMC before asking for the longest word with alternating vowels/consonants and i suggested that could be made into a fun chat game where people had to match simple regexes
anyone want to try that
 
.*
 
well thats boring but yeah sure
wed do it in sandbox or something not in here
 
I was just being cheeky, lay one out. You'll get bites
 
3 players would suffice. the winner of a round would do the next regex
 
@quartata ^Well clearly, since it could be quite silly\. What with the ability to force humiliate or fail\.$
You might need to restrict it to "there must be an infinite number of potential matches to said regex"
Mmmm. Or "you must be able to construct an infinite, non-repeating sequence, which matches the regex"
 
1:00 AM
im content with an honor rule that you have to have some matching word in mind when you do the regex. people dont go into contact and make up the letters as they go even though they could
maybe i should have suggested this in the sphinxs lair :p
 
Hmm, you could run with that. "I'm thinking of a word, <clue>, <complex regex>"
 
the longest word is what appeals to me
 
Oh, I was still in the mind of jibberish padding for some reason.
 
for instance i have a really simple one right here: .*z.*ed obviously zed matches, but im confident there are others. i dont have to know the winner
 
Razzled
Actually Zombified is 2 better, but that was just an example so I'll stop thinking it over
 
1:08 AM
bedazzed ties
Tiebreaker would probably be who posts first
no using a dictionary of course, like all the other word games here
oops i misspelled haha bedazzled
 
@quartata Zendo, but PPCG style
 
@JoKing In any event, as have previously mentioned, we speak different languages; and more than likely view the world (including the "community" and "rules" therein) completely differently. I wonder why this guy got banned from chat...
 
Or maybe it's Contact PPCG style or both
 
45 comments and counting
 
its kinda like zendo yeah. but with languages rather sets of numbers
 
1:11 AM
@JoKing Lol why are we the only two that even try... because everyone else already knows it's a lost cause :P
 
well. reverse zendo. you know the rule
 
@Quintec I just downvoted it and moved on
 
@Quintec I'm a masochist, I don't know about you
 
anyways does anyone want to actually play it lol
 
@JoKing Fair
@quartata Create a chatroom for it lol I might as well
 
1:13 AM
I would
 
hmm whats a good name
 
Regdo? Zendex? Nerds doing nerd things?
 
(reg|zen)(ex|do)
 
string + supremum = strupremum :P
 
Oh man, someone's probably going to do gross things with capture groups
 
1:17 AM
nothing more advanced than BRE
 
My regex skills are extremely poor
 
@Veskah (.)(.) heh
 
@JoKing Ayyyy
 
.*lll.* fun thought
 
1:35 AM
sorry was afk

 Strupremum

For playing the game Strupremum, where players compete to get ...
5
 
Man, wish I could see part 2 of AoC without actually doing part 1
 
@Veskah ...
@Veskah you need the stuff from part 1 for part 2
 
I just want to see the prompt, yo.
 
lol
 
Had no real intention of doing it
 
1:47 AM
@quartata use linux dictionary :P
@Veskah :|
@Veskah it literally takes an hour. max
 
And?
 
@NathanMerrill only because moderin programming languages are terrible
@Veskah just use other people's code maybe
 
Danke
 
@Mego false, MTV has banned ID questions, anime has banned them for a long time, music has banned music ID questions (but still has instrument along with pictures), gaming has cracked down with only real pictures/screencaps allowed
yeah SFF and lit still allow them, but they've had such a troubled and tortuous past I don't think it's fair to say "basically every creative arts site" without listing caveats
(I was on lit for the beta and around on mtv for the banning of ID)
 
2:17 AM
I find myself frequently wishing for an operator that checks if the difference between something and something else is less than or equal to one. Not only in code golf, just in general. I seem to check for that a lot.
 
do you mean 0 < diff < 1? or just <1
 
@Riker abs(diff)<=1
 
3:00 AM
I wonder why most of the languages don't have sth like a < n < b
That's so handy
especially when n is like Input.touches[0].position.x
 
In most functional or C-like languages that would need to be special-cased heavily since either a < n or n < b would result in a boolean, since < :: a a -> Bool and it wouldn't make sense for it to have a different type sometimes.
 
So Python made it specifically?
or just like a syntactic sugar?
 
It is really not that difficult to parse it. That's not a real reason.
 
@ShieruAsakoto Basically.
 
Thanks, GCC. You're the best.
It optimized away the entirety of the "make_kernel" function for TPT's atmos. Literally just loads a precomputed value
altho it seems clang might do a better job than GCC at compacting the actual remains
 
3:16 AM
lol, was not expecting a vector instruction
 
ALWAYS expect a vector instruction :P
 
Is that actually even faster when it's only used once?
 
@feersum The issue I was raising isn't with parsing, it's with knowing when < should be chained. What if I define an arbitrary comparison operator ?!?! :: a a -> Bool? What if I define int operator<(int n);?
 
@feersum I'm just impressed it vectorized the complex loop. It's literally a constant that's only computed once anyways.
What I find absolutely hilarious is how badly the otherwise good ICC fails at optimizing it.
 
@Οurous I assume you'd disallow non-boolean return values.
 
3:18 AM
@feersum I'm just impressed it vectorized the complex loop. It's literally a constant that's only computed once anyways.
What I find absolutely hilarious is how badly the otherwise good ICC fails at optimizing it.
MSVC fails in a similarly horrible manner
 
I imagine it's more along the lines of (1) converting loop to 9 MOVs (2) convert MOVs to use vector instructions, rather than actually vectorizing a loop.
 
@moonheart08 My experience with MSVC ranges from "how did it do that?" to "why is this so slow?"
 
s/vectorized/executed at compile time/
 
The real test though, is to try making it a constexpr.
 
@Οurous unsuprised. MSVC is the mixed bag of mixed bags
 
3:20 AM
Ideally you should be able to have the data baked in at compile time without the copying step.
 
@feersum the REAL test is to rewrite The Powder Toy to actually use the GPU instead of it's massive software renderer
 
@moonheart08 Native multi-gpu please
 
@Οurous CPU-bound shaders.
 
@moonheart08 just add more threads it's easy and it'll make it faster :P (but seriously since we're talking about GPU rewrites)
 
Wait a minute, I just realized GCC is not doing a good job at all.
You use the variables i and j without initializing them.
 
3:23 AM
TPT has too much legacy C in it's graphics code to be touchable in the slightest
 
Therefore a better optimization would be to crash immediately.
5
 
@feersum doesn't the for loop entry init them?
 
Oops, I missed the one that initializes i.
 
That's still a star-worthy quote. Enjoy your minute of internet fame, stranger.
 
@moonheart08 I'm conflicted because I both understand that position and love spending time unravelling and refactoring old C and hand-written assembler.
 
3:26 AM
Whoa, making it constexpr actually works.
 
@Οurous So am i :D
@feersum Seriously? Make a PR pls am on a chromebook so i can't do it right now
 
I have no idea where this code is from.
 
/me gets link to air.cpp
now you do
welcome to the legacy hell that is TPT, the coat eater is over there.
Parts of the code are so old and poorly written they don't even use C's builtin floor function. (opting for the +0.5 trick instead)
We have a rendering engine that's entirely in software, and yet we're trying to add controller support
 
Pshhh we have hand-written assembler that hasn't been touched since it was added to version control 18 years ago, and was already older than that at the time. I mean I'm not sure if it's classical "legacy code" since as far as anyone can tell it works perfectly and hasn't needed to be changed.
 
Can't argue with that
 
3:37 AM
I'm just hoping nobody wants it to be 64-bit at any point.
 
hahaha
TPT desperately needs optimized in a lot of places
 
3:58 AM
@Riker thanks!
 
@Doorknob I for one accept our new knobbed overlords
 
4:08 AM
Strupremum went pretty gud
 
 
1 hour later…
5:28 AM
0
Q: Sino-Korean numerals

cobaltpThe Korean language has two sets of numerals, a native Korean numerals and Sino-Korean numerals. The native Korean numerals are mostly used for numbers under 100, such as age and time. The Sino-Korean numeral system, which is based on the Chinese numeral system as its name says, is used in most...

 
5:42 AM
@dzaima happened again :(
 
6:08 AM
@betseg yep to me too. though mine does't work for tne 18 either (and i forgot to try my actual input :|)
 
my p2 program had an unnecessary loop that p1 needed but p2 didnt, i removed it and its fixed
 
6:24 AM
oh found my mistake. reminder to self: don't ignore it when magic constants randomly appear
 
 
2 hours later…
8:14 AM
@moonheart08 how would it not fully be software
@feersum of course. But basically every single language still needs to specialcase it
@Veskah if you want it easier I have JS code you can practically paste into the console of your data page
 
 
2 hours later…
10:31 AM
hi all
 
howdy
 
today I am being driven mad by small things involving google sheets
e.g. how do you log into google sheets without just googling "google sheets"? From gmail for example if you click on the 9 dots in a square in the top right lots of google apps are listed but not sheets
 
@Anush sheets.google.com ?
lol I just guessed without even knowing it
 
@feersum and you are right! But am I being blind in not seeing it in the long list of apps you get from clicking on the square with 9 dots?
 
Who would want to do that anyway?
 
10:36 AM
the settings bar -> more tools -> create shortcut
tick the open as window, and it will create a shortcut that opens as if it were an app
 
@feersum someone who wants to click their way to happiness :)
but fair enough
ok second thing that annoys me about google sheets... :)
I have to produce an excel spreadsheet with row height 100 and column width 25. But if you make the spreadsheet in google sheets and then download it as an excel spreadsheet you get numbers like 24.38 width.
So I now have to make it all in google sheets. Download it as excel, send it to someone who then changes the 24.38s to 25
grrr :)
 
@Anush furthermore, after you've done that, it will appear in your chrome://apps/ tray
 
@primo oh even better, once you are in sheets and you click the 9 dots it gives you an option of adding the shortcut!
problem a) solved.. Thank you!
maybe there is a *.SE site where someone wants to find a fiendish way to get round my row height problem
if only I could change the row height in excel from the command line!
 
Have you tried regex?
 
.xlsx is a binary format sadly
unless there is a good library to read it
hmmm.. openpyxl can at least load it
(Python)
maybe I should set a challenge to make an xlsx file with row height exactly 100 according to Excel :)
 
10:57 AM
Does anyone know why I'm not getting what I want here in perl 6. I want to be able to print the next number in a seq, after some number that I know. For example, (without the ».say) I would expect this to print 11
 
@Anush .xlsx is actually just a zip file
 
@primo ah interesting
 
as to why yours doesn't work, i honestly don't know :p
@JoKing might be able to tell you
 
@primo Nice, didn't know about using > like that
 
11:08 AM
@H.PWiz note that that is still the greater than operator
Iirc
 
I see it's actually on the tips page
 
@H.PWiz wait, why would that work
Would it not print 10
 
It uses two arguments, if there are two *s. Like in fibonacci
 
0
A: Sandbox for Proposed Challenges

Kevin CruijssenNon-unique Matrix Diagonals code-golfmatrixarithmeticnumber Challenge: Given a matrix input, determine the amount of diagonals with duplicated numbers. So if we have a matrix like this: [[aa,ab,ac,ad,ae,af], [ba,bb,bc,bd,be,bf], [ca,cb,cc,cd,ce,cf], [da,db,dc,dd,de,df]] All diagonals wou...

 
@H.PWiz I thought that doesn't work in the stop condition, but idk
 
11:18 AM
@ASCII-only primo has already provided an answer.
@ASCII-only apparently it does
 
@H.PWiz wait, what do you even want to do
Just print the next element?
 
Yes
Imagine my seq is more unpredicatable
 
Then why did you even include the hyperoperator in the first place >_>
 
I can't remember why I put that in. Just to show that the list was terminating before it should, maybe
 
@Anush there is...
@Anush yes. No offenders, but IIRC it's pre-installed on newer Chromes, if not just get it from the web store
 
11:26 AM
@ASCII-only Did you mean to reply to me?
 
@Anush you don't even need a program... Select all the rows you want to change. Right click. Row height. Same for columns
@Anush yes
Also, *offense
 
@ASCII-only So in google sheets, the row heights are in pixels but in excel they are in points. There is no way to specify row height in points in sheets that I can see
 
@Anush iirc they are pixels in excel too
 
@ASCII-only the default is points. quora.com/…
 
@Anush have you tried typing "10pt" in Google sheets
 
11:28 AM
@ASCII-only even worse.. in sheets the column width is in pixels but in excel it's some function of a character width
@ASCII-only Yes that doesn't appear to be valid syntax in sheets
it is in libreoffice however
 
I can print the 1000 digits after the decimal point of e in 26 chars of perl 6 :)
 
@H.PWiz :|
 
@ASCII-only so I can set the row height but not the column width correctly in libreoffice and I can set neither correctly in google sheets
which is a total pain
 
@H.PWiz takes me 27 :(
 
I was wondering if I could set them using python which has a module for editing xlsx files it seems
 
11:32 AM
@primo It used to for me as well. Still using integer arithmetic
 
@ASCII-only the ~v^ format string is a great tip, saved me bytes in a few challenges, so thanks for that
 
11:46 AM
@primo wait, what
@primo where's this from
 
11:59 AM
@ASCII-only you left a comment on a lisp answer suggesting ~v^
 
12:11 PM
@primo oh, finally found it. Chances are, like all smart golfs, I found it on anagol
Or... Well... Just taken from the previous revision actually
 
another one that's helped a lot is (format(condition)"~d"n)
if condition is false, it won't output anything
(format(> n 0)"~d"n)
(format t"~v^~d"n n)
works out the same in this case
 
:O that's smart
 
12:35 PM
0
A: Sandbox for Proposed Challenges

Kevin CruijssenSubtract the Folded Matrix code-golfmatrixarithmeticnumberinteger Challenge: Given an NxN matrix where N >= 2 and one of eight distinct 'folding options', output a 2D array/list with the subtracted values. The eight folding options are: left-to-right; right-to-left; top-to-bottom; bottom-to-t...

 
1:09 PM
4
Q: How many syllables in that number?

AJFaradayI'd love to take a number and know how many syllables are in it, when spoken in English. Let's limit this to positive integers which are less than one thousand. I'm British, so we're going to follow the hundreds column with an 'and' when there are any non-zero digits after it. The Challenge ...

 
1:37 PM
0
A: Sandbox for Proposed Challenges

HyperNeutrinoPath Rerouting grid graph-theory code-golf Given a grid of directions and a start and end position, determine the minimum number of substitutions in the direction grid that needs to be made to complete the path between the two points. The grid is doubly-cylindrical. This is clearer given an exam...

 
alright, i'm done with lisp
the rest of the challenges i'd rather not do
 
O_o that was fast
 
the roman to arabics are quite short too... i should probably do that one also
maybe also sierpinski
 
And then there's me
Still 10 bytes behind you in lisp divisors
 
1:53 PM
it's the same trick i used in J, surprisingly
 
Huh
 
the problem with dotimes is that your looping variable starts at 0
 
Yes
 
so don't use mod. there's other mathematical functions that can serve the same role
 
Oh, I must have been overthinking >_>
 
2:14 PM
Ok. Turns out I'm to bad at math to figure it out
 
Websites are always refusing my credit cards for no good reason.
So I think I need to buy some bitcoins instead.
 
(=(mod n i)0) == (=(gcd n i)i)
 
What's a good way to buy them (without a credit card!)
 
... or trading other digital currency? ;)
 
@primo :| of course, the functions related to factors
 
2:17 PM
I can trade other digital curriencies if it doesn't bottom out with a credit card :P
 
@feersum get a crapton of specialised cryptocurrency mining cards
 
One possible answer would be if you can trade a gift card for them.
 
also, am i the only one who keeps misspelling coerce?
i suck at markup
 
2:32 PM
0
A: Sandbox for Proposed Challenges

Luis felipe De jesus MunozWorking time This is actually helpfull =D Given as an input Start Date YYYY-MM-DD HH:mm:ss End Date YYYY-MM-DD HH:mm:ss List of Holidays [YYYY-MM-DD, YYYY-MM-DD, ...] Your task is to output the amount of working time between the two first dates. (You may output the total seconds or any ot...

 
 
1 hour later…
3:46 PM
I love this question at The Workplace: workplace.stackexchange.com/q/124711/25589
10
 
Would anyone like to play strupremum? I've been itching to play it.
 
im here
 
0																												'
@PostLeftGarfHunter I'd be interested
 
@Geobits That person has a promising career change ahead of them.
 
4:02 PM
Yeah, I clicked into it expecting it to be the usual bitchy griping, but was pleasantly surprised
 
was that in hnq
 
Yeah, but with only +6 at the time I saw it. Must be a slow day at TW
 
hmm i didn't see it earlier when i was browsing. unlucker
My friend just had a kid and made a joke that Dominos wanted to hire his wife because she is so good at delivering. I commented that I'd be upset if it took 9 months for my pizza to arrive.
I hope he doesn't get mad
 
Get enough women to do the pregnancy in parallel, and you can have a baby in a matter of days
4
Pro tip: Make sure you have everyone's agreement, or nobody's going to be happy about this
 
That introduces a lot of race conditions...
5
 
4:11 PM
Eh, those can be worked out post-release
That's what the big companies do, right?
 
I think I saw a relevant hnq the other day but I can't find it now
 
Probably the mage-power one on Worldbuilding. Saw it this morning.
 
yeah that one sounds right
 
4:37 PM
what one?
 
Almighty diamond people, can someone give this guy write access to this room, please? @Dennis @Mego @DJMcMayhem
 
On it
 
Thanks :D
 
Actually I can't for whatever reason. It says his chat account doesn't exist?
I'm not sure what to make of that
 
@DJMcMayhem Damn, I'll talk to him. Thanks anyway
 
4:41 PM
I assume they have to have logged into chat at some point.
 
Yeah he literally just created his account, I forgot chat accounts are separate entities
Okay he's just made his chat account now, can you try again please?
 
Done
 
Thanks <3
 
 
2 hours later…
6:15 PM
0
A: Sandbox for Proposed Challenges

BeefsterIs it Valid Modified UTF-8? code-golf string decision UTF-8 is a relatively simple way to encode Unicode codepoints in a variable-width format such that it doesn't easily confuse code that isn't Unicode aware. UTF-8 overview Bytes in the range of 0-0x7F, inclusive, are normally valid Bytes...

 
6:49 PM
1
Q: Standardize the Samples (Compute the z-Score)

flawrGiven a list of floating point numbers, standardize it. Details A list \$x_1,x_2,\ldots,x_n\$ is standardized if the mean of all values is 0, and the standard deviation is 1. One way to compute this is by first computing the mean \$\mu\$ and the standard deviation \$\sigma\$ as $$ \mu = \frac1...

 
7:43 PM
I'm aware the way I've scored this is quite terrible, anyone suggest a better way? Maybe golf the source and get its byte count?
 
8:00 PM
@FlipTack what's the limit of the value in one RAM unit (?)
 
@ASCII-only 999, making it 10 bytes minimum
I think sticking with the source is best, after all it's just a bit of fun
 
*10 bits
 
ofc, spelling mistake
**brain fart
 
Wonder if this should go on TIO
Can't output letters do in not sure if it's worth it
 
yeah, it's just a really simple example of assembly language invented to teach students with
 
8:10 PM
@FlipTack it's not slow though. There's something called a run button >_>
@FlipTack but... Yeah. This is your only option if you don't want to go into exotic storage counting formatd
 
8:25 PM
Huh. No one has yet answered that question in PowerShell.
 
CO- is an endofunctor on the category of category theory terms
 
8:40 PM
wow. i m so pleased that so many people enjoy my little word game. i would enjoy it even more if you woulf pay me $50.00 to play please.
 
i hope you like zimbabwean dollars
 
50 USD, any condition
no bills. coins only
 
@quartata I dislike the ban on look(ahea|behin)ds
 
@quartata I hope you like 5000 pennies
 
yes i would. as the previous post implies
 
8:44 PM
@Pavel I see what you did there.
 
there's more than enough spam on SE... ;-)
 
But not enough on Cooking
 
so... if there are x spam posts, there are (x+1) too many :P
 
@FlipTack The number of chars in the source isn't as fun to golf as the number of instructions (since labels and other interesting things are never optimal). I think it should be scored as either 2 or 3 bytes per instruction, with the understanding that it's really the binary or decimal of the instruction numbers.
 
 
2 hours later…
10:25 PM
Hey, Ð!
@AdmBorkBork LOL.
 
ý hello there
 
@H.PWiz I think the && is evaluated first. So the *.say ends up as the condition. For example, Try it online!
 
10:55 PM
Is there a nice way in Python to make integer arithmetic bounded, like how large floats become inf, so that calculations like 2**2**100 don't hang the program?
This isn't for golfing, libraries are fine.
 
so, you want to make some sort of fool-proof program?
 
Yes, but only fool-proof against huge numbers
 
hm... sounds a bit challenging...
because you want to check that before you eval
 
exactly
i think i could do it with some checks on the exponent and base, but that seems like a hacky solution
 
is allowing only pure numbers as input an option? i.e. use a function such as float instead of eval
 
11:02 PM
thing is, I do want to keep integer exactness within the range
 
maybe make your own class MyInt(int)?
 
yeah, i think i could do that
i was mostly hoping this was an already solved problem and someone would just know the right library
 
haven't really searched for a library yet :P
the thing is, making your own class means accounting for every operator
 
We only need %
 
uh... is that a joke or something?
 
11:08 PM
Search your feelings, you know it to be true
 
@xnor so... haven't found anything yet
will definitely not find anything on Google, and nothing on PyPI either so far
 
thanks for looking, i appreciate it
I had also googled to no avail, but I feel like i wasn't using the right search terms
 
actually, I did find something very slightly related
although I don't think that's what you want
 
yeah
 
that's some sort of fixed-width integers that "truncate" and act wildly and such
you want to use some sort of +∞/-∞ notation, right?
 
11:19 PM
ideally yes
 
yeah, pretty unlikely anybody else has thought of it... ;-P
and I thought this was a better solution to the X aspect of this problem... :-/
filtered with TOPIC :: SOFTWARE DEVELOPMENT :: LIBRARIES :: PYTHON MODULES and TOPIC :: UTILITIES
alright... I just found this among the serious stuff... lol
@xnor unfortunately, no fruit :-(
 

« first day (2876 days earlier)      last day (1983 days later) »