« first day (2153 days earlier)      last day (2707 days later) » 

3:00 AM
>>> ctypes.cast(id(2), ctypes.POINTER(ctypes.c_int))[6] = 3
>>> 3
3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: raw write() returned invalid length 3 (should have been between 0 and 2)
3
>>> 2
3
3
 
Did you make changes?
 
i7 2.6 GHz is pretty meaningless by itself. What generation?
 
@Dennis baby boomers
 
(btw you're not calculating 1000 primes you're calculating primes up to 1000)
@Dennis Mine is Haswell
 
@quartata Oh
thats overhead
compile from source
@quartata wait what
 
3:02 AM
@Downgoat I did it across 10 iterations and subtracted startup
 
how setting 2 to 3 doesn't instantaneously cause a segmentation fault amazes me
Wait, wat:
>>> a = 3 + 2
6
>>> a
6
6
>>> a
6
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: raw write() returned invalid length 3 (should have been between 0 and 2)
6
???
>>> 2
6
3
>>> 6
3
6
 
@Dennis I mean it's cool but I'm Not sure at why they thought it wouldne useful enough to implement
 
@noɥʇʎPʎzɐɹC Could you please disconnect your terminal from TNB?
5
 
@Dennis haha made me chuckle. Though isn't the ability weird by the nature of the action?
 
3:05 AM
@Downgoat yeah so only 168 primes :p
 
CMC: deltas of a list
 
I tried importing the math module... first normal import; now a from math import * does a segmentation fault
 
What version of Node? Maybe that's the difference
@Downgoat
 
@quartata 7
 
5 here
 
3:07 AM
@Downgoat ctypes is supposed to be used for access to shared libraries. You can do some shenanigans with that, but it's mostly useful stuff.
 
@quartata shouldnt make a difference :/
 
Now, a language where a truthy object can be equal to false, that is weird.
 
@Dennis wait, what?
 
@Downgoat Something's off then. Are you using exactly that code
 
Yes
you gotta built from source tho
 
3:09 AM
yesterday, by Dennis
> "\t\r\n \v\f" == false
< true
> if ("\t\r\n \v\f") console.log("truthy")
  truthy
 
I used NPM. what's wrong with that
 
@Dennis edge cases are weird
 
Basically with npm. I can only distribute one version for all node versions. That means I have to compile features that like node v5 has, which adds a LOT of overhead
 
Even at the mention of ctypes - say just a function definition or a ctypes statement with a at the front segmentation faults
 
I've written various plugins to mitiage this but it's still pretty bad
 
3:11 AM
I don't understand? Surely some polyfilled functions wouldn't mean something that bad
 
@Downgoat One more reason not to use JS. Seriously, you will be much happier once you accept that.
 
And why does buildin from source affect that
 
hooray I won a chess
 
@quartata I mean like polyfilled classes. A loop like in prime generator will probably create 50 or so classes. Each has runtime checks and all adding huge overheads
 
@Dennis sorry if this is not my place to say this but there are two types of equality--strict and approximate. == is approximate equality. There is method to the madness. You may not be doing this intentionally but you are comiting a strawman fallacy. By saying == is the equality operator, sure, JS sounds like a bunch of BS.
 
3:13 AM
@Downgoat But how does building from source change anything?
 
@Dennis This is BS. Everyone who has an ounce of JS knowledge knows you're supposed to use === and == is merely there for compatibility
@quartata lets u only compile things that need to br compiled
which is nothing in Node 7
 
OK so there is a difference between 5 and 7
Anyways considering the vast majority of people will be using NPM that sounds problematic
I don't understand why you can't just check version at runtime ir even why that would cause such a difference but
 
Before you brush this off as JS hate, know that Perl isn't any better. And I love Perl.
 
I subclassed int and gave it custom attributes and then used the ctypes hack... now I get a bus error
 
== as implemented shouldn't exist, period. It means something else in >90% of other languages, and its only potential use case is to introduce bugs.
 
3:18 AM
@Dennis why is this the message I see when I come back
 
@Dennis It's when you get a committee to make a lang
 
nonono don't get me wrong. I don't care that you hate JS. No one can love every language, especially JS. What I do care about is misrepresenting an already very misunderstood language. If you look at a language in relation to other languages, you're bound to go wrong somewhere.
 
^
stop using strawman logical fallacy
 
takes off coat
 
@Downgoat I doubt he's intentionally using it. it's quite an easy and tempting fallacy to comit
 
3:20 AM
We go live to the 2016 Presidential JS Debate...
 
That isn't really what a straw man is.
 
Straw man implies equating a person's viewpoint to that of a whole group's
 
though perhaps it's better to say it's "cherry-picking" data
 
Who's argument exactly am I misrepresenting?
 
3:22 AM
Furthermore I'd argue that == is still representative of JS's intent (weak typing) even if it's more extreme or broken
 
@quartata And yet, if it is discouraged, can it really the current intent?
 
Strongly dynamically and now statically typed python: mypy (will be merged with CPython eventually)
 
@Dennis Perhaps not an argument, and in that respect I'm wrong.
 
Sure. Plenty of operators coerce.
Even if just a little bit.
 
and it is the degree of coercion and the importance of the operators that make it more or less "bad"
 
3:24 AM
== is supposed to be well defined over any type which is why the behavior is more apparent
 
Wow, Comcast is actually exploiting HTTP connections to insert banners and enforce their policies upon you
 
I wonder... is it possible to have a perfect programming language?
 
@ConorO'Brien depends on your definition of "perfect"
 
Yes it's called assembly
 
@redstarcoder this is very, very true
 
3:28 AM
@ConorO'Brien yes
 
It can do all things
 
@quartata right but any TC language can do all things (for the most part)
 
Like Comcast actually reduces your internet speed and infiltrates websites with dialogs through http
 
@quartata quantum computing?
 
*all things possible with a classical deterministic computer
 
3:30 AM
:p
 
Has anyone here been through the dark trenches of the dark web?
 
@noɥʇʎPʎzɐɹC That article is from 2013. They couldn't do this since net neutrality afaik.
 
3:41 AM
I really like cheese
@Dennis can you update cheddar on TIO? :3
 
@Downgoat don't go on crusade just yet
 
TIO update = crusade?
 
referring to the first of the two messages lol
but maybe!
 
O_o
 
Dennis the Crusader
 
3:45 AM
11/10 beautiful
 
...
@Downgoat Done and done.
 
:D thanks
 
3:57 AM
2
A: McCarthy's LISP

orlpPython 3, 776 bytes This is a REPL on stdin/stdout. Expects every line to be a full statement or empty. eval is used to shorten the implementation, but is otherwise not necessary for logic. import re,sys;S=re.sub P=lambda l:eval(S("NIL","()",S("([A-Z0-9][A-Z0-9 ]*)",r"' '.join('\1'.strip().spli...

tfw you have an appointment at 11 but stay up til 5 am to write a lisp interpreter
 
codegolf.stackexchange.com/posts/79891/revisions <-- makes me wonder if we should opt out of Winterbash next year.
 
(We probably should)
 
@Dennis why?
 
(People like me doing basically negligible things for hats)
 
^
 
4:00 AM
ah
 
@orlp hopefully you don't have (and that you still have) a lisp in the morning
@Dennis IMO the problem is the people, not the action
 
Apparently we aren't responsible enough for hats.
 
say isn't there an SEDE for overall age on this site?
 
(And yet we still haven't found the trigger for the TacoHat)
 
actually we have but
 
4:02 AM
its secret
 
Well, if anyone knows, they haven't released it on the Docs.
 
@ConorO'Brien Well, there's no guarantee that the ages people claim to be are their real ages, and the fact that the age field is optional subjects it to all sorts of bias as well.
 
Also, age does not imply maturity.
 
@Doorknob oh definitely true. And there's no guarantee that age implies--ninja'd
though it does tend to correlate quite well
 
For example, I'm an immature git.
 
4:03 AM
You could say it could imply maturity, but not necesarily determine it
 
@ConorO'Brien Well, sure. Edits "just" clutter the front page, but close/reopen votes are another story.
 
(That particular edit was part of a reopen vote)
 
@Dennis should I not have voted to re-open that? I did edit a test-case too, which seemed to be incorrect. The issues in the comments seem to be addressed though.
 
@Dennis true. I don't know if you saw my explanation, but I opened that question because I was lacking knowledge concerning what makes a good fastest-code question and lacking incentive to find out what that consisted of. I do apologize for that again.
 
@redstarcoder No, I meant in general, not on this particular question.
 
4:06 AM
Ah yeah, I agree
 
@ConorO'Brien Hey, honest mistakes happen. We just seem to get a few more of them than usual.
All that begging for upvotes in the hat chat room is also seriously wrong.
 
I see
Idk, I think hats this year are a bit more centered around manipulating the system than last year
 
Hats have always been like this. You're just growing up. Maybe :P
 
oh
that's probably right
 
@Dennis All you really need to do for upvotes is post cheddar answer. :P
 
4:10 AM
"Now that I'm grown up I can make stupid decisions with my life!"
3
 
Exactly the same story last year. It was even worse, since you could get hats for commenting on a CM's posts. Poor inbox...
Hairboat's Revenge iirc.
 
that's so stupid, that hat
 
Dammit PPCGers, you went and made me get another hat.
 
It's like that one game that had the achievement for killing your team. It just sabotages your own good content
 
I don't want to be an asshole but I really want that hat
 
4:13 AM
I want to be an asshole and the hat okays it
6
 
It's easier if I blame the hat. That way I'm still a good person!
 
@ATaco :O how did you get secret hat
 
If you're legitimately talking about the SUN it's the Southern Hemisphere version of the Moon hat.
 
Though I can't say much really. My top Meta answer and second top question are both about hats. From 2013, but still hats >_>
 
4:16 AM
I wonder what would happen to the global cat population if you could get a hat for shooting a kitten
 
Is it thematically similar to my account..?
 
@ATaco Um, no, I also got the moon hat. I think it's related to time zones.
 
@orlp You can:
 
I got the sun hat
northern hemisphere
east coast time zone
 
I think it's Supposed to be based on whether or not it's the winter or summer solstice.
 
4:17 AM
Well, there goes my time zone theory.
 
maybe it is to chat like after midnight in your timezone?
 
maybe it's some complicated geohasing thing
 
maybe it's random chance.
Regardless, this is not the chat for discussing hat causes.
 
sure it is, if everyone's fine with doign that
 
> Actively participate in a community during the winter solstice. For the purposes of this hat the winter solstice begins when the first time zone has locally started Dec 21st and then continues until all timezones have locally ended Dec 21st (10:00 UTC Dec 20 ⇒ 11:59:59 UTC Dec 22).
What does actively participate mean ._.
 
4:20 AM
Most things.
 
Not chat :P
 
Vote, Submit an answer, an edit, a review. Just not chat.
 
:(
Does this mean I actually have to be helpful goat of community
 
:O amazing discovery, sherlock /s
 
does anyone want to help me with my koth I'm making?
 
4:22 AM
Pls, stahp edit + vote to reopen question just for hat ಠ_ಠ
 
I did that and I am a monster.
 
2 days ago, by Dennis
The next person who abuses his privileges to get hats will get a suspension instead, until the day after Winter Bash.
but seriously, please don't do things that could be detrimental to site health for hat.
 
Where should I ask for advice on improving an answer? In particular this one because it's my favourite.
Or somewhere with advice on how to explain 2D languages like ><> in general.
 
here works
just ping someone who knows about the subject matter
I have made a couple of 2D langs, Sp3000 is particularly well-versed in ><>
 
I made a 2DFuck
 
4:28 AM
you could also ask in the esolang room but you'll probably get more responses here
 
@ConorO'Brien Thanks! Oh okay perfect, how do you think that answer could be improved? In particular, I think it's very wordy, and difficult to follow, but I'm not sure ...
I've been trying to find a format that's nice to follow for ><> and *><> (which is the same format more-or less...)
 
Honestly I think the best thing you can do is identify different sections of the program then explain how each relates to each other and more importantly what each does
 
Split it into key 'pieces', describe how each piece works.
 
@ConorO'Brien @ATaco Okay thanks! That's what I tried to do, was that ineffective? What I did was label each section in the Explanation code, then separate each into it's own header and explanation box.
 
I think you did it pretty well
 
4:33 AM
Okay thanks :)
 
@ASCII-only btw, whenever you get on break or something, can continue develop VSL? Cheddar is very slow so I think it's time for another language that works better.
 
Hey, I'm looking at this fiddle:
 
A few of my older answers are more rough or not explained at all, so I'll try to stick to this format
 
yeah! If you ever need more examples just search reticular on the site--I usually do a good job explaining them
 
How does the initAutocomplete() get called?
 
4:34 AM
@ConorO'Brien thanks I will!
 
@noɥʇʎPʎzɐɹC dem techs
 
bah, that link doesn't work
 
Code bowling idea: Works with same behavior with most characters removed
Should work for all edge cases
 
I think Code-bowling can't exist.
By nature, there will always be a way to artificially inflate your code.
 
Yes but that can pretty mean always be solved with removed most characters as possible
 
4:40 AM
By which method does one 'remove most characters'? I still feel like I could inflate a code infinitely with arbitrary character removals of any size not giving the same effect.
 
meaning. If I add ///////////// or .valueOf().valueOf() to my code in JS. those are redudnant charcaters and will be removed by "most characters removed as possible"
 
so, writing programs which are intrinsically bloated
 
yes
that is like point
so Math.sqrt(Math.pow(n)) Would also be invalid since you can remove those and just have n
see it covers all edge cases!
 
right
 
class A{static void a(){ stuff }}class B{static void b(){A.a();}}...class Z{static void z(){Y.y();}}class Main{public static void main(String[]a){Z.z();}
 
4:44 AM
hm :/
ok, I see, this code-bowling is impossible to define all edge cases
 
maybe just do it with friends who want to bowl
 
Hello
 
I have a new hat hooray
 
my head is pounding but hi
 
4:46 AM
@ATaco I think code bowling is only suitable to do cops and robbers
Or have a case where if you can remove at least 20% of the characters and rearrange the code to get a possible answer, then it doesn't count
 
echo gzinflate(base64_decode("DcoxDkBAEAXQ3imoNBJnQEMlQbL14rOTjJ1kDAmnp36vLKv4VDqTqdd‌​nNKW4t1A4Yu7ixt4wBYz0ot"));
Prints, "Hello, World"!
 
In what lang
 
@Qwerp-Derp :D same
 
PHP.
Remove some characters to do the same thing.
Go ahead.
(That's supposed to be eval(, not echo... Silly me...)
 
That's a valid answer then
 
4:49 AM
I can make that arbitrarily longer, without it being possible to remove characters to achieve the same output.
 
But then you can repeat that can't you?
True
Wait is base64 always longer than the text input?
 
Yeah, but it's repeatable.
 
even if it isn't, you're adding the two method calls every time to the length of the program
 
gzdeflate makes it smaller, but with enough random text, it solves the issue.
echo gzinflate(base64_decode("VYuxCoNAEAX7fIWpbAJ+wxkCBgQhCtZnfN4d2ezCuhEuX59rU0w1M03‌​jODtdkqnXPJomDh0UcyK680beMEWM6Ythm2Lar7IWZ1E+1qK0D7zl8AthiK3k2wHuhQO0F3k5+1sLHE54‌​RqnqDkRyqWZRWs/1Dw=="));
 
it'd essentially boil down to finding the right characters in your encoded string that can do the task :)
 
4:51 AM
If you remove any characters from that string, it completely changes the outputted text.
 
right, but you make a golfed version of the program, and then find those characters in the string
and remove everything else
 
Let me clarify, gzinflate and gzdeflate give almost entirely different outputs for the similar inputs.
I'm corrected, that is not the case
 
My point is that if you inflate it enough times, I'll be able to find e,c,h,o,",H... in your inflated string so I can just remove all of that cruft :)
 
Yeah, as soon as the base-64 string contains eJzzSM3JyddRCM8vyklRBAAfngRq in that order, you're set.
(Technically zlib, not zgip. But still.)
 
and so, there'll always be a limit on how much you can bowl something, but its not really fun
 
4:58 AM
@NathanMerrill But base64 might not have those characters
Wait what characters does base64 contain
0-9, A-Z, a-z and two more right?
 
actually..that's an interesting math problem. Given a set of characters C, and set of strings S, find the maximal length string N of characters C such that none of the strings in S can be found in N (with deletions)
 
I did some tests regarding base64_encode(gzdeflate
"Test 1": C0ktLlEwBAA=
"Test 2": C0ktLlEwAgA=
"Test 3": C0ktLlFQMAYA
"(Single Space)Test 1": UwhJLS5RMAQA
"(Two Spaces)Test 1": U1AISS0uUTAEAA==
"(Three Spaces)Test 1": U1BQCEktLlEwBAA=
"(Four Spaces)Test 1": U1BQUAhJLS5RMAQA
Seems to suggest that arbitrary noise does make the output string more complex than to just remove the unneeded characters.
 
why are you getting two different values for "Test 1"?
 
(That first test one was supposed to be Single Space counting to 4 spaces, my bad)
 
@Qwerp-Derp help me with the mazekoth?
 
5:03 AM
@DestructibleWatermelon What do you need help with
 
Interestingly, Three spaces does share ktLlEwBAA=with the original, which might be enough to go off.
 
You weren't working on it for a while
 
@Qwerp-Derp general things
@Qwerp-Derp that was because of school
and also the effects school has
 
I've got my own project (Trees)
 
5:04 AM
I can still help with ideas and stuff
 
ok then
join in the room?
 
Sure
Ummm does anyone want to play some Fourtune?
 
$ grep -Po 'MSIE\s*\d*' /var/log/apache2/access.log.1 | sort -k 2n | uniq -c
    472 MSIE 6
     15 MSIE 7
    139 MSIE 8
    502 MSIE 9
     34 MSIE 10
      1 MSIE 11
Hm...
 
Does anyone here play HRM?
(HRM = Human Resource Machine)
I need golfing tips
 
5:08 AM
Code Bowling is a fairly good idea for Cops & Robbers though.
 
@ATaco It's been done before though
 
There are other challenges we can try to bowl.
 
Those IE 6 numbers can't be for real, can they?
 
Do you have any way to check whether it's just one or two people who visit a lot?
 
Good idea. Checking.
Well, 330 come from the same IP block.
Russian. Huh.
 
5:13 AM
@zyabin101 ಠ_ಠ you use IE 6?
 
Hahaha. It only accesses the front page and donation page, never the subdomains. Probably a search engine.
 
@Mego tried to add a leaderboard to your question, didn't work for some reason, sorry if it notified you for a blank edit
 
Most of the others also seem to be bogus, and pretty bad at what they're doing on top of that.
 
Random Question: If I do a custom flag on a message an chat. Do all SE mods in chat get notified, or just the site mods?
 
iirc it's mods only
 
5:20 AM
All of them.
But just mods, yes.
 
it's every 10k+ user on the entire network
not just mods
oh there's two kinds of flag
 
No, 10k users don't see custom flags.
 
TIL
@Dennis do you think 700 bytes for a lisp interpreter in Python is a lot
 
$ grep frontend.css /var/log/apache2/access.log.1 | grep -Po 'MSIE\s*\d*' | sort -k 2n | uniq -c
      2 MSIE 7
     25 MSIE 8
      6 MSIE 9
      1 MSIE 10
 
I didn't really do too much golfing on it
 
5:22 AM
OK, that looks better.
@orlp No clue. I know next to nothing about Lisp.
 
wat
5:38 AM
we should make a mcpe/mcwx server
 
Wait... I have a few questions about tinylisp
1. Is tinylisp TC?
2. Can tinylisp handle strings?
I'm thinking of maybe making a tinylisp interpreter in tinylisp
Crap is no one on
 
wat
 
-1
Q: Positional Awareness

Qwerp-DerpPositional Awareness Your task is to generate a program that, for every permutation of its characters (which includes the original program), outputs the positions of every character relative to the original program. If your program is Derp you must output [0, 1, 2, 3] (or some equivalent)...

 
@Qwerp-Derp if it's not TC it's not a lisp
I'm pretty sure about that
 
 
1 hour later…
6:51 AM
I have 3k rep now!
3003, to be exact. A nice ol' palindromic number.
 
7:17 AM
@Downgoat ಠ_ಠ no.
 
0
Q: Find the Sum of Digit XOR till N?

Arjun SKThe question is to find the sum of Digit XOR till N. For eg:- Digit XOR of a number 112 112 => 1 xor 1 xor 2 = 2 So we need to find int digit_xor_sum=0 for(i=1;i<=N;i++){ digit_xor_sum+= digit_xor(i); } return digit_xor_sum My Solution Approach was as follows, int digit_xor(int n)...

 
7:36 AM
We're the ninth on the hats leaderboard. WTF?
 
umm, how much health should bots have in this koth
 
Guys, get more hats!
 
8:18 AM
@betseg Congratulations on getting 3k rep!
2
 
Teacher is sick and didn't come, I got bored and drew some of you guys
 
> Kgreek Λtext
 
Yup
 
kinda weird how the red stubs have become exaggerated on the arts
 
@betseg :D
 
8:29 AM
@zyabin101 you were second to easiest to draw
 
And the easiest is?
 
@KritixiLithos
 
0
A: Sandbox for Proposed Challenges

MarioShortest self-destruction loop Your task is to write a full program or function that takes no input and runs any type of loop (while, for, foreach, do, do-while, do-loop, goto, etc) that will end in causing an error. Rules: This is code-golf so the shortest code wins. The loop must produce at...

 
I'm reviving Pyramid!
 
8:34 AM
@Qwerp-Derp \o/
 
Which pyramid?
 
My old lang, which was based on Stackylogic
Ask Destructible for more info
 
GH repo?
 
Still making it
I deleted the old one as well
@betseg I see my little Minecraft chicken and that's all that matters
 
@Destructible more info
@Qwerp-Derp done ^
 
8:38 AM
0
Q: We Are Number One, but

devRicherTask Your task is to write a program that will take input, and then output the lyrics to We Are Number One, changing specific words. The input will contain both the words to be changed, and the replacement word. Input The input will be in the following format: one, two\n net, villain\n (\n ...

 
I put a bounty on my Hexasweep challenge, I'm hoping to get at least 1 answer
It was my first language that I made, Pyramid
 
8:54 AM
I maek an ascii art comic thing
want to see?
39
Q: Run Stackylogic

Calvin's HobbiesStackylogic is a logic-based programming language I made up that take in 0's and 1's for input and outputs a single 0 or 1 upon completion. A Stackylogic program consists of lines that can only contain the three characters 01? as well as exactly one < at the end of one of the lines. Lines may no...

did chat die again
 
A quiet period is better than a noisy one. It's not like we have to keep posting or the bomb on the bus explodes.
7
 
or do we?
You don't know that
 
9:13 AM
@DestructibleWatermelon yes
 
my dad tells me I have to watch movie...
 
:)
 
9:33 AM
Erm, does anyone know what is "OOTO"?
 
@zyabin101 It's like GOTO, but in the Ook! programming language.
 
Nah, the one I see on leereilly's GitHub avatar all the time...
 
Out Of The Office is probably the most common meaning. Not sure if makes much sense using it on an avatar though.
 
@Emigna You replaced your hat! :-@
 
Have heard it used for Out Of The Ordinary which probably fits a bit better
@wizzwizz4 Yeah, I've received 4 free hats so I figured I try one out :)
 
9:44 AM
It fits perfectly :)
 
Wonder if there is a santa-hat. Would be pretty fitting this time of year
 
9:56 AM
@ais523 Ping me some time next week if time's about to run out on polyglot. Would extend, but no time to try atm.
 

« first day (2153 days earlier)      last day (2707 days later) »