« first day (1906 days earlier)      last day (2936 days later) » 

9:23 AM
@AlexA. OMG
(I never ordered anything from japan up to now, but I can highly recommend this shop! Very good packaging, and quite quick shipping.)
 
@flawr how can you possibly ever associate yourself with a company that uses Comic Sans in rainbow colors as a logo?
 
Consider they are japanese, they probably do not know what emotions Comic Sans produces in the western world. And I do not think they have Comic Sans for Kanji.
 
9:41 AM
@orlp cool :)
 
@orlp What do you need that for?
 
@flawr lembik
 
 
1 hour later…
10:57 AM
Well hey, at least school's cancelled :P
 
@Doorknob You live in Houston? :O
 
Yes
 
And if you try hard enough you can find out when he moved there :P
 
@Doorknob I was born there
 
11:16 AM
We should reload Helkish.
To reiterate, Helkish is a language with only two words, Helka Homba, to create even more words.
Conor created an encoding using these words.
 
0
A: Sandbox for Proposed Challenges

Les HDecimal to Troll code-golf Discworld Trolls have a unique number system. From Wikipedia: Trolls have a numeral system of their own, based on powers of 4. The base numerals are one (1), two (2), three (3), many (4) and lots (16), which can be combined to form higher numbers. When...

 
Encoding program in Jolf, 46 bytes:

RΜGiEd+RΜGpq~Y~@H8'0Ed.["Helka","Homba"]H' '!S

Decoding program in Jolf, 41 byte:

RΜZhG~pAi["Helka","Homba"]"01' "E'!dpAΙHE
 
11:30 AM
@MarsUltor Can you come to the UGL room? We should try making a prime checker with the new registers.
 
11:41 AM
@AlexA. That's derivative work. The port must be licensed GPL; furthermore the original copyright notice has to be retained.
In a larger FOSS project, any part that has a sane (i.e. non-reciprocal) license will be restricted by the GPL parts, no matter how small their share is. One reason why GPL is misused by 99% of devs (it takes the "F" out of FOSS).
 
Too many links ahh!
 
12:05 PM
@mınxomaτ I don't necessarily agree
IMO a library should be permissive
but an application should be GPL
 
12:20 PM
@QPaysTaxes so corporate doesn't get to modify the application and not share
and there is very often very little argument for it hampering code reuse
@QPaysTaxes no, it was already in the premise that you want to write a free application
the question is, how do you release your free application
permissive, or gpl
@QPaysTaxes for applications LGPL = GPL
@QPaysTaxes LGPL allows linking
you can't link to an application
only to a library
 
0
Q: What do Standard Loopholes mean?

Erik KonstantopoulosThere is still no definition of Standard Loopholes I could find, so any answer would be highly appreciated.

 
@Lembik slow, but if you replace prf_under_n and prf_coinflip with something decent it should be reasonably fast
 
12:44 PM
@VTCAKAVSMoACE Oh dear.
 
@Lembik I was missing a factor, use this: gist.github.com/orlp/7655b6656715906a622d0f4acf219b77
 
Well, that's a... lot.
 
survey: which language has the best parallelism constructs?
 
1:02 PM
PowerShell is great and does all things.
(but it really sucks for parallelism ... it's not really structured well for that)
 
1:23 PM
Rust and Java.
 
in Unipants' Golfing Language, 7 mins ago, by Kenny Lau
n^2:    1 4 9 16 25 36 49 64 81 100
n(n+1): 2 6 12 20 30 42 56 72 90
n(n+2): 3 8 15 24 35 48 63 80 99
n(n+3): 4 10 18 28 40 54 70 88
 
Although neither really have unique constructs per se, just really good implementations of the classic ones (mutexs, monitors, etc.)
 
Challenge idea: n(n+x) function or sequence.
 
@zyabin101 too simple
 
Chat mini-challenge would be fine, not much of a main site challenge
 
1:27 PM
lambda n,x:n*(n+x)
ever wondered what pure cringe looks like?
 
@orlp thanks! I will look at it as soon as possible
 
@zyabin101 Pyth: m*d+dQUT
 
I don't Pyth but that looks long o_O
 
print on newlines: VUT*N+N
start from zero: VT*N+N
 
@zyabin101 Python:
def q(x,l):
 r=[0]*l
 for n in range(l):
  r[n]=n*(n+x)
 return r
Makes a sequence.
 
1:32 PM
Jelly: ×+
 
where's the input
and where's the ten
 
@KennyLau Implicit.
 
@KennyLau ten?
 
well, range
not just n(n+x)
but n(n+x) for n from 1 to 10
 
Er.. so what's the input/output exactly? I think what orlp and I thought and what you two are doing are different
 
1:34 PM
@KennyLau that wasn't the challenge?
I thought it was just a function returning n(n+x)
 
def q(x,l):return[x*(x+n)for n in range(l)]
@orlp Alright
 
given two parameters n, x
 
@zyabin101
lambda x,l:[x*(x+n)for n in range(l)]
 
\(o_O)/
 
@KennyLau That doesn't match zya's original outputs...
 
1:38 PM
lambda x,l:[n*(n+x)for n in range(l)]
 
That still doesn't match
 
could you provide the difference?
 
range(l) starts from 0
 
-1
Q: How to write a program in turbo c++ to solve equation of motion

hammad arfeenI want to know how to write a program to solve atleast 3 eq of motion

 
zyabin also used range
 
1:43 PM
VTC unclear what OP's asking :P
 
lambda x:[n*(n+x)for n in range(1,11)]
 
Just getting one value in Pyth is pretty short: *+E
 
Bas
2:39 PM
@Sp3000 Can't wait for you to update ><> hint
 
just watch a talk on Go, they have a fantastic model for concurrency
instead of mutexes, semaphores, and other various things, they use channels
bascially, instead of communicating over variables (which you have to lock and so forth), you can simply pass in values into a channel, where the other threads wait
 
@Downgoat block to initialize yoour variables- typo in cheddar readme
 
@epicTCK whoops, fixed, thanks\
 
2:56 PM
I want sushi
 
@orlp I've made several penny whistles from pvc. It works really well, and isn't hard to do at all.
 
Blue Man Group has made a business from PVC pipes.
 
3:11 PM
@TimmyD not as flutes though
 
True.
 
user image
11
 
^ a couple of mine
 
so, I had a really clever idea: Two lists get zipped together when using the and operator
so you can simply say for x, y in list1 and list2
 
I'd say that would be very surprising behaviour... and rarely means the English and when used in code, it almost always means logical / bitwise and.
Why is that any better than for x, y in zip(list1, list2)?
 
3:20 PM
its easier to read
I'm not a fan of using lists as a boolean
but in other cases, and could be a boolean operator
 
Like I said, I disagree. I would find that very surprising that and was actually zipping things.
 
well, if you were reading the above code, it makes intuitive sense
I mean, I could see people trying to do if list1 and list2:
 
Python's and on lists is logical: if either list is empty you get the empty list, otherwise you get the second list. While not often useful, it is much less surprising IMO.
 
I've never used that before
or heard of it
let me look into it
 
creepy as hell:
 
3:26 PM
@Bas At this point, I dunno what I'd add tbh... I feel like I've already showcased most of ><>'s basics
 
@FryAmTheEggman you know what's funny? zipping the list has pretty much the same effect
if either list was empty, you'd still get an empty list
but if neither of them are, you'd get a list of both of them
@FryAmTheEggman I'm pretty sure you can't and two lists.
[].__and__([])
AttributeError: 'list' object has no attribute '__and__'
 
Uh, try [] and [1,2,3], works fine for me.
 
there's some magic happening here
I think what is happening is it does something like:
def __and__(a,b):
    if not bool(a):
        return a
   if not bool(b):
        return b
  return b
 
__and__ is for & I'm pretty sure.
 
because list definitely doesn't implement __and__
oh, you're right
what's the magic method for and?
 
3:39 PM
Question for math people: is there a generalization of integration/differentiation that applies to arbitrary rings/fields?
 
yeah, with integers, it has the exact same behavior
aka, print 4 and 5 prints 5
 
I'm pretty sure you can't overload and directly, it's basically just x if not x else y.
 
hmmm. well that's lame
 
@NathanMerrill why even add the second if statement there, it does the same thing without it
 
yeah, I realized that, but after the grace period :)
 
3:41 PM
You can overload __bool__ (I think that's what it's called) which is what determines whether it's truthy or falsy.
 
but its silly that you can't overload and
I mean, its an operator, just like any other
 
I don't think so, it doesn't really make sense to do anything other than what it does. Since you can define truthiness you can always make it behave the way it should.
 
you know, except zipping of lists
which is basically identical for all truthyness testing
 
I still don't think that would make any sense :P
 
and the bonus, is that the or counterpart would work
you would simply have a tuple of optionals
it reads nice, it works with booleans, its just something you've never seen before
 
3:45 PM
There should be only one way to do something. If to do or look up something I have to go through a huge list of "in this case foo does blah but in this other case foo does asdf" then I'm going to be unhappy :P
 
but it does only do one thing
it zips the list
 
But then why does zip exist? The point isn't that and does more than one thing, it's that there are two ways to do something that have no meaningful difference.
 
oh right
I'd remove zip
:)
or maybe keep it to allow for zipping more than 2 lists
 
Well I think that's wrong :P
 
but that's a rare case
why?
I mean, I can't think of a case when that would cause a bug
 
3:48 PM
Your version is very surprising to me. zip does exactly what it says it does, but and doesn't.
 
turn that surprise into a bug
 
You guys are just talking past one another at this point
 
say you're a beginner programmer that doesn't know it zips
 
@Rainbolt Probably :P
 
The AI contest I went to was pretty okay.
 
@PhiNotPi I don't know much about this but Wikipedia seems to think so: en.wikipedia.org/wiki/…
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Helkish is that language that uses two words, Helka Homba, to create words.
We talked in it a few days ago.
 
Yeah?
I didn't see the ping
 
@CᴏɴᴏʀO'Bʀɪᴇɴ We should reload Helkish.
So, helka homba would mean hello.
 
Hm! Sounds interesting
I'm @ school rn tho
 
3:56 PM
oops hides in barrel
 
This is pretty much ready for posting I think. Only question is whether to put a loose time limit on answers (e.g. a minute for any of the test cases):
2
A: Sandbox for Proposed Challenges

Martin BüttnerFind a leaper that can move freely on the board code-golfgridgraphs This could use a catchier title... I recently got a really weird irregular chess board. It's squares are all over the place and not even all connected. At least they're still laid out on a regular grid. I want to adapt the che...

 
wait let me make a chess golf lang first
In seriousness, how about "Leaper Seeker" for a title?
 
@PhiNotPi Oh, I actually think I misread your question. I don't think there is a way to do it for any arbitrary ring? But again I don't know much about it, sorry :P
 
@FryAmTheEggman I hadn't seen that wiki article, so I'm reading that now.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ that's not bad but 2 characters too short :P
 
3:57 PM
"Free-Leaper Seeker"?
 
@mınxomaτ You know you are in Germany...
 
Well, I guess he could open his door with both.
8
 
@Geobits Ha cool! How do you determine the position/size of the finger holes?
@mınxomaτ But locking the door again could be problematic depending on what he used.
 
4:02 PM
@flawr The charts here are a good rough guide, but you'll want a decent tuner on hand to dial it in while you're doing the holes.
 
So can you still adjust the tuning by making the holes bigger? I mean sadly there is no Crtl+Z IRL=)
 
Ha, yea. Start a bit smaller than the charts tell you, and stop when you get the right note. Much easier than the opposite :P
 
But thats a really cool idea!
 
After I did a few pvc ones, I also made a small steel one. It's hard to say which is my favorite, but the steel definitely has a different sound.
 
Do you play any instruments other than those?=)
 
4:13 PM
I dabble on guitar and keyboard also.
 
High correlation between code golfing and music playing... why no music golf?
 
high correlation between music and programming I'd say
we have had a couple of challenges related to instruments and music notation
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Seeking Leapers?
 
I actually had one about brass fingerings:
6
Q: Brass Fingerings

Nathan MerrillFor this challenge, you need to print out the fingerings for various brass instruments. The notes an instrument can play (as well as their fingerings) are listed below: Cornet Baritone Trumpet Bugle French Horn Euphonium Tuba A#0 ...

but only got 1 answer :(
 
(better than Leaking Seepers or Seeping Leakers, I guess...)
 
4:20 PM
@MartinBüttner Oo, that's nice.
 
Sweeper leaper seeker
 
@CᴏɴᴏʀO'Bʀɪᴇɴ What would musical programming look like?
Bloody ridiculous Internet connection
 
\\ || // /_ _\ NC
\| |\ |/ /| 45°
\/ |_ /\ _| 90°
\_ _/ 135°
__ 180°
I mapped squiggles to angles.
 
how are /_ and _\ 0°?
 
@MartinBüttner They aren't connected.
 
@Sherlock9 Prelude.
 
@Sherlock9 Interestingly, the few of times when a double message is to be posted, my connection get timed out. :-) The double message doesn't post.
 
@Sp3000 Got friend to say this ten times fast, they messed up with "leaker" on the second go
 
Challenge idea: determine the average angle of a squiggle string.
_/\_ ==> 120°
 
4:29 PM
12
Q: Smooth vs. Chunky vs. Broken Squiggles

PhiNotPiBased on Chunky vs. Smooth Strings. Squiggles /\_/\/\__/\/\/\/\_/\_/\ are fun to make on a keyboard when you are really bored. But not all squiggles are created equal. Some squiggles are smooth, like \___/, and some are chunky, like /\/\/\/\. Others are just downright broken, like ////_\\\ I...

 
But there can exist the | character.
_|_ ==> 90°
Both squiggles, _| and |_, are 90°.
 
How about |\/|
:P
 
@NathanMerrill @MartinBüttner @CᴏɴᴏʀO'Bʀɪᴇɴ Ah yes. I remember those now
 
/V\
 
4:33 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ |_\/_| ==> _UNK
The `_` squiggle doesn't connect.
 
@poi830 /V\ ==> _UNK
 
How about _-"-_? :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ _UNK, too.
V and - are invalid characters for the input.
 
4:35 PM
_UNK in these examples means undefined behaviour.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ <_>^ ==> _UNK
 
Sorry, that was a failed face :P
 
The input can only have \, |, / and _ characters.
 
._.
 
4:41 PM
@flawr Ah, you back again?
YWOT is back. Go wild.
 
._.
 
c-c-c-c-combobreaker
The next item in the sequence is ---.---_---.---.
 
@MartinBüttner How do you check if parens (only ()) are balanced in retina? I am just wondering for reference.
 
_
Ξ
Ξ
Beat that=)
 
the mean of Xi over Xi
 
I mean the complex conjugate of Xi
=P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You can use basically the same approach he describes in this SO post: stackoverflow.com/a/17004406
 
4:53 PM
Thanks!
 
@CᴏɴᴏʀO'Bʀɪᴇɴ +`\(\)\n\n^$
(replace \ns with actual newlines)
 
what
oh
What does + do?
 
... nvm I could just link
Er, repeat until no change
 
it'd be super useful if downloads would add the hash with the download
that way, when I download a file for the 15th time, it doesn't actually redownload
because the hashes match
alternatively, chrome could simply download and compare
if the files match, then ignore
 

« first day (1906 days earlier)      last day (2936 days later) »