« first day (1778 days earlier)      last day (3058 days later) » 

8:05 PM
user image
7
 
in Esoteric Programming Languages, 29 secs ago, by Zgarb
Yes, Jelly><> is happening.
 
that is fantastic
 
what is wc ?
 
$ man wc
 
Peter's being blunt again.
 
8:08 PM
in Esoteric Programming Languages, 57 secs ago, by Zgarb
I may change the name tough, as cool as it is. :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Byte count.
 
@Doorknob ... wow, that helped a lot
 
Pretty sure that's why manpages exist ¯\_(ツ)_/¯
 
@quartata >_< what is wc even supposed to mean if the byte count is as of yet undetermined
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ?
wc -c FILE counts the bytes in a file.
 
8:09 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ huhwat
 
> wc - print newline, word, and byte counts for each file
 
>:3
@quartata Oh.
 
Oh. Get a sane OS :P
 
wc is a Unix core-util.
 
8:10 PM
@Doorknob I like my OS's insane, like myself.
 
Also this goes without saying but cough DOS trash cough
 
       -c, --bytes
              print the byte counts
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Even on Linux, $ is not part of the command. It's the equivalent of cmd's > at the end of the prompt.
2
 
@Dennis XD I know
 
8:12 PM
Talking with Peter is always such a joy >_<
@ECHO OFF
IF %1==wc ECHO wc - print newline, word, and byte counts for each file
Save as man.bat
 
Better save as bat.man.
 
llama@llama:~$ man bat
No manual entry for bat
/me is sad
 
Reminds me of an SU question.
7
A: Sometimes you are feeling down, you want to 'man up' -- how can I add this manual entry in unix?

Dennis Though I should probably change that to Which womanual page do you want? -- would that involve re-compile or is there a patch? Recompiling yields the best results, but this should do in the meantime: #!/bin/bash ARG=${1/woman/man} man $ARG > /dev/null 2>&1 if [ $? -eq 0 ]; then man $...

No clue how that one stayed open.
My submission seems to be poorly golfed. I should revisit all my SU answers.
 
haha
 
What?
>>> a=[[]]*3
>>> b=a[1]
>>> b.append(1)
>>> a
[[1], [1], [1]]
 
8:19 PM
Yeah, Python does that
 
That explains why my code isn't working...
How do I convince Python to stappit?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ no
[[]]*3 makes three of the same array
 
nevermind :P
 
b has nothing to do with it
 
I'm just an idiot :P
 
8:20 PM
@Doorknob D'oh!
30 minutes of debugging.
 
[[] for x in range(3)]
 
@Doorknob That's silly.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Kill the space between ] and f
 
@Doorknob I didn't know we were golfing
 
(assuming this is golf)
 
8:22 PM
It isn't.
 
I assumed not :P
I assumed correctly :D
 
@CᴏɴᴏʀO'Bʀɪᴇɴ: It's always golf.
 
If it's not golf, IIRC there's a thing in itertools considered more idomatic
 
@VoteToSpam o_o Do I know you?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ No.
 
8:22 PM
Huh.
 
Well, yes, I used to be ConfusedMr_C
 
I decided to mock VTC with my username for a while :P
 
@FlagAsSpam ^
 
@Doorknob Hm, I have to import itertools anyway. Do you happen to know what I'm looking for?
 
8:23 PM
Uhh, I don't recall the function name exactly
looks it up
 
@VoteToSpam is confusing @FlagAsSpam.
 
@Dennis: yes
 
VoteToCloseAsSpam
 
sure
you can be that, if you want :P
 
8:24 PM
oh, it's just itertools.repeat @Dennis
... found by Googling "itertools repeat" :P
 
Hm, that's not very golfy. links = jelly.itertools.repeat([], len(lines)) vs links = [[] for line in lines].
 
@Dennis do the latter
it's more readable
 
@Dennis You said it wasn't golf...
 
@Doorknob As I said before, it's always golf
 
It isn't. Golfing is in my blood though. :P
 
8:26 PM
@Doorknob Sᴛɪʟʟ, ᴀɴʏᴏɴᴇ ᴡʜᴏ ɢᴏʟғs ᴄʀɪɴɢᴇs ᴀᴛ ᴛʜᴇɪʀ ᴏᴡɴ ᴄᴏᴅᴇ ᴡʜᴇɴ ɪᴛ's ᴛᴡɪᴄᴇ ᴀs ʟᴏɴɢ ᴀs sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ
ninja'd
 
@Doorknob I mean, thanks!
 
:D
 
Ugh, 'itertools.repeat' object is not subscriptable. I have to cast to list afterwards...
 
oh, yeah
list(itertools.repeat(foo, n))
... or just do the list comprehension :P
 
^
 
8:29 PM
I wasn't here when this started, what are you people trying to accomplish?
 
Getting Python to stappit.
 
Stapwat?
 
10 mins ago, by Dennis
>>> a=[[]]*3
>>> b=a[1]
>>> b.append(1)
>>> a
[[1], [1], [1]]
 
>>> dis.dis(a)
  2           0 LOAD_GLOBAL              0 (list)
              3 LOAD_GLOBAL              1 (itertools)
              6 LOAD_ATTR                2 (repeat)
              9 BUILD_LIST               0
             12 LOAD_CONST               1 (10)
             15 CALL_FUNCTION            2
             18 CALL_FUNCTION            1
             21 RETURN_VALUE
>>> dis.dis(b)
  2           0 BUILD_LIST               0
              3 LOAD_GLOBAL              0 (xrange)
              6 LOAD_CONST               1 (10)
itertools vs. comprehension
(that doesn't really say much, though, since we have no idea what's going on inside of itertools.repeat)
 
@Dennis: what...
In Ruby you could do b = a[1].dup but I don't know Python
I think
 
8:31 PM
@VoteToSpam no
 
@Doorknob It's called once when the program starts, so I don't really care. :P I would like to know why my interpreter has a start-up time of 300ms though...
 
that wouldn't affect the original array element
 
right, are you trying to change the original array element?
 
I love the rest parameter in JavaScript
 
@Dennis python -m cProfile foo.py
 
8:32 PM
Whoa, cool. It works in Ruby too
 
IOError: [Errno 2] No such file or directory: 'foo.py'
 
-_-
 
Big numbers in first column bad?
 
Uhh... what's the header of the first column?
 
Still scrolling up...
 
8:33 PM
heh
| less may help
 
ncalls. At least it's not cumtime.
 
Oh, I think there's a way to order by cumtime
15
Q: Sort cProfile output by percall when profiling a Python script

Brandon O'RourkeI'm using python -m cProfile -s calls myscript.py python -m cProfile -s percall myscript.py does not work. The Python documentation says "Look in the Stats documentation for valid sort values.": http://docs.python.org/library/profile.html#module-cProfile, which I cannot find.

 
What's the difference between tottime and cumtime?
Except that I can't think of jokes about tottime...
 
cumtime counts time spent in functions called from that function
so, def a(): b() would be zero tottime even if b takes forever
 
Well, cumtime says {built-in method exec} is the culprit, which isn't exactly helpful. The highest tottime is from {built-in method loads}, with 34 ms.
 
8:38 PM
loads is JSON, right?
 
Oh, that could be due to my fancy dictionaries.
Still, that's only 10% of the warmup.
Well, I should get things done first and speed them up later. Those 300 ms don't make the language unusable, so whatever.
It worked! \o/
Thanks again, @Doorknob.
 
No problem!
 
8:54 PM
Next step: tail call optimization. My infinite loops end rather abruptly...
 
[[]for x in range(3)]
[[]for x in[1,2,3]]
[[]for x in[0]*3]
[[],[],[]]
@Doorknob: ^ is golfier. :P
 
> My infinite loops end
 
0
Q: codes were first or hardware?

M-J(sorry because i am not sure if i'm asking my question in the right community or even if i'm considering the least level and standards here but): recently i started and read some initial issues about micro-controllers and how to code..., how to program them and consequently i guessed that all pro...

 
Then they aren't really infinite loops, are they? :P
 
@AlexA. In a heartbeat.
 
9:02 PM
@AlexA. don't make the Prog.SE mods hate you >_<
 
@Doorknob Oh but I want to
I don't think it's an unsalvagable question. With a little editing I'd be interested to see an answer.
Not on this site though, of course.
Maybe we should migrate it to Christianity.SE and have @El'endiaStarman deal with it over there. :P
 
I think it's going to be too broad on any SE site, because a full answer gets into philosophical issues raised by the Curry-Howard correspondence.
And properly dealing with all the possible interpretations of the question will then take more than 30k characters.
 
@AlexA. ಠ_ಠ
 
@PeterTaylor Interesting, I had no idea.
@El'endiaStarman ¯\_(ツ)_/¯
 
@AlexA. Christianity isn't the appropriate site, and I don't think there's an Akkadian religion SE yet.
 
9:09 PM
@PeterTaylor Surely you don't think I was serious about Christianity.SE...
 
Of course not, but it prompted a mental association with Snow Crash which was too good to pass up.
 
:D
I'm unfamiliar both with the book and the author.
Is it something you recommend?
 
I haven't read it in the original English, only in Spanish, but I thought it was alright. Definitely better than most fiction books which deal with computers. Some interesting ideas.
 
Wikipedia lists the genres as science fiction, cyberpunk, and something called "postcyberpunk." o_O
 
9:26 PM
@PeterTaylor That was a really interesting read. Thank you for sharing. :)
@randomra How is your job search going?
 
Synonyms: important for lipograms.
 
What are lipograms?
 
Texts where you leave out at least one character.
Most commonly, our fifth symbol.
 
Oh, okay. And the fifth symbol is e, right?
 
9:34 PM
Why is that being avoided?
I think I missed the origin of that...
 
Well, I only brought that up again because I improved the spec for this:
0
A: Sandbox for Proposed Challenges

El'endia StarmanIs it a lipogram? code-golf A lipogram is a block of words that omits a particular symbol. Right now, I am avoiding our fifth symbol of the 26 that commonly show up. You should know by now what I am omitting. If not, look up "lipogram" and you will know. Your Task With a char, a blank, and a f...

I had thesaurus.com open on the other monitor while I was writing that. :P
 
Haha
So if I'm understanding the challenge correctly, we're just to check if the given character is in the given string?
 
@El'endiaStarman: "fifth symbol of the 26" :)
 
WHAT. DANGIT.
 
Hooray, @Ilmari is here!
 
9:39 PM
Fixed.
 
I just noticed that the Lojban dictionary is written in Perl. :) jbovlaste.lojban.org/lookup.pl
 
@PhiNotPi I knew there was a reason not to trust Lojban.
@BrainSteel What discussion do you mean?
 
I finally got rid of Jelly's unholy, global link stack. Stuff is happening. :)
 
Does that mean \o@ is valid again?
Weird, all of a sudden I can't reply to anything. I can post but not reply.
 
Right now, that seems to be a perfectly valid no-op. Still errors; TIO hides STDERR.
 
9:52 PM
A no-op is better than a syntax error, at least. Sadness abounds
 
Oh, it's not a syntax error. You can have \o@ inside your code, but \ at the beginning tries to pop from an empty list.
 
Ah, okay. So the Jelly emoticon can't exist in isolation.
 
Am I the only one that thinks CodeReview's design is a bit ... mediocre?
 
It's better than ours.
 
@AlexA. I'm working since Monday (hence my absence here). Everything seems good. The project and the colleagues are nice.
 
9:54 PM
That's fantastic! I'm so happy for you! :D
 
And I can use my mind (for now) which is great.
 
Haha "for now"? Will your mind be erased shortly?
 
Thank you very much!
 
not every project requires deeper thinking
(I can't reply to messages somewhy in chat)
 
9:56 PM
@AlexA. This is what I was talking about.
 
@randomra Same here. I can do it in another room though, just not here.
 
@randomra The CDN that serves the required JS is borken.
@AlexA. Did you open that tab earlier?
 
I think so
@BrainSteel Ah yes, that.
 
That would explain it. I'm getting tired of copy-pasting the post IDs manually...
 
That's how you're replying? o_O
 
9:58 PM
@AlexA. Yes.
 
howdy folks
also wat
can't you use the left drop-down?
 
2 mins ago, by Dennis
@randomra The CDN that serves the required JS is borken.
 
What's a CDN?
 
Content Distribution Network
 
Content Delivery/Distribution Network
 
9:59 PM
ninja'd
 
ninja'd the Ninja. \o/
 
Meta-ninja'd
 
@Dennis I've seen your name around
 
It's a pretty common name. :P
 
10:01 PM
I used to go on Code Golf a lot when I was bored at my last job
and I've seen some of your work
 
Ah, OK.
 
it's impressive
 
Thanks. :)
 
I go on code golf when I'm bored in class lol.
 
I have a lot more of an active job these days, so that usually keeps me occupied
(aside from fooling around in chat)
 
10:05 PM
@randomra What kind of stuff are you doing for your job?
 
10:15 PM
@AlexA. high level specification for a somewhat complex system
basically finding out what the customer really wants
 
So like documentation?
Oh, okay
That sounds neat. :)
 
at every step I think about the tire-swing comic
 
Hahaha I love that
 
user image
3
 
FTFY. Just the raw image URL should make it onebox.
Weird, I both can't reply and can't star.
 
10:19 PM
Maybe SE devs are actually working on chat!!
 
I can only hope that they don't test in production.
 
10:30 PM
4
A: Chat reply links just broke

Chris Jester-YoungYeah, a typo where I missed the . in front of message. Oops! Fix going out in a minute.

 
nvm
 
10:48 PM
@VoteToSpam ಠ_ಠ
Also - where have all the pictures gone?
 
Eh!
 
Eh‽
3
 
._.
 
o-o
 
10:51 PM
¯\_(ツ)_/¯
 
I can't see any pictures.
Oh, hey, I see Conor's. And El'endia.
 
I've refreshed the page thrice.
 
That's odd.
 
10:51 PM
:DD
 
@Doorknob I found this: vim.rtorr.com
3
 
10:52 PM
It's a sign
 
interesting
 
@AlexA. I've I had this before, I would've used vim.
But alas, I use nano.
 
@AlexA. some of the things on there are stupid
like why is ea a separate "command" ಠ_ಠ
 
@FlagAsSpam You use nano ಠ_ಠ
So much ಠ_ಠ
That's worse than Emacs.
 
brew nano
 
10:54 PM
also, text objects are not visual mode-only. You should avoid using visual mode whenever possible
 
git gud
 
@Doorknob I don't even know what visual mode is. I'll just ignore that section...
@FlagAsSpam Never.
 
comgpen -c | grep -i nano
You have it installed already. :P
 
the fact that cc, cw, and c$ are all listed separately is also terrible
 
@FlagAsSpam I know. Doesn't mean I want it there.
@Doorknob You should make me a better vim cheat sheet then.
 
10:56 PM
> I hate everything about this. You should just know it. 21 seconds ago @Doorknob
 
One of the first Google search results
@FlagAsSpam pretty much
 
Random, helpful, obscure functions on arrays and lists. Go.
 
@Doorknob This looks like the Periodic Table. Dislike.
 
haha
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Spiral wind/unwind.
 
10:57 PM
@El'endiaStarman o-o saywat
 
Spirals seem to come up rather often on PPCG...
 
^
@CᴏɴᴏʀO'Bʀɪᴇɴ Shuffle.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Ruby's shelljoin
 
I have it planned for something like $3P in Minkolang.
 
@FlagAsSpam thanks
@Doorknob explain?
@El'endiaStarman could you give me an example?
 
10:59 PM
Fourth question on the front page right now:
15
Q: The alphanumeric spiral

AdnanThe task is very simple, when given an input, output one of the following spirals: Input = 1 gives a spiral with the letter A beginning in the top left corner: A B C D E F T U V W X G S 5 6 7 Y H R 4 9 8 Z I Q 3 2 1 0 J P O N M L K Input = 2 gives a spiral with the letter A beginning in the t...

 
oh that type of spiral
 
Ulam.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Turns stuff like ['./path to/file', 'argument 1', "argu'ment 2"] into "./path\ to/file argument\ 1 argu\'ment\ 2"
 

« first day (1778 days earlier)      last day (3058 days later) »