« first day (2610 days earlier)      last day (2233 days later) » 
00:00 - 15:0015:00 - 00:00

12:02 AM
actually some earlier answers satisfy that when considering one liners... maybe every line has a number of a certain length or something
 
12:48 AM
Dear NPM: don’t call it a patch if it bricks your computer in the process
9
 
@Downgoat Did they do it again?
 
CMP: Should file-exists be on File class? or FS module?
@Riker Because they're blurry cats? :P
 
Would a Makefile be an appropriate place to install missing dependencies or is it more proper to complain at the user until they install the deps?
 
@Pavel Makefile
 
Ok
 
1:00 AM
I mean, a lot of Ruby things install it for you.
And that's Ruby
 
Well Ruby Gem is package manager
 
1
Q: Matrix trace for any matrix through... Bresenham’s line rasterisation

Andreï KostyrkaInspired by this. Agatha Stephendale, a sophomore who is really into raster graphics, has taken a course in linear algebra. Now she imagines matrices as rectangles, but in her artistic mind, she attaches diagonal lines to those rectangles and tries to compute traces along them. In fact, she want...

 
Installing deps is the point
 
@Pavel No as in they install it from inside the Ruby script
via shell command
 
Ah
 
1:00 AM
@Pavel Install dependencies how?
 
@Dennis nuget install NDesk.Options
 
:| you need a makefile for that?
 
It does other things
I just didn't want to use msbuild
 
@Pavel Does that modify the build or the home directory? Makefiles shouldn't make changes to the latter.
 
1:03 AM
@Dennis It modifies the directory you run it in.
Which should be fine
Caching packages in home is an msbuild thing
 
A Makefile still seems to be a weird place for this. I don't think I've ever had a Makefile that dealt with dependencies.
 
@Dennis Same here, which is why I asked.
 
Aside from simple compiler errors, I've only ever encountered ./configure telling me explicitly that it couldn't find X.
 
Oh hey, I can specify a packages.config so nuget restore will work without msbuild
 
2
Q: Eiffel Towers: Create a large "A" from "A"s

Sean BuddCreate a function which given a number of lines n, make as a bigA. The horizontal bar of bigA must be at the middle row, or the lower of the two if n is even Assume a monospace font for output Output should be a string with linebreaks to break up the lines, with correct whitespace for left-pa...

 
1:21 AM
I wonder if Autoconf can C#.
 
Is it a OK to implement events by spawning a pthread and polling and then calling the lambda
 
@Downgoat :|
 
@Dennis According to the docs, C, C++, Objective C, Fortran, Erlang, and Go, but not C#
 
:/
 
@ASCII-only how else to implement
 
1:31 AM
@Downgoat hmm what is poll for
 
I did a thing so you don't have to call mono and can run a script directly:
 
#!/usr/bin/env csi

#r "./project.exe"
Environment.Exit(Project.Program.Main(Args.ToArray()));
 
@Downgoat yeah but what do you need it for
 
(I haven't actually figured out a name yet)
 
1:32 AM
@ASCII-only Events
 
@Downgoat yeah but why do you need the return value
 
@DJMcMayhem Firefox doesn't use malloc, instead it has its own copy of a custom allocator called jemalloc which it tries really hard to use everywhere (caused a problem with the MSVC CRT at one point though)
@ASCII-only please fix
 
@Neil My dad works at Microsoft and even they don't use the MSVC malloc implementation.
 
@DJMcMayhem well don't expect it to be anywhere near efficient for all cases, different mallocs are optimized for different usecases
 
@Pavel heh
 
1:34 AM
@ASCII-only ??
 
@Neil >_> sorry will fix asap
 
@ASCII-only ta
 
@Neil might have forgotten something, just checking to make sure: you haven't found any other bugs, have you?
@Neil Should be fixed now
 
I've never implemented an event loop so this is new
 
@ASCII-only ta
 
1:37 AM
CMP: is Fractran a single argument OISC?
 
:| I really should have fixed this earlier I only had to add two characters
 
now to go back and update my recent answer
 
CMP: "A OISC" or "An OISC"?
 
@DestructibleLemon An
 
Anonymous
@DestructibleLemon An
 
1:38 AM
@ASCII-only can't remember anything else recently, last update had some cool stuff
 
@DestructibleLemon Of course. There is only one instruction, which takes a fraction as argument.
 
what if... i were to pronounce OISC like "whisk"
 
Then change the way you pronounce it.
6
 
@Dennis oh yeah i guess... i was more thinking in terms of one argument oisc i guess
 
Now do people say the letters individually or as one word
 
1:39 AM
edited CMP
to make it less of a stupid question
 
@ASCII-only uhhh how should we go about making an HTTP server library in VSL
 
@Neil wait. it did?
 
yeah, i think i mentioned the idea of having a place on meta to have things that are cool, but off topic on main?
i think that would be cool?
 
@Downgoat imo we should just link to another library for now
 
@ASCII-only but which library?
 
1:41 AM
hehe i can just use imaginary cookies to bring out all sorts of cleverness from TNB
 
@DestructibleLemon An
 
basically anything too subjective goes on to the question or whatever: for example, codegolf.meta.stackexchange.com/a/16047/55896 relies on a sort of subjective requirement
and the winner is mildly arbitrary
CMP: is having a place to put off-topic challenges and stuff that happen to actually be cool for the community a good idea
 
@ASCII-only well, it's cleverer at inserting separators for a start
 
ok so, if i ever make an OISC it's gonna be called "whisk" i guess
@Dennis yeah, i was more thinking about whether fractran's command has 1 argument or 2
 
@DestructibleLemon Still yes. FRACTRAN cannot distinguish between 1/2 and 15/30, so it's really 1 fraction, not two integers.
 
1:45 AM
@Dennis i think not distinguishing doesn't really make it true, but i guess i would mostly agree
 
@Downgoat idk. something that has a lot of features probably
 
@ASCII-only :|
 
@Neil I'm actually surprised that I managed to make that work haha
@Downgoat ? there's a lot of http libs out there
 
@ASCII-only pls link to one with stable ABI
 
2:03 AM
Does gcc do tail-call optimization with -O3?
 
@Pavel yes
at least clang does
and it would be very odd if GCC didn't
godbolt says yes
 
idk who that is, but cool
 
Starting with -O2, yes.
 
2:10 AM
Ah, ty
 
 
1 hour later…
3:18 AM
just found out apparently shebang/kade goes to UW o_O i literally live right next to that
 
@HyperNeutrino like UW is next door?
 
ok "right next to" is context dependent :p
as in it's within walking distance
so like "right" next to maybe isn't accurate
left next to?
 
@HyperNeutrino yes this is better
 
@Downgoat poll isn't much faster than select
Ideally you want epoll on Linux, kevent on OS X/BSD, and select on Windows
kevent > epoll > poll > select
I'm excluding Solaris because it's traumatized me
also don't do callbacks
it's 2018, if you don't provide coroutines then you are no longer a Cool Kid
 
3:36 AM
@quartata we're going to abstract to a concurrent priority-based model which should abstract threads so it should also be applicable in a web-based environment so the current way is that you can either dispatch a method in another thread and join that later
@quartata :| does this mean I need seperate STL for each OS
we're not doing kotlin-style blocking async stuff since that seems to void the point
@quartata there is no benefit to using select over poll
 
do we even have a square a number challenge?
 
@DestructibleLemon please lets not make trivial challenges for basic tasks
 
ok but i would have expected it to exist i guess
 
3:51 AM
@Downgoat the only places where poll is going to be available and not anything better is really old Unixs, so why bother
 
@Downgoat it's not trivial in every language
that's like saying the prime number challenge is bad because any self respecting golf lang has a prime builtin
 
@DestructibleLemon are you comparing multiplication to primality testing
I mean even adding numbers isn't trivial in some languages
 
select is the one thing you're guaranteed to have, but it's not very good
 
that doesn't mean we should have an "add 1 to input" and "subtract 10 from input" and "divide first input by second input" challenges
 
it might be trivial to square in a lot of languages, but primality testing is also trivial in a lot of languages
 
3:53 AM
You definitely want to use conditional compilation to get better stuff like epoll
 
@Downgoat you accuse me of false equivalency and then post this
also the second one is actually decent when considering lower level languages
 
@DestructibleLemon That's not an effective justification since we've agreed at this point that catalogues were not good idea
 
you know @Downgoat Julia just uses libuv to do all this right
 
also i'm still kind of annoyed that people say or said allowing 0 byte answers is ok because people won't upvote them, then seeing upvoted 0 byte answers
 
3:55 AM
you don't have to do it yourself if you don't want to
I suppose I should also mention Node huh... :P
love how the first language I think of that uses it is Julia and not the language it was literally made for
 
@quartata that's probably the best idea but I don't want to pile too many dependencies on VSL
that said libuv is relatively fundamental
that's probably the best choice brb checking api
 
It's awful but
you're probably not going to get much better in C I suspect
 
@quartata libuv is awful? why is that the case
 
No I mean the API
libuv is good because it's fast, that's why I appreciate it
but it's C so not everything will be very nice
 
at least the documentatino is better than LLVM
 
3:59 AM
oh yeah definitely
 
310
Q: Regex that only matches itself

Dylan MadisettiThere are some pretty cool challenges out there involving regex (Self-matching regex, Regex validating regex) This may well be impossible, but is there a regex that will ONLY match itself? NOTE, delimiters must be included: for example /thing/ must match /thing/ and not thing. The only match p...

 
The GCC manual blows LLVM out of the water
 
LLDB is the best thing ever though
it JITs lli files though differently then executing a LLVM-compiled file
 
it came by default on OS X and I haven't bothered to install gdb (only have gcc and gfortran) so it bugs the shit out of me everytime I have to use it and I'm expecting gdb
 
@quartata do you know if libuv will mess with non-libuv things trying to open TCP connection
 
4:05 AM
well you'll block the event loop
 
:| libuv runs on main thread?
I was planning to have Main Thread -> Event Thread -> Event Handler Thread
 
I mean you can run it on whatever thread you like
but if you then also have blocking I/O in your handlers it will block execution of course
 
If handlers are put in a seperate thread from main execution they won't block it
 
I mean you could do that
or you can just offer something like a ThreadPoolExecutor or EM.defer
Let the user control dispatch
this gets tougher when you get into hybrid threading
there I could see it being useful to have a pool of handling threads for all handlers, although it's kinda weird to have a function run on one thread and its callback potentially on another
hm
Really though regular blocking I/O and async don't mix, they're not supposed to. So don't worry about that so much
That shouldn't be the reason for having a separate thread
I wonder what NIO does, I should go check. Java STDLIB source code is actually super easy to read
Ironic
 
4:32 AM
@PhiNotPi It's been too long since you spoken in Primes and Squares, so I can't ping you (pouting goes here). I've got a graph theory question you might be interested in
 
is there a TC version of redcode from corewar?
 
If Linux binaries are called ELF files does anyone know what Windows binaries are called?
 
PE
 
Thanks
 
It stands for Portable Executable. har har.
 
4:42 AM
I'm not sure what they could be refering to
They aren't very portable
 
@quartata why are you in so many rooms?
 
I think it's referring to architecture but
@DestructibleLemon why are you in so few rooms
 
> Arcturus
so many of these rooms are so dead
 
yeah yeah I don't prune my favorites list
 
4:47 AM
I haven't even seen Eridan in forever
 
I'm still active in about a quarter of those
 
I try to minimize the amount of rooms I'm in
 
I have no idea how you guys don't prune your room list
I've got exactly two rooms on my favorite list, and TNB isn't even one of them
I hate having a long list of rooms on the sidebar
 
TNB is actually not on my favorites list
@NathanMerrill it doesn't show all of them
at any rate I do have a legitimate need to be in at least 5 particular rooms
Although not all on this network
 
I'm always in talkt.tio, frequently in tnb, occasionally in PPCG-gaming, and in the Apl Orchard every wednesday for Adam's lessons.
 
5:47 AM
I have a question about lazy variables and how they should work in VSL. So you declare a lazy variable like:
  lazy let x: String = "Hello"
but you can also do:
func getBestAnimalName() -> String {
    print("this is obvious")
    return "Goat"
}

lazy let x = getBestAnimalName()
so in the latter case
if you do x = "foo"
assuming x has not been accessed before yet
should this is obvious still be printed when the assignment happens?
 
6:06 AM
hmm anyone here good with perl?
 
 
2 hours later…
7:41 AM
0
Q: Should I accept an answer to a question I cannot validate?

Dom HastingsBased on information in this post I feel I should try and validate all answers to my challenges. That hasn't proved too hard so far which is good, but Dennis's answer here technically wins the criteria of the challenge, but I cannot actually validate it. The information in this post doesn't rea...

 
8:39 AM
0
Q: Shape Identifying Program

Dom HastingsYour task is to build a program that identifies the shape of the input. The shapes to be identified can be any of the following: Square To be identified as a square, the source must have lines of all equal length, and the same number of lines as characters per line (newline characters excluded)...

 
@Downgoat No. Assigning to x shouldn't require evaluating the previous value of x, so the function should never be called.
 
 
1 hour later…
10:07 AM
0
Q: Compile Quarterstaff to BF

Destructible LemonQuarterstaff repo here with additional quarterbf interpreter: rather bereft of documentation, however, but it does contain the two interpreters you can go to https://tio.run/#quarterstaff to run quarterstaff programs online. however, the TIO BF implementation seems to have limited cells, accordi...

 
10:47 AM
If an USB is intended to be bootable, can it:
* have more than 1 partition?
* have the boot partition not the first one?
 
10:58 AM
CMC: square an integer
:P
 
@totallyhuman Why......
J, 2 bytes: *: (correct?)
 
haskell: (*)<*>id
f x=x*x
 
11:14 AM
@totallyhuman Dyalog APL, 2 bytes: ×⍨
@user202729 Yes, but also *~.
 
7
A: Replace twos with threes

0																												'Brain-Flak, 76 bytes {{({}[()]<([({})]()<({}{})>)>)}{}([{}]()){{}((({})){}{})<>}<>}<>({}({}){}()) Try it online! Explanation This program works by dividing the number by two and tripling until it gets a remainder of one from the division. Then it stops looping and doubles and adds one to the...

 
....... I figured out that repeatedly creating and deleting an account can give you high rep increase notification. (assume you have association bonus)
I wonder if repeatedly doing that 4294968 times overflow anything.
 
@user202729 Tha's a lot of times. How fast can you do one generation?
 
11:48 AM
[Jelly] Is there a way to shorten >³L¤$?
 
@user202729 is the environment monadic?
@totallyhuman brainfuck, 34 bytes: +<,[->[->+>+<<]>>++[-<<+>>]<<<]>>. (the input is a tab)
 
@user202729 ³L<Ɗ
 
@EriktheOutgolfer LNC...
 
what is LNC, "Leading Nilad Chain"?
 
@EriktheOutgolfer Yes...
the suggestion "any unpaired dyad" has not been implemented, unfortunately.
 
11:59 AM
and why would that be an issue? (it's called "Leading Constant Chain" btw)
 
Renamed, sort of.
@EriktheOutgolfer It's subtracted, you know, right?
 
I don't think so anymore
my suggestion to do that was kinda flawed
 
kinda @flawr
 
(deleted)
@EriktheOutgolfer Actually it's correct (except that if you want a nilad link with more than 1 nilad inside you need to have that many ¤)
Sorry, wrong TIO.
@EriktheOutgolfer Try it online! and Try it online!
 
12:03 PM
hm, that doesn't look like intended behavior
 
@LeakyNun I want a single link. (for example to feed ?)
@EriktheOutgolfer See? Any unpaired dyad is good suggestion.
 
I think I suggested that recently
in Jelly, Mar 6 at 18:55, by Erik the Outgolfer
I think it's really just checking whether there are any dyads that are not part of nilad-dyad or dyad-nilad pairs
 
(yes I was just looking for that)
 
12:25 PM
Anyone know how can I (try to) access Safe mode of Windows 10, if every time I boot it gets a "page fault on nonpaged area" error? (assume I have a bootable USB)
(the bootable USB is not a Windows installer/recovery drive/etc., unfortunately)
 
Anonymous
@user202729 Boot from the recovery drive
 
Anonymous
Win10 automatically makes a partition for recovery/safe mode
 
@user202729 yeah, using F8 isn't that easy
 
@Mego ... how can I do it? (yes, I can find a small hidden partition that looks like the recovery drive, but I can only choose the drive and not the partition to boot from)
And I don't have a recovery drive, probably only a partition.
 
Anonymous
@EriktheOutgolfer The problem is (I assume) they can't even get to the part where Windows loads to hit F8
 
Anonymous
12:32 PM
@user202729 Mash whatever key opens the boot menu while your BIOS is loading
 
Boot menu = F12, but it's something like this

1. CD
2. HDD

No partition choice.
 
@Mego like, before the Windows logo even appears? hm
 
After the Windows logo appear.
But... holding F8 or Shift+F8 often just make the computer beeps.
 
Anonymous
@user202729 Go into bios settings and make sure legacy boot is enabled?
 
Anonymous
Also there's a way to do it from grub but I've long since forgotten how
 
12:34 PM
that's assuming they have grub
 
Anonymous
@EriktheOutgolfer If they have Ubuntu, they almost certainly have grub
 
The computer I'm talking about doesn't have any OS installed except Windows.
@Mego Will try...
 
12:58 PM
@user202729 asus.com/uk/support/FAQ/1013074 might help, depending on how quickly it blue screens, if you can power it down three times first it might trigger safe mode options
 
1:17 PM
@Neil I've read it already and... doesn't help. ...
 
:| that was scary, my gravatar showed up to the left of the chatbox for a second there
@user202729 yeah there should be a key to boot recovery mode
 
yeah me too
 
@ASCII-only It still does? I'm also seeing a different name here and on your profile page.
 
You were listed as "somebody" for a while when you first typed, too. Your avatar was different as well, it was like a confetti box.
 
for me it did for ~5 seconds and then it went back to normal
 
1:23 PM
@Dennis Why does that message show "ASCII-only" for me?
 
... somebody --> ASCII-only now.
 
I had to refresh the page.
 
that was weird
 
1:24 PM
btw that's his Puzzling profile, maybe you changed your parent site for a moment?
 
@EriktheOutgolfer no >_> i just entered chat
probably haven't even seen my own profile in months
 
you mean Puzzling?
> Last seen 5 hours ago
 
@ASCII-only I'm still reading "windows 10 boot from recovery partition" without help...
 
@EriktheOutgolfer i meant i haven't gone to my (chat) profile page in ages
you know you're a terrible programmer if you need to make sure adding two characters doesn't break anything
i was doing this earlier today
 
it depends on what language
 
1:28 PM
@ASCII-only In which language? Cauliflower probably?
 
Python
 
(I don't even know what flower is that...)
 
it's a broccoli/cabbage/brussels sprout flower
 
... In Python characters are just strings. So add == concatenate.
 
well, if you use Python and add Øİ randomly then yes, you'll break something
I don't think he meant concatenating to a string, but adding two chars to the source code
 
1:29 PM
@EriktheOutgolfer yeah probably. because it doesn't have the best unicode support. i was adding a [ and ] though
 
:D I rep capped for the first time yesterday
 
@ASCII-only IMO adding 2 characters to a working piece of code will break it more likely than adding 20 characters :p
 
@EriktheOutgolfer What is that......
 
yeah let's say that, in a perfectly working Python code, you append hu
 
(Jelly atom?)
 
1:32 PM
that's just two random chars
 
1:44 PM
Jelly in a nutshell
@user202729 I'm confused. How is my comment on meta related to the Starry Night challenge?
 
@Dennis You said that "the accepted answer is the one that wins the challenge", that is, has the most optimal score.
 
Yes. In a code golf competition, that's the answer with the least amount of bytes.
 
@Dennis but Ø doesn't mean anything (on its own), does it?
 
It's not a recognized token atm.
 
@EriktheOutgolfer At least, both characters are in the Jelly SBCS.
 
1:48 PM
both characters are also easily type-able with a compose key
@Dennis if it gets to be one I'm gonna need more spaces than before...
 
implements the Ø<space> atom
 
no, not that!
I mean, if I have to use Ø and then , I will use ØṖ...right? :P
please don't do that thing J does IIRC
 
"that thing J does"... what?
Which partition (on a disk drive) will be chosen to boot?
 
I think there's something called :<space> in J
 
: is postfix.
reading J vocab
Can't find anything like that.
 
1:52 PM
basically people are assumed to use proper spacing there (?) and so it turns out similar to expr1 : expr2, but the first space isn't for clarity but part of <space>:
 
(let me try it, I never tried to declare an explicit verb)
 
yeah I think so
 
I don't think the space is part of the operator though. : is usually postfix, so it tries to bind to 4.
 
Anyway. Whether it's just special syntax or bind to space is not important.
 
1:56 PM
Just a hunch. I only tried once to read J's source code.
 
yay you survived that medieval torture
 
6 mins ago, by user202729
Which partition (on a disk drive) will be chosen to boot?
 
2:10 PM
Using MBR style boot loading? Whichever partition has the active flag set.
 
I also tried to turn off boot flag for Windows partition and turn on boot flag for a (weird) partition, but then "No OS found". ...
 
If that partition doesn't have a boot loader in the expected location, then it won't boot, even if there's an OS there.
In general, though, the whole BIOS/MBR boot process is such a hackney jury-rigged thing that it's amazing it works at all.
 
0
Q: Codility Puzzle - Assembly Line Manager in a shoe factory

firephilEllen is a new Assembly Line Manager in a shoe factory. So far, everything has been going very smoothly for her and N shoes of the same model and size have been produced. Exactly half of them have left shoes and the other half are right shoes. The freshly sewn shoes are standing in a line, in ...

 
@NewMainPosts ... no winning criteria tags? I promise I won't comment anything on it.
And, we have a policy about not editing off-topic questions to be on-topic (although we can ask separately) unless the OP does that themselves.
Thoughts: If N <= 100000 anyway, any algorithm that halts is O(1).
@AdmBorkBork You know that if the challenge is closed it would display the message anyway right?
(not to say that leaving a comment is not helpful)
 
Right, but leaving a comment will cause a notice in their Inbox faster than closing the question would.
 
2:22 PM
Actually closing won't notify at all...
Do we have any dupe?
(that is basically "Given an array of 1 and -1. Count number of zero prefix sum.")
»\ċ0?
@Poke That's too easy for a fastest-code.
 
just making a suggestion
 
@Poke Also, big-O and fastest-code are... mostly unrelated.
 
what?
big-o is a measure of time complexity
 
fastest-code != fastest-algorithm.
 
how is that unrelated
no but it's certainly related
 
2:29 PM
Asymptotic complexity means nothing for individual test cases.
 
> all solutions [...] win, [...]
 
In practice, everything's O(1) anyway.
8
 
"no one wins"...?
 
@Dennis if you're going to think about the general case, then sure, but it's still related
i was offering the guy a suggestion because of a related idea to something he mentioned
 
@Poke "he"...?
 
2:32 PM
yeah
 
How many pages in our help center are customized?
 
0
A: Sandbox for Proposed Challenges

Octarine YoshiTime left before week-end Your task is to write the shortest program that displays the amount of days, hours, minutes, seconds before the next Friday at 18:00:00 (6 p.m.) and loop every 1 seconds to display the new time left. It took me 1300+ characters to get it in C#. I am curious how low it ...

 
... Ok, my /sdb2 partition looks something like that:
/Recovery
-- /Logs
---- Reload.xml
-- /WindowsRE
---- Winre.win
---- boot.sdi
<something else...>
Is that expected?
Also, what makes a partition bootable?
 
00:00 - 15:0015:00 - 00:00

« first day (2610 days earlier)      last day (2233 days later) »