« first day (1842 days earlier)      last day (3007 days later) » 

9:00 PM
@hubot Also, the name is better translated as "Asperger's Syndrome" instead of "Syndrome of Asperger."
 
This blog is constantly developed.
 
@MartinBüttner no, it's a golfing language (also, oops)
well, it wasn't meant for golfing but it's still viable as one often
 
@hubot It's generally frowned upon to come into chatrooms you're not a regular in to advertise your own site/product/blog/etc.
 
Agreed.
 
9:06 PM
@Optimizer OK, my character is now called wisely.
 
Wow, chat is back. Turns out, I was stuck on the SE error page because I kept refreshing, only it was refreshing the error page and not the chat. =P
 
@Roujo :P
 
@Roujo :P
 
@Roujo :P
 
in The 2nd Monitor, 15 hours ago, by Captain Obvious
0
Q: self learning chatbot in python any idea

Kevin Georgethe title is my question help me out please cat dog t help me out here I will be so thank full help me out here I will help you to in you are thing also

 
9:16 PM
That sounds familiar...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Does Jolf have something like sprintf or format?
 
What's sprintf?
 
"hi %d", 1 -> "hi 1"
 
Why do you ask?
 
I don't remember what the JS equivalent is called.
 
9:19 PM
Jolf has one, but js doesn't, unless you use console.log.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I need 3 more answers for bronze string badge, so doing 2spooky4me
 
@quartata There's no Jolf for that?
 
Nope.
Just Japt and TeaScript.
 
@quartata This is called "format strings" in Python. FCI (For Conor's Information). :P
 
9:20 PM
hey @ETHproductions
@quartata % is string interpolation.
 
OK, that'll work.
16 bytes. Not bad.
 
Hm, surely this is a duplicate, considering the task is just "determine which elements of the list contain the given string." Can't seem to find the target though. Anybody know?
 
@quartata link me?
 
Oh, you didn't post it yet. :P
 
9:24 PM
Just did.
Mkay. 2 to go...
 
0
A: Halloween Golf: The 2spooky4me Challenge!

quartataJolf, 16 bytes "%spooky%me"J+2J Try it online.

 
Oh, I remember now: there's another way to do string interpolation...
 
If I compressed the string would string interpolation still work
 
I don't think so.
 
9:29 PM
k
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Hey
 
4
A: Sandbox for Proposed Challenges

quartataGrocery Store Micromanagement You are an employee at the hip new grocery store Half Foods, and it's the day before Thanksgiving Christmas Easter. Since the store will be packed with customers rushing to get their foodstuffs, the store needs a traffic manager to send everyone to the appropriate l...

I've decided I'm finally going to post this.
Last thoughts?
I was delaying it because I was going to redo the grids but I decided it's OK as is
It would have been soooo much better if I had actually gotten it posted on Thanksgiving
 
right
It looks fine
 
I'd hope it was fine. It's been in the sandbox for 3 months
 
haha
 
> computersaresadtoo.tumblr.com
 
It's already closed.
 
Thanks @Doorknob
 
I don't understand the upvote though.
 
9:45 PM
Decent challenge, but no objective winning criterion. I think it should be
 
@AlexA. It wasn't when I posted it :P
 
(I didn't upvote)
 
@AlexA. I listened to that for ~2 hours during exam week
 
It's actually good
 
I know! :D
:O 5 more score until silver CG badge!
 
9:47 PM
Nice!
 
@AlexA. Yup, pretty cool song =D
 
> There are 10 types of people in the world: those who understand binary, and 9 others.
(Found here)
 
lel
 
Can we nuke this?:
1
A: We're no strangers to code golf, you know the rules, and so do I

TorPython, 29 characters print __file__.split('/')[-1] Of course, you need to save the program as a file whose name is the entire text to be printed.

 
+1 for creatively violating the "no external resources" rule. But it certainly isn't a valid answer. — ugoren Jun 6 '12 at 6:13
 
9:51 PM
we've got another mysterious one
 
ಠ_ಠ
 
94 45812984490
0b101010101010101010101010101010101010
 
24
A: Do good math jokes exist?

larry SennerThe water receded and the Ark came to rest upon the land. Noah opened the doors and commanded the animals, “Go forth and multiply.” The animals slowly departed the Ark except for two snakes that remained in the back. Again Noah proclaimed ,“Go forth and multiply” yet the two snakes did not mov...

 
36 does not stand alone!
 
@CᴏɴᴏʀO'Bʀɪᴇɴ
 
9:51 PM
@AlexA. Thanks! :D
 
@orlp What is it you're doing with 36 and 94?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Thank you for bringing it to my attention
 
30
Q: Electrons bouncing in a wire

El'endia StarmanImagine a "wire" that has n spaces. Imagine further that there are "electrons" in that wire. These electrons only live for one unit of time. Any spaces in the wire that are adjacent to exactly one electron become an electron. In Game of Life terminology, this is B1/S. For example, this is a wire...

 
@AlexA. I noticed it when the userscript brought it forth as the shortest answer to that question >_>
 
all values from that
 
9:52 PM
1
Q: Maximum Sum on array

Saurabh JainGiven a array of N elements and a number k, then find the sum of maximum of a all continuous blocks of length k? Examples : A = {2,5,2}, k = 2, Max for 1st block = 5, 2nd block = 5, So sum is 10. A = {3,1,8}, k = 2, Max for 1st block = 3, 2nd block = 8, So sum is 11. A = {2,5,2}, k = 1, Max fo...

4
Q: Grocery Store Micromanagement

quartataYou are an employee at the hip new grocery store Half Foods, and it's the day before Thanksgiving Christmas Easter. Since the store will be packed with customers rushing to get their foodstuffs, the store needs a traffic manager to send everyone to the appropriate lines. Being lazy, you'd like to...

 
finally you slow bot
@orlp gists onebox? huh
 
@ETHproductions the weird thing is
ALL those values have the pattern (in binary) 111111111111111.....000000000
EXCEPT 36 and 94, which have 1010101010101010101010
 
@orlp Are you trying to find a closed form for this sequence?
 
No, only programming puzzle. — Saurabh Jain 17 mins ago
 
9:54 PM
even more mysteriously
the even numbers exactly follow oeis.org/A160657
EXCEPT 36 and 94
 
(we've proven that f(2n+1) = 2*f(n))
so that solves the odd numbers
 
94?
 
I was trying to find a closed form solution yesterday, and I noticed that all the first 32 could be represented as 2^x-2^y
 
9:57 PM
@ETHproductions but not 36 :)
 
I wonder why the anomalies...
 
all the other even ones are 2^n - 2
 
@ETHproductions That's true for all of them except for 36 and 94 (that we know of), and their successors via the 2n+1 rule.
 
@ETHproductions basically they're all 1...0... in binary except 36 and 94 which are 101010...
 
@somebody I know, but why?
 
9:59 PM
idk
that's what we're trying to find out
 
Halp, should I use JavaScript or Python for my next golfing lang?
 
@Downgoat No, use PyScript or Javathon
 
@Downgoat You should use python but have a JS interpreter in it.
Ninja'd?
Not sure.
 
@VoteToClose O.o
 
10:06 PM
@VoteToClose why...
 
I wanted string to numerical conversion.
 
@VoteToClose I'm very sure you don't need to include a JavaScript engine to convert a string to an int
 
Because I can get a string input involving numbers and eval it with JS, get the evaluated return as double.
 
why not japt/teascript/esmin etc.?
 
@Downgoat It was there, and it was cheap.
@somebody There's no builtin for that in all JVMs. :D
 
10:08 PM
import os; os.system('js -e "2+24"') <- why does that not work
 
oh
 
@Downgoat You'd have to load in the JS engine every time you evaluated.
 
import os; os.system('js -e "print(2+24)"') it works!
 
@Downgoat What's this for?
 
@Downgoat It does, but it's inefficient. Seriously inefficient.
 
10:10 PM
@quartata a new golfing lang I'm making
What does if __name__ == '__main__': do
 
Loading the javascript engine as an object and then calling eval on that is vastly more efficient.
 
1604
Q: What does `if __name__ == "__main__":` do?

DevotedWhat does the if __name__ == "__main__": do? # Threading example import time, thread def myfunction(string, sleeptime, lock, *args): while 1: lock.acquire() time.sleep(sleeptime) lock.release() time.sleep(sleeptime) if __name__ == "__main__": lock = threa...

 
> It will then read the if statement and see that name does equal "main", so it will execute the block shown there.
 
@Downgoat If you're asking that question you should probably use JS instead
But basically it defines code that will only be executed when the file is run directly
 
@quartata As much as I love JavaScript, it sucks
 
10:12 PM
As opposed to imported
@Downgoat Very true.
But still.
Stick with what you know for something complicated like a language.
 
^ Disagree
I think it's a fine way to learn something new
 
^^ Agree and ^ Agree
 
? ok
 
^^^ Agree
 
I did make an OEIS lookup tool in Python
 
10:13 PM
I think that's a good way to cause yourself a lot of pain....
but whatever floats your boat
 
@quartata depends
 
I learned a large portion of the C/C++ that I know by writing Snowman ^.^
 
I was just about to mention that ^
 
user image
7
 
bleat
 
10:14 PM
@Downgoat I have used this phrase for several years.
 
I usually say "goats your boat."
 
oh no, Brackets or Atom don't properly support Python auto-indentation...
I guess I'm using JavaScript ¯\_(ツ)_/¯
 
get an atom package
 
solution: vim
 
@somebody I couldn't find one
 
10:15 PM
@Downgoat Use Java.
 
@AlexA. whatever goats your goat
 
@quartata I can write a git commit message in vim, not a language
 
@Downgoat You should make a new language... in Vitsy.
 
@Downgoat use gedit
 
@Downgoat Get the indent-detective package for Atom.
 
10:16 PM
 
@Downgoat <insert suggestion>
 
oh
okay
 
I basically consider indent-detective required for using Atom.
Granted, I switched from Atom to Vim recently.
But as Doorknob could tell you, my Vim skills are... lacking, at best.
 
I've used vim for a very long time and still suck at it
I just haven't bothered to get better I guess
 
All I know about vim is :x and :q
 
10:19 PM
すみません、ドアノッブ先輩。私は muy mal.
 
translate: すみません、ドアノッブ先輩。私は
(from Japanese) I'm sorry, it's danos b senior. I
 
wat
 
すみません = I'm sorry, ドアノッブ = Doorknob, 先輩 = senpai, 私は = I am
 
@Doorknob regex replacement in vim how
 
@El'endiaStarman :s
 
10:20 PM
/me is so bad at japanese
 
@El'endiaStarman :%s/pattern/replace/g
 
oh god I think Atom uses tabs
 
Just change the settings
 
you can change that in settings - ctrl+,
 
When I downloaded it I think it defaulted to 4 spaces but I don't remember. ¯\_(ツ)_/¯
 
10:22 PM
it defaulted to two spaces for me
 
Any editor that doesn't have a way to make the tab key insert spaces should be sent to Valhalla in a flaming boat.
 
any editor anywhere as slow as visual studio too?
 
It says it's set to 2 spaces but it's still just a tab...
 
oh
 
@AlexA. Um. Isn't Valhalla a place that's good to go to?
 
10:23 PM
I can't seem to get :%s/limbs()/((N+63)/64)/ to work, even with all parentheses escaped.
 
wait, that's because it acts as if they are tabs
 
@Downgoat How can you tell? Atom backspaces out full indent levels.
 
@Doorknob (yes)
 
i think you can click in between indents
 
@El'endiaStarman g at the end
 
10:24 PM
@AlexA. is unnecessary (unless there are multiple on each line)
 
Really?
 
Hmm. I got a E488: Trailing characters error though.
 
Pretty sure that's four spaces
 
@El'endiaStarman Why are there four slashes in there
Is the third supposed to be division
 
10:24 PM
yes
 
Oh, that'd be why.
 
Escape it son
 
Do I need to escape the parentheses too?
 
@Downgoat Can you click within the autoindented section?
 
@El'endiaStarman nope
 
10:25 PM
@AlexA. nope
 
Really?
 
\(...\) is a capturing group
 
Excellent, that worked.
 
Vim regular expressions are not regular
PCRE or bust
 
see also: :help magic
 
10:26 PM
@AlexA. irregex?
 
@Downgoat then it's probably your autoindenter settings
 
Get indent-detective
ASAP
 
@AlexA. what regex flavour is regular these days...?
 
@AlexA. how is it not regular?
 
48 secs ago, by Alex A.
PCRE or bust
@somebody It's not PCRE.
 
10:26 PM
oh
.NET > PCRE though
 
59 secs ago, by VoteToClose
@AlexA. irregex?
 
vim's flavor is handy though
 
@MartinBüttner That's true but then you're stuck with .NET everything else.
@Doorknob Is it sweet or salty?
 
I especially like \zs and \ze
 
.NET framework < most things
 
10:28 PM
@AlexA. Spicy.
 
@somebody I feel like this is based on ".NET ≈ Windows" and not on actually having used it ;)
 
I've used it
a lot
 
\o/ indent-detective fixed it
 
12 mins ago, by Alex A.
I basically consider indent-detective required for using Atom.
 
but yeah, waiting for LLILC to fully support linux
 
10:29 PM
You could also always use an editor that doesn't require one to install plugins in order to access basic features ;)
 
@Doorknob but atom has a markdown viewer and emmet
also, Facebook uses a modified version of atom, it can't be that bad
 
@somebody Literally the whole point of Markdown is to be readable pre-render; also, github.com/mattn/emmet-vim
@somebody How is "Facebook uses it" a good thing? ;)
 
Random thought but I truly cannot judge how well received a challenge will be. I completely expected Alex-style addition to be poorly received, and it got like 40 upvotes. But then I expected Primitive Roots of Unity to be really well received, and it only got 10.
 
@somebody They use Electron, right?
No
 
@Doorknob it's for you to make sure it's working like you want it
 
10:31 PM
They use something based on Electron
Atom is also based on Electron
 
@AlexA. no, atom is an editor
 
Right
 
they based it on atom
it's an atom package called nuclide now
 
@quartata Electrons in a wire turned out to be significantly more well-received than I expected.
 
Upvotes are... strange
 
10:32 PM
I think the gif helped. :P
 
@somebody Right. I remember that now. There's a Julia guy who works for Facebook who uses that.
 
@El'endiaStarman ooh shiny
 
Facebook has an office in my building.
 
:P
 
They clog up the elevators.
And their catered meals stink up the stairwells.
 
10:33 PM
@quartata The masses do like their pretty pictures. :P
 
Anyone used GOLF-CPU before?
 
0
Q: Compute overall ranking

Luis MendoYou are given a table that represents the rankings of S subjects according to a number C of different criteria. The purpose is to compute an overall ranking according to a weighted sum of the C ranking criteria, using one of those criteria (i.e. columns), T, as tie-breaker. The rankings are a...

 
@AlexA. bleh
 
@Liam I've seen you ask that question multiple times in here.
 
All of their office floors are concrete and their desks are just long tables with computers on them.
I don't know how they get anything done.
 
10:36 PM
@AlexA. oh is it one of those open plan offices
 
Yes
 
blergh
 
No private anything
That would be way too distracting for me
 
2nd time. Just hoping to see someone who can help me out with understanding it
 
@orlp : @Liam wants help with GOLF-CPU
 
10:37 PM
thanks
 
If there's anyone who can help, it's orlp.
Unless I'm remembering incorrectly and he's not the one who made it. >_>
 
He is
 
@Liam Oh, sorry, did a search and I was mistaken.
 
about what?
 
@AlexA. hrm
 
10:39 PM
@orlp hrm
 
@orlp I just had some questions about golf-cpu
 
ye, go ahead
 
Is there a way to get something similar to a dynamic array in C
basically an arbitrary number of consecutive memory addresses
limited by ram
or rather heap size
I may be misunderstanding the sort of architecture we're working with too, so my question may kinda be garbage
 
you can use any memory address?
 
so all addresses are free
up to whatever the final one was?
and python will ask my machine for the space to do that?
final address? --> 0xffffffffffffffff
 
10:46 PM
if I remember correctly
when you first access a memory address
 
okay I think that clears a bunch up for me (I was misunderstanding some stuff)
 
the GOLF interpreter will increase the memory array to be continuous up until that address
 
okay
 
so accessing 0xfffffffffff will probably give a memory error
 
because
> Memory address 0xffffffffffffffff is special - stores to this address will be written to the virtual machine's stdout, reads come from stdin.
 
10:48 PM
ah yes
that's a different address
it doesn't allocate memory
when you write to it
 
hahahaha
 

« first day (1842 days earlier)      last day (3007 days later) »