« first day (2274 days earlier)      last day (2866 days later) » 

18:00
(rarely thankfully)
Anonymous
@AdmBorkBork PHP doesn't follow any rules, so it's not even relevant :P
3
IEE 754-ish
Ooh, are we hating on PHP now? I thought we were skill kicking around Node.js.
@Mego the 2008 standard defines a total order function though that's different from the standard order though.
Anonymous
@Pavel We have multiple legs
18:04
For this total order, I already have -
Inf<-1<-0<+0<+1<+Inf, and that +NaN/-NaN are also considered larger/smaller than any number, I just dont know if Inf<NaN or Inf>NaN
Anonymous
I don't think Inf<NaN and Inf>NaN are defined
Or what order NaNs with different fraction parts go in
Watching George Ezra sing is so confusing. How can his voice be that deep?
Infinity < NaN
false
Infinity > NaN
false
I'm referring to totalOrder(NaN, Inf), not normal <
18:07
@AJMansfield found it
In Ruby, <=> involving NaNs returns nil whereas normally it's either -1, 0 or 1 when NaN isn't involved.
If x < y, totalOrder(x, y) is true.
totalOrder(−NaN, y) is true where −NaN represents a NaN with negative sign bit and y is a floating-point number.
totalOrder(x, +NaN) is true where +NaN represents a NaN with positive sign bit and x is a floating-point number
If x and y are both NaNs, then totalOrder reflects a total ordering based on:
i) negative sign orders below positive sign
ii) signaling orders below quiet for +NaN, reverse for −NaN
iii) lesser payload, when regarded as an integer, orders below greater payload for +NaN,
reverse for −NaN.
nothing about inf
@HelkaHomba Yeah the first time I saw/heard him was on some late show singing live. Total surprise.
Mobile is terrible, what can I say?
18:09
Geobits = George Ezra? ...I doubt it
Do you use swipe on Google Keyboard or any other keyboard?
Hmmm. The payload for Inf is all '1' in the spec
@HelkaHomba First three letters match.
@KritixiLithos I do
No swipe. It's worse if I do, trust me.
Anonymous
18:10
NaN > Inf according to totalOrder
Anonymous
(and -NaN < -Inf)
@AdmBorkBork Damn, you found me out.
Half-Life 3 confirmed.
I use swipe on Gboard (oh right, it's not called Google Keyboard anymore)
@AdmBorkBork @Mego thanks, that's just what I needed to know.
Anonymous
18:14
Note that I read that from documentation and didn't actually test it myself in a language
... someone just called me with a caller ID of "THOUSANDEYES"
Be afraid.
Yeah, I didn't answer it. I like being alive.
It's Geobits?
If Geobits calls you, do you want to pick up?
Let's all consider this for a moment.
18:17
Of course you do. How is that even a question?
Sure, I would.
If he called me, I'd definitely pick up, out of sheer curiosity.
Anonymous
@AdmBorkBork Was it a restricted number?
Anonymous
If Geobits called me, I'd be afraid to pick up. He'd somehow manage to downvote me over the phone.
10
When you get downvoted over the phone, you get downvoted in real life.
18:18
> Be afraid.
AdmBorkBork got called by Geobits confirmed.
@Mego No, but a reverse search doesn't yield much info.
It wasn't these guys?
If Geobits called himself, Geobits would repeatedly downvote himself until there would be no more downvotes left in the world
There are always more downvotes. It's downvotes all the way down.
@Geobits Sure, could be. It was an Austin, TX area code, so that could make sense, too.
18:21
@AdmBorkBork That... might actually be important.
No, we don't contract with them. Never even heard of 'em.
Likely a cold call.
If it was important they'd change their name so it wasn't so demon-lord sounding.
@Geobits Monty Python beast from Holy Grail.
CMC: Name a language that has a keyword (no imports required) no other language has.
PowerShell
18:23
Name the keyword too
Just keywords are also builtin symbols?
dynamicparam
Or is that a keyword in MarioLANG?
Does it count if the keyword exists in another language, but for a different purpose?
Processing, PVector (I think). I doubt any other languages have the same builtin, due to the name (Processing + Vector → PVector)
18:24
@Geobits No. The string must be different
Anonymous
@HelkaHomba Python 3's nonlocal might count
@Pavel builtin symbols can count too (e.g. APL probably has lots)
@Mego ooh, maybe
Assuming different variants of SQL don't count as different languages, I doubt anything else has AUTO_INCREMENT
Anonymous
@HelkaHomba In that case, all of the box drawing symbols from Actually :P
dynamicparam is like param (which you've likely seen plenty of times on my answers), but you can somehow conditionally define them. I've never used it.
18:26
Is that like default parameters but fancier?
@HelkaHomba Dyalog APL,
It's used in comments
@HelkaHomba Mathematica, CellularAutomota
Anonymous
@KritixiLithos That looks like a toe
@HelkaHomba No, it's a way of adding additional parameters to a function definition at runtime.
As far as I know, only Java (and fake Javas like Groovy and J#) has strictfp.
18:28
What about Kotlin, is that also a "fake Java"?
How about "things that target the JVM"?
_Alignof, C. I think.
@betseg Not in C++?
@Geobits J# targets .NET
@Pavel Google'd, Wikipedia'd, only alignof in C++. I think.
@Pavel It's still a fake Java to my mind, but YMMV :P
Basically, everything here seems C-only or C/C++-only
@AdmBorkBork so many square brackets..
@HelkaHomba Yeah, there's a lot of syntax if you want to write a "good" reusable cmdlet, like something I would use in production. Code-golf here is like 99% of that stuff stripped away.
TIL there is such thing as "good" powershell.
I'm happy you're finally starting to see the light.
18:36
I'm happy you rotated your avatar to match mine. It's flattering.
Nothing to do with voting. It's indicative of the desire to golf down submissions.
Anonymous
@Geobits Remove-Item "C:\Program Files\WindowsPowerShell" -Force -Recurse
We all know it's a downvoting powershell :P
How do I test if two strings are equal in J? I have eq =: 4 : '* */((_*(#x)=#y){.x)=((_*(#x)=#y){.y)' but that seems a bit long.
18:39
@Mego Oh, you're going to get an access violation somewhere there. That'll be entertaining. I should spin up a VM at home just to try that.
geobits@geobits-laptop:~$ Remove-Item "C:\Program Files\WindowsPowerShell" -Force -Recurse
Remove-Item: command not found
geobits@geobits-laptop:~$
Was that supposed to do something? :P
Maybe you need to use one of the aliases for Remove-Item, like rm
I doubt it's gonna find my C drive either way :P
Anonymous
@Geobits Looks like you're in the clear!
phew
18:42
sudo rm /bin/sudo (warning: your whole system may become unusable)
CMC: what's your terminal prompt? (slightly inspired by Geobits' one ^^^^^^^)
I do like how PowerShell has six built-in aliases for Remove-Item -- del, erase, rd, ri, rm, rmdir
@KritixiLithos PS C:\Tools\Scripts>
Anonymous
@KritixiLithos mego@kratos
@KritixiLithos If it isn't clear in my snippet, that ~ is current path (in blue), while the user/etc is green.
@KritixiLithos something like "betseg > ~ >" but with cool power line font arrows and cool colors
18:45
Mine is kritixi@time:dir$ where time is the current time in HH:MM:SS and dir is the current directory
@Geobits Oh, that's a neat poll. What colors do people primarily use? I'm a bright-green-on-black sort of person. My admin shell is bright-red-on-black.
Current time as in the time that prompt opened or "current" current time?
@betseg I gave up on the powerline prompt because it required me to have RobotoMono, but I just hate RM's semi-colon
@betseg The former
@betseg sudo apt uninstall sudo
18:46
@KritixiLithos I'm boring and I haven't customized it, so it's just C:\Users\<first name>
@AdmBorkBork Just plain white on black :P But it used to be black on blue
Anonymous
@AdmBorkBork There are other options than classic green-on-black?
Mine is slightly transparent black background, bold green for user, bold blue path, and light grey for user input.
@KritixiLithos there are lots of PL fonts github.com/powerline/fonts
@Pavel aka sudocide
7
18:47
I like it transparent so i can layer instead of ugly ass tiling :P
@betseg Is there a PL font for Menlo?
Doorknob would be ashamed of you
yep
8
@KritixiLithos dunno that repo has meslo
Wow, that was fantastic timing
18:48
@betseg I've already looked at other ones, Roboto Mono was the best of them, but still no Menlo :(
@Doorknob Did you see my vim-riddle the other day? No one has solved it yet
You can recover sudo with pkexec
@betseg meslo seems similar to menlo... but nah, I'm not going to bother
@KritixiLithos why do you hate it + it's an open source font you can edit it
I like it, it's just the semi-colon that bugs me
18:50
Use a language that doesn't have them then.
use fira code
@Geobits Oh, that's a good point, the PowerShell ISE has lots of options for keyword highlighting. Below is an example.
@Doorknob Why does this have 5 stars
@DJMcMayhem Oh yeah, I was on mobile at the time. I'll give it a shot
18:51
@DJMcMayhem What is it?
2 days ago, by DJMcMayhem
@Doorknob @Riker @Downgoat @allothervimusers: Vim riddle: What sequence of normal mode commands can you call so that the dot command repeatedly '.' moves the cursor instead of changing the text in the buffer?
@AdmBorkBork I had mine detailed and intricate for lots of different stuff once. Once.
@Geobits Well, I mainly program in Processing/Java...
Too much hassle trying to remember/save it if it got borked.
@KritixiLithos See there's your problem right there :P
@Geobits Don't you use Java?
@KritixiLithos May I interest you in Kotlin?
18:52
I didn't say the Java part was a problem...
@Geobits Yeah. I go launch PowerShell ISE on some other machine (say, if I'm doing something locally on a server), and it's this ugly blue background with white text and just yuck.
There is no problem with Processing, it's basically just Java, but golfier and more amazing
"Java but golfier" is a sin though.
Processing == Noob Tube
@DJMcMayhem bah, cvl<C-r>" doesn't work because the register thing isn't reevaluated
18:55
@Pavel No, just no, that is so ಠ_ಠ
@DJMcMayhem Can you go into insert mode?
Yes
@Doorknob ooh, cool idea
Too bad it doesn't work
the trick is golfing java; not writing a language that does it for you
2
:P
@DJMcMayhem i, . will then move the cursor one to the right every time you use it.
Is there an <esc> in there somewhere?
But that's pretty much what I had in mind
@Pavel 2 bytes: o<esc>
18:58
That changes the text
Don't they both change the text?
You could do o<esc><del> though
That'll change at the bottom of the buffer though
This is still by far my favorite answer on the site, by the way. I can't count how many times I've watched the GIF. — carusocomputing 3 mins ago
:D That's the coolest comment I've ever gotten
Anonymous
@Sherlock9 Factorio 0.15 playtest available Tuesday
sometimes cool comments like these make up for the lack of upvotes on your post, it lets you know that other people appreciate your work
@DJMcMayhem Which answer? I want to see teh GIF
19:01
Click the time link
You can click on the link to go to the comment, which is on the post
ninja'd
If you click the 3 mins ago part it'll link you--- ninja'd
Ooh, didn't know that, ty
Gif is cool, yes.
@KritixiLithos That post isn't really suffering from a lack of upvotes. :P
@DJMcMayhem Interestingly, i<C-o>~<Left><C-o>~ (or replacing <Left> with <C-o>h) doesn't work and acts the same way as ~, for reasons I cannot discern
(But yeah, now I feel stupid for not having thought of i :P)
19:04
o_O weird
I think I know why though
Try ihello<C-o>~<esc>. the dot is mapped to ~, not it i hello...
2
Q: Ants on a Natural Log

carusocomputingThis is a good beginner challenge and a good time killer. I only said a -natural- log because the title was too short, this has nothing to do with logarithms. Given 2 variables: The number of ants n. The width of the log w. Output a log of width w with n ants (Example shown w=3, n=6) | ...

@DJMcMayhem wait, is del the "delete" key? It doesn't do anything for me
0
A: Sandbox for Proposed Challenges

Wheat WizardUnrestricted Languages One of my favorite types of challenges on this site are restricted-source challenges. These challenges impose a computer tractable restriction that the sources of potential answers must pass. I like these challenges so much I have been working on a golfing language desig...

0
A: Sandbox for Proposed Challenges

AJMansfieldPalindromic Floats This challenge is to find the closest floating point value to the input such that the output's binary representation is a palindrome. Input An IEEE 754 binary64 double-precision floating point number x. You can accept the input in any format you like, but there must be a wa...

@KritixiLithos oh. Huh, I wonder if that's cause of my config
19:20
it's probably either your terminal emulator or a difference between vim and neovim
1
Q: Tips for golfing in Charcoal

OkxCharcoal is a language created by ASCII-Only that specialises in ASCII art challenges. What tips do you have for golfing in Charcoal? Obviously I am looking for tips related specifically to Charcoal, not those which can be applied to most - if not all - languages.

@ASCII-only I believe I don't appreciate the language name. It's been already taken.
The right time to mention that might have been six months ago :P
19:37
@NewMainPosts Would it be appropriate to tag this with ?
Probably not, no.
19:56
Ow, my brain hurts.
But hey, I golfed 17 bytes, so that's what's important, right?
Anyone up for a cat hat gif?
user image
4
fluffy
I +1 your floof
clamp function for PowerShell.
@Riker is that you?
20:06
@AdmBorkBork What would that do?
clamp(x, min, max) means if x<min, return min, else if x>max, return max, else return x
i wish gifs in chat acted more like they do in discord
where they only animate on mouse hover
I wish TNB chat was discord
I can't use Discord at work
@AdmBorkBork hm that would be quite useful.
20:14
I also want a "{0:B}"-f$a functionality for binary numbers, like we have X for hexadecimal and whatnot. Instead of the ridiculously-lengthy [convert]::ToString($a,2).
I've actually gone into the PowerShell repository a couple times trying to track down how to do a PR to add that.
were prototypes removed in ES6?
@Geobits how did you become such a famous downvoter?
Currently programming this in Scratch
@DownChristopher By downvoting everything and everyone..?
20:28
@Pavel Yeah but I downvote (not much) but how did he become well known for it
Geobits downvotes a lot.
@TuxCopter It has no American flag so that is why it is bad
No it does
Look closely
@TuxCopter whyyyyy
rip my eyes
@Pavel where?
20:29
Hint: Horizontal alternating red/white lines, block in the top right corner
yesterday, by Thomas Ward
seriously don't abuse the flags
It's the flag of British America but with the maple leaf of Canada
And a lot more lines
Yeah
No AMERICAN FLAG FOUND. that is why it is bad
> It's the flag of British America
> Yeah
> No AMERICAN FLAG
???
Yeah at the last thing
How do I count Scratch bytes in this?
20:31
More lines
39
Q: How to count bytes FAQ

Nathan MerrillWe've got a lot of questions asking how to count the bytes in different situations. This question is here to put them all in one spot. General questions How to count "interactive" answers and flags How to count REPLs How to count multiple files How to count lambdas How to count whitespace How ...

Specifically, the ASCII output of Scratchblocks2
ugh
I would rather use the suggested count in the OP
Not how it works ;)
+15/-3 is pretty close to "consensus"
@KritixiLithos You might appreciate this: A V bug has saved me two bytes
20:41
s/bug/feature
@DownChristopher Hard work, and having an avatar that wasn't a memey knockoff :P
@Geobits Subtle hint
Nah, definitely a bug
Subtlety is my specialty. I'm surprised you noticed.
Nice to see you around by the way.
You kinda disappeared on us a while back
20:44
Yeah, that whole "life" thing butted in.
Or is this another "Geobits is back!" but then you go away for the next month again.
Only time will tell.
taada!
Wait
Tune in for the next exciting episode.
No it worked
20:45
Ok good
@Geobits _must... resist... urge... do... downgoat geobits avatar
Congratulations! I have no idea what that is because my phone is acting up, but I can tell what it isn't.
@Geobits Bad show, I rate 1/5
@Geobits My avatar? Another calvin and hobbes
Much better :D
Who was the @DownChristopher guy?
20:54
my avatar is a picture i took with a cellphone
those phone cameras are getting better and better
@Christopher Hey, welcome back! I like this avatar/name combo more
@DJMcMayhem :P Thanks
0
Q: Grow Some Flowers!

ChristopherSpring has recently arrived, and it is almost the time when flowers start to sprout. So I want you to help them grow. Your task: Given two numbers, m, and n, output m flowers randomly placed on an n*n grid. A single flower looks like this: & | A flower's position is defined by where its & i...

I discovered TNB around the time of the winter bash, I think I asked DjMcMayhem how he got that hat at one point.
You joined 2 months before me
Does anyone know if there's a way to determine OS with the C# preprocessor?
21:26
@flawr no proof I say
no proof
We need Downbits
why
5
21:38
@Riker no proof, but a lot of floof
lol
this is correct
22:08
satisfies me at least :P
Do you think these people are legit?
Bidding on a few Thinkpads from them
22:40
Wondering if smbc-comics.com/comic/puzzle-time (see alt-text) could be made into a PPCG question. Probably too boring as the smallest solution would just be printing them all. Maybe require that the output is aperiodic or diverges or...
Saying "you can't just do a lookup" seems lame
You can turn any n points into a function of degree n-1
True, though not sure if writing a 7th degree polynomial would be the most compact thing in most languages
@ConorO'Brien D: you have surpassed me :P
whoa I have??
I only have 19,034
22:48
pleb.
@NickT I only have ~2100
viva la proletariat
that went from roman to communist real quick lol
@JanDvorak Yeah, I knew about that before naming the language, but you can say the same about a lot of other languages too
I forgot the opposite of plebian...wasn't prole(tariat) but opposite of that is bourgeoise...
Patrician?
From "pater"/father?
22:54
yeah, patricians
afaik yes
ninja'd
it's not ninja'd fwiw--it's extra confirmation
TIL universal clipboard 10/10 most revolutionary thing apple has every made
what does that do?
23:01
e.g.: copy on mac -> paste on ipad
ok that's epic
synergy can copy-paste between mac/windows/linux
I really don;t like universal clipboard myself
23:17
does Apple get to read everything you copy/paste?
Probably not
hey does anyone want to read my sandboxed challenge and tell me if they think it's good? :3c
i spent a long time writing it to try to make sure it was good and clear
@undergroundmonorail Could you provide a link?
0
A: Sandbox for Proposed Challenges

undergroundmonorailD&D 5e HP Calculator code-golf I have trouble remembering everything I have to do when leveling up a D&D character. For whatever reason, one of the things that gives me trouble is figuring out what their new maximum HP value should be. For this challenge, you will write a program or function t...

i didn't want to link it if no one asked because i'd look needy :P
Seems clear. I don't think it is a duplicate.
I can find no fault
23:23
ty
there's a couple places that i want to touch up the wording, not for clarity reasons but just because it reads awkwardly because i used the same word twice in a sentence or whatever
Yeah I had to read one sentence twice
but if i get a couple more eyes on it and it still seems good i'll go ahead and post it
which?
but I can't remember which one
I don;t think there was anything wrong with the sentence
23:26
I'm glad I'm giving it this once-over because i did find somewhere i used the exact antonym of the word i wanted
@undergroundmonorail Is there a "floor" missing in the formula under When Levelling Up?
@trichoplax Every hit die has an even number of sides, so max_possible_roll / 2 will always be an integer.
Interesting. So "rounded up" doesn't mean what it does in other contexts?
Well
The average roll on a six-sided die is 3.5
Because you can't roll 0
But 6/2 + 1 is 4, which is 3.5 rounded up
Oh I see. I was being slow. It makes perfect sense now - thanks
I forgot that dice aren't zero indexed...
No that still wouldn't make a difference. Ignore me
d10s are actually often 0-indexed because people often use two of them as a d100, with one as the ones place and the other as the 10s place, and it would be weird to roll a 10 on either of those
so instead, if you roll 00 it just counts as 100
and if you roll 0 on a single d10 it counts as 10
but technically the numbers printed on the physical thing are zero through nine
In that case all looks clear to me (and I have no D&D knowledge)
cool
i'll probably leave it up in the sandbox for a while just in case but
i'm glad it seems pretty good to go
That's weird
SIMBAD claims that 2MASS J11143546-2112534 is a zeroth-magnitude star in the visible spectrum
And I've certainly never heard of that star
23:39
@undergroundmonorail Yes more perspectives sounds good (especially as I've just proved myself half asleep...)
I CAN NEVER REMEMBER HOW MANY WORDS IN DE JA VU
23:58
@NewSandboxedPosts It's "déjà vu"

« first day (2274 days earlier)      last day (2866 days later) »