« first day (1900 days earlier)      last day (2944 days later) » 

7:00 PM
ohey @VTCAKAVSMoACE back to the original name!
:P
 
:O
WELCOME BACK! WE'VE MISSED YOU!
 
Thanks for the help @El'endiaStarman and @QPaysTaxes
 
@EᴀsᴛᴇʀʟʏIʀᴋ Vintage Trench Coat Also Known As VSMoACE?
 
\o/ shortest python answer!
0
A: Remove leading and trailing zeroes

Easterly IrkPython, 61 bytes [int(i) for i in ''.join(str(i) for i in input()).strip('0')]

valid at least, 42 byte one fails.
 
@Sherlock9 You've decided on your topic?
 
7:04 PM
@zyabin101 yeaj
 
Oh one of my ideas was to create a programming language with ease-of-use as its main principle
 
@CᴏɴᴏʀO'Bʀɪᴇɴ He was @CoolestVeto y'know.
 
@El'endiaStarman No I haven't, but I wanted to thank you anyway
 
@EᴀsᴛᴇʀʟʏIʀᴋ You can save 3 bytes in whitespace.
 
@EᴀsᴛᴇʀʟʏIʀᴋ That was an imposter.
 
7:04 PM
@Sherlock9 That's basically what I'm doing with Pytek! :P
 
@Morgan'Venti'Thrappuccino whatever do you mean? :P
BAI
 
I'm partially kidding because Pytek is meant to be more than just easy-to-use, but still.
 
@EᴀsᴛᴇʀʟʏIʀᴋ bai
 
That's why I mentioned it again
 
@El'endiaStarman If it doesn't have a builtin for each challenge on this site, I wont use it.
 
7:06 PM
I wanted to get your view on it, since you're basically already implementing it
 
@Sherlock9 Ahhh, okay. Hmm. I'm not sure what specific sort of information you want.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Also, technically that's a repl statement. It won't print outside of a repl.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You want a language with 7000 builtins?
 
@El'endiaStarman Hopefully more, but yeah of course not :P
 
@EᴀsᴛᴇʀʟʏIʀᴋ bai
 
7:09 PM
@Morgan'Venti'Thrappuccino Can I mark it as python REPL, or need a print statement?
 
@EᴀsᴛᴇʀʟʏIʀᴋ You need print.
 
@El'endiaStarman Not sure what I'm looking for either :P
 
and you ninjaed me....
 
Hey, it's a slightly different approach. ;)
 
7:11 PM
Mostly what problems were you trying to solve when writing Pytek
Like in Paul Graham's essay about what problems languages were built to solve
 
Well, for me specifically, Pytek solves (or rather, will solve) the problem of not having a single language that is good at abstract stuff (like Python) as well as graphics and interactivity (like Blitz 2D/3D), and it solves the problem of having to define my own functions many times for little things that I think should've been implemented already.
 
Mathematica? :3
 
Mathematica is good for math graphics/interactivity. Games? Not so much.
 
@Morgan'Venti'Thrappuccino same, but with map.....
 
f=lambda j:[int(i)for i in''.join(str(i)for i in j).strip('0')]
print(f([0, 0, 0, 8, 1, 4, 3, 5, 6, 4, 1, 2, 10, 1, 0, 0, 0, 0]))
Breaks for 10.
Mine had the same issue.
 
7:17 PM
ohey you didn't have to delete
@Morgan'Venti'Thrappuccino will die bai
fixed...
hm
what about
lambda j:[int(i)for i in''.join(str(i)for i in j).strip(', 0').strip('[0,')]
 
@quartata zo'oi #lojban se cmene la .iburycy. .i ji'a la'oi #ckule .e la'oi #jbosnu cu zasti
 
lojban fight!
 
(cmene's place structure is different than you think it is, and you need to use {zo'oI} to quote that)
 
@EᴀsᴛᴇʀʟʏIʀᴋ f([0, 0, 0, 8, 1, 4, 3, 5, 6, 4, 1, 2, 10, 1, 0, 0, 0, 0]) == [8, 1, 4, 3, 5, 6, 4, 1, 2, 1, 0, 1].
Nope, still borked.
 
7:20 PM
@quartata Experimental means they weren't in the original, first draft wordlist. They're still frequently used, though. ex. {kibro} is probably the most likely candidate right now for being added as a new, non-experimental word.
 
@quartata .ua nai zo cadga na gismu
 
0
Q: Tips for golfing in dc

AbbKazPowWhat general tips do you have for golfing in dc? I am interested in how to make my dc programs (calculations?) shorter. I'm looking for ideas that can be applied to general code-golf that are at least a little bit specific to dc (eg. removing comments is not a helpful answer) Please post one tip...

 
yes
 
@EᴀsᴛᴇʀʟʏIʀᴋ lambda j:[int(x)for x in j[1:-1].strip(' 0,').split(', ')if int(x)].
 
7:27 PM
@El'endiaStarman That helps. Thanks!
 
@Morgan'Venti'Thrappuccino oooh
 
@Sherlock9 Welcome! :)
 
@QPaysTaxes Probably not. Is the first one the one that should be deleted?
 
@Morgan'Venti'Thrappuccino doesn't work.
 
@El'endiaStarman For your games, will the save files be obfuscated to prevent cheating?
 
7:29 PM
@Sherlock9 I'm not going to worry about cheating for a long time. :P
 
Alright, thanks again
 
And in any case, I doubt obfuscation will help.
 
@Morgan'Venti'Thrappuccino fails for single length inputs.
 
@QPaysTaxes gone eleven
 
@EᴀsᴛᴇʀʟʏIʀᴋ Bleh. :(
 
7:30 PM
Anything you give to a client, they can do whatever they want. That's why server-side validation is a must for any cheating-proof (relatively) game.
 
@Morgan'Venti'Thrappuccino ikr
 
No, it works on single length.
 
print(f('[6]')) -> [6].
 
>>> f=lambda j:[int(x)for x in j[1:-1].strip(' 0,').split(', ')if int(x)]
>>> f('[0]')

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    f('[0]')
  File "<pyshell#2>", line 1, in <lambda>
    f=lambda j:[int(x)for x in j[1:-1].strip(' 0,').split(', ')if int(x)]
ValueError: invalid literal for int() with base 10: ''
>>>
only for single zeros, but still
@Morgan'Venti'Thrappuccino
 
7:32 PM
Ahhh, drat.
 
ikr
@Morgan'Venti'Thrappuccino also fails for [10]....
>.<
gives [1]
 
Yeah, I forgot that .strip('0, ') won't just strip that pattern, it'll remove all those chars.
@QPaysTaxes Sorry?
@QPaysTaxes Heheh, exactly. I blame the Python room.
@QPaysTaxes Wrong.
@QPaysTaxes Why do you say that?
We're only mean to stupid languages like JS. ;)
No, we have lots of exceptions.
 
@QPaysTaxes ಠ_ಠ
 
raise JSIsDumbException
 
Anonymous
I use Python a lot and I've never been in the Python room
 
7:38 PM
^
 
Anonymous
I also have a cute cat, so that should sway you back
 
I have two awesome dogs.
 
@QPaysTaxes I have 3 cute cats.
 
Anonymous
 
@Mego awwww @AlexA.
 
Anonymous
7:40 PM
I also have a large stuffed penguin
 
is not dog, but is cute
@Mego So you, the penguin, have a stuffed penguin and a cat.
coolio
 
A penguin owning a stuffed penguin seems... dark.
 
@QPaysTaxes I use Python and Ruby almost exclusively
 
@Dennis You mean like Goofy having Pluto as a pet? :P
 
Anonymous
 
7:42 PM
Oh, Mego. I may not be able to write Seriously docs for a few weeks as I will be busy with IRL stuff
 
Anonymous
What's really adorable is when the cat curls up next to the penguin
 
I do Python and Delphi.
 
Anonymous
@Sherlock9 Seriously has gone 6 months without any docs other than commands.txt, another few weeks won't hurt :P
 
Which is a great language, and a terrible one.
 
@Mego >.<
 
7:43 PM
I would do more Ruby if I immediately understood the logic instead of having to first translate my logic into Python
 
@Mego A relative?
<(^v^)>
 
Anonymous
@flawr No, I found him at a pound comic book store
 
So you saved him?=)
 
Anonymous
Yep
 
@Sherlock9 Same
 
7:44 PM
What a cutie=)
Does he have a name?
 
I just don't like Ruby's closure things.
  config.vm.provider "virtualbox" do |vb|
    vb.gui = false
  end
Bleh.
@QPaysTaxes I wouldn't mind them AS much if there was some "I'm starting a block" keyword.
  block config.vm.provider "virtualbox" do |vb|
    vb.gui = false
  end
I want something like that.
or with or something.
 
@Mego Your cat and penguin are very cute
 
That sounds even worse.
 
@ZachGates It's weird. Surely I should be able to transpile my ideas into some language other than my first programming language
 
@Sherlock9 Exactly same
s/exactly/mostly/
 
7:48 PM
And I'm getting better at that with Ruby golfing, but since I don't practice with Ruby outside of golfing, my Ruby code is not getting much better
I may end up doing so. But I'm not sure I can do so in the twelve weeks I have left in this term
Well, language design isn't the same as language creation. Just one step
The end result of this class is the paper. I can use it for my thesis, though
But the paper itself should be handed in by the end-of-term exams in July
 
Anonymous
@Sherlock9 danke
 
Anonymous
@QPaysTaxes My gf and I adopted the cat from the SPCA
 
It is 3 am and I am sick. I am cutting myself off from the Internet until a more reasonable hour and getting some sleep. Good day, folks
@QPaysTaxes I should do that. Thanks!
 
Anonymous
8:05 PM
Make Yet Another Brainfuck Derivative
 
Anonymous
@Rainbolt The usage of a JIT-compiling Python interpreter is irrelevant; the language standard is independent of the implementation. Also, it's CPython (Cython is something very different).
 
@Sherlock9 night!
 
Anonymous
PyPy and Jython can be used in place of CPython with no extra effort other than installing them (and the JVM, in Jython's case)
 
So it's apples to oranges when convenient for your argument I suppose
 
@Mego pics pls
 
Anonymous
8:11 PM
@EᴀsᴛᴇʀʟʏIʀᴋ I don't have any, and she's not doing it right now
 
Anonymous
@Rainbolt What do you mean?
 
If I compare the most popular Python implementation to the most popular Java implementation, I am comparing apples to oranges. But if I compare the popularity of PyPy to the popularity of HotSpot, you say its irrelevant.
You arbitrarily determine when my comparison is relevant
 
@Doorknob Ah, OK.
 
What does {kibro} mean?
 
@EasterlyIrk Internet
 
Anonymous
8:16 PM
@Rainbolt The comparison between any JIT compiler and any AOT compiler is meaningless, unless you are trying to compare JIT vs AOT approaches, because their differences will dominate any performance comparison. I'm saying that, if you want a better comparison between the languages themselves, JIT implementations should be used for both.
 
@Doorknob The dictionary said it was a gismu
 
Anonymous
In fact, the best comparison IMO would be between Java and Jython, because both would be targeting the JVM, and thus there's less extraneous factors that can affect the outcome
 
I'd argue that the comparison is meaningful. Why is it meaningless?
 
Anonymous
For the exact reason I've stated twice already and will now state for a third time: the differences between JIT and AOT approaches will be the deciding factor, not the differences between the languages themselves.
 
Its meaningful because they are the most widely used implementations of each language.
 
8:19 PM
But when it comes to KotHs, the only thing that matters is what the host chooses, right?
 
SO users aren't nearly as constructive in the comments as we are, wowza
 
Bots written by others should work regardless of how exactly a language is implemented, in general. Right?
 
Anonymous
Which download button is displayed most prominently on the respective websites should not be a factor in performance benchmarks
 
Anonymous
If you want to compare the most widely-used implementations, that's fine, but you should explicitly say that, and not say that you are comparing the languages, and also mention the caveats (JIT vs AOT playing a huge role in the performance). If you want to compare the languages themselves, you should minimize the extraneous factors (by using JIT compilers for both, and possibly using Jython so that both target the JVM).
 
Here's a challenge: find a benchmark that compares the Oracle JRE to PyPy or CPython, and I'll use it instead.
 
Anonymous
8:22 PM
Easy: I can run that first benchmark myself
 
I'd prefer you found an already established one
I think you're biased
 
Anonymous
No I mean I'm going to take the code from here and run it myself with Jython and Java 8, on the same JVM, and also with PyPy.
 
Anonymous
I'm choosing that one rather than the benchmarks you updated your post with because I can't find a simple way to download all of the benchmarks in the new one
 
So you're going to download the one you had problems with (you said the code could have been optimized) on your own machine and do what with the results?
 
Anonymous
The lack of optimization in the code was something I mentioned, yes, but it pales in comparison to the JIT vs AOT issue.
 
8:27 PM
What criteria do you use to determine whether a particular aspect of a benchmark is significant? I'm just curious
 
@quartata rofl
 
Java and Python are named differently. That's obviously not significant. Java was using HotSpot and Python was using CPython. That triggered something in your brain. What is that something?
Is it the fact that a better implementation exists?
 
Anonymous
Hotspot is a JIT-compiling implementation of the JVM. CPython is a AOT-compiling implementation of Python. That is a huge difference between implementations, not between the language design as the benchmark erroneously claims
 
Okay but there is still a difference between HotSpot and PyPy. Again I ask you, what made that particular difference trigger you?
What specifically is your criteria for determining when to claim that the benchmark is poor?
 
Anonymous
When the benchmark fails to account for significant differences between implementations that dominate the performance comparisons
 
8:33 PM
Are you going to account for the differences after you run your HotSpot vs Jython test?
I referenced a benchmark and Mego is tearing it apart
 
Anonymous
The differences (mostly) disappear with HotSpot vs Jython, because it's the exact same implementation running it. The only differences would be the language design and choices made when compiling the Java and Python code to Java byte code, which are much less severe than the differences between JIT and AOT.
 
Why aren't those choices significant?
"One factor dominates the benchmark; therefore, it is significant." is just a backwards thinking. That pretty much means it is impossible, in your mind, for one language to be significantly faster than another, because you'll just keep saying that the benchmark runner is comparing apples to oranges until the two runtime environments are almost the same.
I think using the two most popular implementations is the way to go.
 
Anonymous
They are significant, but there's no way to remove them, so they must be accounted for in the conclusions. Simply stating "X language is faster than Y language on this benchmark" is not useful. Giving explanations and reasoning why that is the case is useful.
 
@Mego So in other words, when I said "Is it the fact that a better implementation exists?" you could have just said "Yes."
If there's a way to remove them, it's significant. Otherwise, it's insignificant. That's your criteria?
 
Anonymous
@QPaysTaxes But if you don't account for all of the variables and their impact on the outcome, conclusions drawn from the experiment are useless
 
8:39 PM
Well, I edited my post to account for this anyway. I specified that the comparison was done using the most widely used runtime environment for each language.
 
Anonymous
@Rainbolt I never said that. Significance is a spectrum, not a boolean. When comparing Jython to Hotspot, the differences are more about the different choices in the language design than the different choices in compilation schemes, which is what you want to compare.
 
Anonymous
Consider the following: What if a benchmark was trying to compare GCC vs Clang, and ran the GCC-compiled code on a 32-bit computer with 4 GB of RAM and a AMD Phenom CPU, and the Clang-compiled code on a 64-bit computer with 16 GB of RAM and a Intel i5? The comparison would not be between GCC and Clang at that point, because their differences would be overshadowed by the differences in the hardware.
 
Anonymous
That's essentially what's happening with comparing CPython and Hotspot and saying you're comparing Python and Java
 
@Mego I don't want to compare language design choices. I want to compare languages in the sense that most people use the term. I download the JDK and JRE from Oracle. I download CPython from Python.org. That's what most people running a KotH are going to do. Trust me - I ran a KotH where I had to download 20+ compilers, and I didn't have time to compare all of the alternative implementations. I needed an implementation that was well supported and easy to use.
 
Anonymous
Python != CPython, and Java != Hotspot
 
Anonymous
8:44 PM
The benchmark is comparing the implementations, not the actual language design
 
It's comparing the implementations and the actual language design.
 
Anonymous
And it's comparing two vastly different implementations and getting results that are skewed by differences that have nothing to do with the language
 
@Mego CPython has "nothing to do with" Python?
 
Isn't the Meta post in question about a single-language KotH?
 
Anonymous
@QPaysTaxes In that case, for fairness, the benchmarks should include runs on multiple Python implementations (CPython, PyPy, IronPython, Jython, etc.)
 
Anonymous
8:46 PM
@Rainbolt The performance differences between CPython and Hotspot, for the most part, have nothing to do with the differences between Python and Java
 
Anonymous
That has nothing to do with my point, but I'm getting tired of trying to explain the same thing 10 different ways
 
Let's ask this: if you had to publish the result of a comparison between Java implementations and Python implementations, and you had to choose just one implementation, which one would you use and why? I guess there are multiple correct answers to that question. You would choose the two implementations with the fewest differences. I would choose the most widely used implementations. Neither of us is more right than the other.
So if you want to go post your own answer, go for it. I'm not going to start spouting off about logical fallacies in the comments of your answer, like you did on mine before you properly explained yourself.
 
Anonymous
Now you're making personal attacks, which reinforces my desire to be done with this
 
You did call out a straw man argument just before you properly supported your first comment, did you not?
And if you had read about straw man arguments, you would know that they are not fallacious if the intent is to shift the burden of proof. They are fallacious when attempting to prove one's own point.
 
Anonymous
I am done with this conversation
 
8:54 PM
I must have the last word (now I'm done too)
 
Anonymous
 
I told my brother than a penguin on the Internet was impressed that his name was two slots away from a famous dead animator.
I brought it up real casual like
He liked it
 
Anonymous
:P
 
@Mego pingu pingu
make it sound
 

« first day (1900 days earlier)      last day (2944 days later) »