« first day (2683 days earlier)      last day (2160 days later) » 
00:00 - 16:0016:00 - 00:00

12:13 AM
@Neil okay, will be fixed next time Dennis pulls
 
1:09 AM
:| when you have a 12kb program but you haven't even run it once
 
@ASCII-only That's how I usually program
 
correction: a 12kb program in C++
If the devil shows up when I actually run it I would not be surprised at all
 
1:50 AM
0
A: Sandbox for Proposed Challenges

dylnanFind unique elements based on given key Input Take a list of values xi each paired with a key yi. There may be duplicate values and keys, and they will all be integers. [(x1, y1), (x2, y2), ...] Output Return a list of values from {xi} such that for each unique key k in {yi} there exists ex...

 
2:19 AM
my name was changed
 
@KennyLau just change your parent user to PPCG (or change to a different site and back if needed)
 
oh thanks
 
 
2 hours later…
4:04 AM
0
A: Sandbox for Proposed Challenges

Jo KingASCII art uncompression from a base-n number This is inspired by an 05AB1E answer. Given two arguments, an integer and a string/list of characters: Translate the number to base-n, where n is the length of the string. For each character, replace every appearance of the index of that character ...

 
4:40 AM
@JoKing Charcoal, 8 bytes: ⭆↨θLη§ηι :P
 
Does someone know how to build mingw-w64 (on Linux)?
 
this also works (different input format): Charcoal, 8 bytes: ⭆↨θLη§ηι
 
Never knew the first atom, second atom, nor third-to-last atom was a thing. Is it because I don't know Charcoal like you and Neil do (aka gods of it), or the wiki isn't updated as often as it should be? Or is it both
 
I can't use the distro package since it has exception and threading models opposite of the ones I want.
 
@Zacharý It's all in the wiki >_> I actually had to refer to the wiki just now for the correct verbose name of the builtin
@Zacharý :| also third to last is like one of the most common things you need. how do you not know it yet
 
4:43 AM
I'm only a n00b who uses it once in a few blue m00ns.
 
@feersum Did you try (and fail)?
 
I don't know how to try
 
@Zacharý well tbh I doubt even DLosc is even familiar with half of Charcoal anymore (the non-ascii-art focused part)
 
Who da heck is that?
@ASCII-only AKA the useless part :P
 
@Zacharý :| like the guy I collaborated with. see the start of the Charcoal chat
 
4:46 AM
Ah. Emphasis on the past tense, no?
 
@feersum brb, trying to install on linux
@Zacharý Yeah. He appears to not be as active on TNB anymore (but he was here yesterday, and he's now in the QBasic chatroom regularly). He's also the guy who started language of the month
 
5:01 AM
@feersum try downloading source from here -> ./configure -> make maybe
 
Oops I forgot to mention I also need a specific version
Do you see a place to select by version?
 
@feersum yeah. i downloaded from here
hmm. actually you need to specify build/host
and apparently mingw-w64-doc/howto-build/ is a thing :/
 
Man, these are like, random numbers.
I need to correlate them with the gcc version.
 
5:17 AM
@feersum apparently you're supposed to download it separately (from here)
 
At least that one lists the version I want.
 
6:20 AM
0
Q: Monitor Boolean value change for first time

GeekWithGlassesI am not concerned about the language, I want logic. Preferred language is java. Q : I have Boolean variable called "contains" contains = false; // true means you are inside the perimeter else outside the value of Boolean variable contains keeps on changing randomly. In interval of few second...

 
 
1 hour later…
7:28 AM
Trying to interpret a seemingly golfed makefile...
What option should I pass to make to control the exception mode?
Oh well I guess I can just delete all the modes except the one I want directly in the file.
 
I'm not wondering what they mean.
I just want to choose the one I want.
 
yeah. it appears to be <default> <fallback> wait you can probably tell that too >_>
in that case, idk what you're asking. the abbreviations used for all three methods are all there
 
I was thinking this must be some idiom that lets you choose the mode by setting a command line argument to make or an environment variable.
 
@feersum what are you referring to by "this"
@feersum also, hang on, yeah it is. brb, checking how to set things
 
7:42 AM
Anybody know of an existing (Windows) tool to notify me when any single application hammers the processor for more than a second?
 
@Adám task manager
 
Is your case too well insulated against sound?
My one regret about purchasing an SSD is that I can no longer detect applications that are inappropriately hammering the disk.
 
@feersum I have too many cores for a single run-away to be very noticable.
 
@Adám what do you have, an i11? :P
 
1 core spinning is quite audible on my machine.
 
7:44 AM
@ASCII-only :-P i7 8 core/16 thread
@feersum After a while, I start hearing the fan. But I'd like to get notified before the whole machine has heated up.
 
@Adám windows performance monitor might help?
<- has laptop tablet with no fan
 
I should write an applicaiton that just makes a KRRRRKRRKRRR sound with volume proportional to the disk I/O rate.
 
@feersum :O this is good idea. 10/10 i would totally install since I have a SSD too
@Adám yeah, looks like performance monitor is your best bet
@feersum ah. try make VARNAME=value. to verify it's doing the right thing do @echo $(VARNAME)
 
@ASCII-only Looks like the right tool (back in 2003). But in best MS style, they removed the alert feature since.
 
@Adám yeah. task manager is surprisingly not-very-useful
 
7:51 AM
@ASCII-only Wonder if I can install the XP version…
 
@Adám you could probably run that as long as you set it to XP compatibility mode
 
I need this, but for my local machine.
 
@Adám hmm. apparently I can add alerts?
 
@ASCII-only Where? My right-click menu doesn't have such an option.
 
@Adám create new data collector set -> create new data collector alert
 
7:58 AM
@ASCII-only Where is create new data collector set? nvm, found it
@ASCII-only All too complicated. What do they think I am? A programmer? Oh.
 
@Adám Hmm. I wonder how many people would install a program/set of programs that make(s) Windows (and/or MS Office) 100x easier to use
 
@ASCII-only Depends what easier to use means. If it means (good) GUI access to detailed system info and actions, then that's probably hard to make. Think of Linux. How many people use GUI tools for things like that?
 
@Adám IDK. But what I do know is that Linux GUI tools are far superior to Windows'
 
@ASCII-only What Linux GUI tools?
 
@Adám Ubuntu's?
since Ubuntu is meant as a 1. beginner's Linux and/or 2. an alternative OS for ancient computers
that actually runs, instead of Windows that would completely kill the computer
example: Ubuntu's task manager actually has Ctrl+F. how insane is that
 
8:09 AM
@ASCII-only Windows's doesn't need Ctrl+F; just start typing.
 
@Adám old man pavel shakes his cane at your gui tools
ps
htop if you're really fancy
 
@Adám sure. that sometimes works. but 1. you have to type at a decent speed (not a problem for me, but still, this is the OS that everyone and their grandpa uses) 2. it's a massive pain if you have multiple processes with the same name, even more so if you're not sorting alphabetically
 
@ASCII-only third-to-last?
 
@Neil the third to last character (AtIndex)
 
 
1 hour later…
9:50 AM
0
A: Sandbox for Proposed Challenges

Kevin CruijssenTernary-if Converter code-golfstring In Java/.NET/C/JavaScript/etc. you can use ternary-ifs to shorten if-statements. For example (in Java): // there is some String `s` and some integer `i` if(i<0)s="Neg";else if(i>0)s="Pos";else s="Neut"; Can be shortened with a ternary-if to: s=i<0?"Neg":i>

 
10:46 AM
Have people already talked about Microsoft acquiring Github?
 
@PhiNotPi In the bridge, yes
 
Let's just start our own git website to fit our purposes. Call it "Hitgub" or something.
 
@PhiNotPi ppcgit
or maybe just cgit
apparently cg.it is unassignable :/
@PhiNotPi which github clone would we use though? or would it be more of a minimalist thing like TIO
 
I haven't put any real thought into this, but I was just envisioning something pretty much exactly like github but not owned by microsoft.
 
@PhiNotPi there's like 100000 of those already
I remember seeing this organization (I think?) using a clone of a clone >_>
 
10:59 AM
What features do you think PPCGers would appreciate that most sites don't have?
 
@PhiNotPi TIO's escape mode for one
no more memorizing keyboard shortcuts
also fast load times (i.e. small pages). TIO does this extremely well. everything is on one page which is pretty amazing
 
(P. S. This was literally a joke comment at firsr, but if people actually want to make something then let's go for it.)
 
@PhiNotPi yeah (re: joke comment). everyone would probably just move to GitLab
it's not like the GitHub-style interface really lacks anything
@PhiNotPi GitItOnline
 
We got any major group projects going on right now?
 
not really. Unless you count Axtel (aka PPCG v2), being worked on by Mego and Downgoat
I have a bunch of kinda-major projects, but they're not group projects :P
 
11:15 AM
I'm making a new website right now... I need to figure out some cool things to post on it... maybe figure out how to make those cool interactive infographics.
 
anyone here that knows C++: are reference fields deleted if parent object is on the stack? e.g. foo has property bar*, is bar* deleted when foo goes out of scope?
@PhiNotPi d3.js is how
@PhiNotPi oh, also: what for
 
> because most neuroscience websites are actually graphic design firms
:|
is this for real
@PhiNotPi clearly the best brain graphic design is odin from tacoma
 
@ASCII-only that's a reference that you're not gonna get. One time my research mentor and I were browsing the website of some neuro-tech company and were roasting it as a graphic design firm because it was all concept art but nothing functional.
 
@PhiNotPi :| wow that sounds like a terrible company
 
11:34 AM
I guess I was inspired to make a website because I think there's a lot of cool neuroscience stuff that could be make more accessible to people... being in research has made me realize that there's a lot of nonsense out there.
But the real reason is that I saw this domain name was available.
 
@PhiNotPi well it is the .space TLD, so not surprising that most things aren't taken
@PhiNotPi also. define "cool neuroscience stuff"
 
Below room temperature.
 
ah. so like frozen slices of brains
 
@ASCII-only needs destructor somewhere (e.g. by using unique_ptr to save you having to remember to do it yourself)
 
@Neil that's not the problem. the problem is the reference appears to be disappearing without me doing anything to it
(well, basically the memory appears to be freed while there are still references to it)
@PhiNotPi so stuff like this? (i'm assuming this needs storage at below room temperature)
 
11:43 AM
Gosh, it should be a crime to hug a domain and not use it. Nothing in outer.space nasa.space esa.space my.space no.space make.space
 
@Adám yes definitely
@Adám well tbh i'd expect nothing (well, nothing much) in outer.space
 
@ASCII-only At the very least it should have <body style="background:#000"></body>
 
@Adám yeah. and a canvas you can drag that shows a single white pixel every few hundred screens
 
@ASCII-only Gross exaggeration of the density of outer space.
 
@Adám *every few billion screens?
 
11:48 AM
I'll buy inner.space, and it'll just be stock images of basements
 
@ASCII-only sure, that's interesting
 
@Mayube All the good ones are hugged.
 
@Mayube *stock 360 images
 
radix.website/dot-space they list 261,687 .space domain names but only 89,387 websites.
But that website count probably includes parked pages.
 
How can I check whether a domain is registered?
I tried 5 sites and they were all incredibly spammy and I couldn't find any actual information from a search.
 
11:54 AM
.website Seriously‽
 
@feersum whois
 
@ASCII-only ?
 
@feersum e.g. whois.net
although I guess it looks kinda shady
 
That's one of the useless, spammy ones I tried.
 
@feersum who.is
 
11:57 AM
 
godaddy
 
who.is seems to be OK.
 
@Neil hmm. so it is a lifetime issue, but I'm not sure why C++ is deleteing a reference (unless MyType(foo, new bar()) is something I should never be doing)
@anyone else who knows c++ ^
 
C++ is not garbage collection. It won't delete anything on the heap unless you tell it to.
A local object will be destroyed when the function returns.
 
new shouldn't be creating a local object right
 
12:09 PM
No, that's the heap.
 
oh. i'm an idiot
i delete it in the destructor :/
 
delete should be rarely used if you have at least C++11.
 
12:25 PM
@Pavel Sorry, I just saw this. I tend to not be very active on weekends. Did you read the docs? It looks like you need to set -ForegroundColor and -BackgroundColor separately for each -Token, rather than as a hashtable like you have.
 
0
A: Sandbox for Proposed Challenges

BarnettIntroduction Often computers are used to perform consecutive jobs. Sometimes the order of doing these jobs does not matter. Other times there are dependencies between jobs that restrict the order that jobs can be performed. Additionally, jobs may require significant resources to store results, s...

 
12:41 PM
0
Q: Sending python package to a friend

user80920I want to send a python package to a friend, but I don't want him to see the code, he should be able to just execute it. What should I do?

 
@NewMainPosts um, the term is to compile the code :P
 
12:58 PM
0
Q: Animate Jacob's ASCII Ladder

Engineer ToastYou may have seen Jacob's Ladder in children's science museums. If you're not familiar with what they look like, there are several images and video examples on the Wikimedia Commons. The challenge today is to create an animated ASCII version of the electrical gadget. In the end, it should look so...

 
Anonymous
@AdmBorkBork Oh please no
 
Oh please yes, always hated GitHub's UI. Let's all switch to GitLab!
 
I don't see it as being an immediate bad thing
 
@NewMainPosts Now at -3.
(Meta: Should we stop giving suggestions to improve the question too?)
 
lol the parse tree for 1 > 2 | 3 ^ 4 & 5 >> 6 + 7 * 8 ** 9 @ 10 looks cool
('number', '1') ('symbol', '>') ('number', '2') ('symbol', '|') ('number', '3') ('symbol', '^') ('number', '4') ('symbol', '&') ('number', '5') ('symbol', '>>') ('number', '6') ('symbol', '+') ('number', '7') ('symbol', '*') ('number', '8') ('symbol', '**') ('number', '9') ('symbol', '@') ('number', '10')
Statement
   LogicalNot
      'nots': 0
      'base': Comparison
            'values': [
               BitOr
                  'values': [
                     BitXor
                        'values': [
(warning long message)
 
1:21 PM
> which is a simple Hangman game
Right.
 
I dont know if OP realize that its off topic and pretend as if they dont, hoping somebody would answer or just somehow dont notice/understand the off topic comment.
Thoughts?
Ofcourse this is not the first time that happens.
 
OP thought that Erik was saying the post was fine ("your question isn't clear") even though he was saying it would be closed on SO too.
 
@HyperNeutrino Nothing interestin... wait why is it that long?
 
Because just 1 parses to a comparison chain of length 1 of sums of length 1 of products of length 1, etc.
(I hope OP gets the point that this question doesn't belong here with +0/-3 and deleted)
 
(Warning there is no"show less text" button on mobile. DO NOT click "show full text")
 
1:24 PM
('number', '1')
Statement
   LogicalNot
      'nots': 0
      'base': Comparison
            'values': [
               BitOr
                  'values': [
                     BitXor
                        'values': [
                           BitAnd
                              'values': [
                                 BitShift
                                    'values': [
                                       Sum
                                          'values': [
                                             Product
that's for just 1
 
lol
 
should I change that or is that normal for parsing
 
@HyperNeutrino there should be a better way...
 
That's not normal.
 
1:25 PM
(although idk of one)
 
@user202729 does it go indefinitely long though, I thought it gets a scroll bar at some point...
 
I can probably fix that
 
Some of them don't even make sense. How can it be a "call" of any kind?
 
@HyperNeutrino Um ...
 
you call 1 0 times
also I fixed it with like 3 lines of code
now it's this
('number', '1')
Statement
   LogicalNot
      'nots': 0
      'base': BracketCall
            'base': Value
                  'front': []
                  'inner': Literal
                        number
                           1
                  'back': []
            'argument_lists': []
            'calltype': []
I can probably get rid of the LogicalNot and BracketCall in like 2 lines each as well
 
1:26 PM
@HyperNeutrino And that's why I only used modgrammar for tokenization, it still gets ugly as heck though
 
@Zacharý lol yep
 
Hold on, I'll pull up an example
 
If you're using a library for parsing, try not using a library. It's much easier that way!
 
The rest of my code is done by hand.
 
@feersum yep I agree this is so much easier than using modgrammar
 
1:30 PM
@feersum Regex?
 
Modgrammar is perfectly okay ... as long as you don't use a crap ton of recursion.
 
@user202729 No.
Regex is good for tokens though.
 
I hope I can just give sandbox feedback from TNB. Sadly not everyone are pingable.
Can we make a bot for that? Make NSP detect reply to messages and the Sandbox bot post a comment.
Can NSP be configured to detect reply to answer?
The sandbox is a bit... slow.
 
No because it's a feed that just dumps messages into here whenever an RSS update happens
 
Anonymous
@user202729 Not easily. NMP/NSP/NmP are just dumb RSS feed readers
 
1:35 PM
@Mego Then... at least (Sandbox) is an actual account.
 
readers? no, they're negative accounts, the job is done by TNB itself
 
It can detect if anybody reply to NSP and act.
 
Anonymous
Yes, and we could hook up a program to read chat, parse replies, and make comments, but I don't know that we want to do that
 
Then...
CMP Do you want to do that?
 
yeah I don't think we want to do that...
 
1:36 PM
No
 
ninja...
 
sigh
Looks like I will just write my own bot for that.
 
I saw the results of this somewhere but I cannot find them. Can anyone send a link again?
 
I don't think those are results...
 
Anonymous
1:37 PM
@user202729 "We don't want to do that" should not mean "I should do that"
 
@EriktheOutgolfer I don't think you've read the message correctly?
 
The message with "tnb stats" link.
 
@user202729 Thanks
 
@Mr.Xcoder i.e. the poll is still ongoing, there can't yet be "results"
 
@Mego But I can write my bot for that. Nothing prevent me to do so.
 
1:39 PM
bots are generally disallowed in here...
 
Anonymous
Other than the fact that mass-commenting with a bot when it is undesired would get you suspended really quickly
 
@EriktheOutgolfer Then just run it in another room. Not a problem.
@Mego "mass"?
 
@user202729 or just post the comments yourself
 
Anonymous
@user202729 Your idea was to use a bot to post comments to Sandbox posts on NSP replies, right?
 
Anonymous
There's quite a bit of potential for abuse
 
1:41 PM
@EriktheOutgolfer The problem is that the sandbox can be slow. Not sure if it worths the effort, but technically I can do it.
@Mego Yes.
@Mego Ah, I see what you mean.
@EriktheOutgolfer Non posting bots are ok.
 
@AdmBorkBork no longer a rumour, github now has a banner thing on top that confirms that
 
@AdmBorkBork Oh god no
@Christopher ._.
 
> GitLab sees huge spike in project imports [Hacker News]
 
@Christopher yep, time to migrate all my projects to gitlab before microsoft destroys GH
 
1:46 PM
hah
 
For the millionth time. Microsoft will not ruin github
just like they didn't ruin Minecraft
 
@Christopher At least not immediately
@Christopher ._.
 
@Christopher btw that link seems to be exclusive for subscribers
 
wat
 
1:48 PM
idk I clicked it and it tells me to subscribe to read
 
@Christopher was already ruined by 1.9
 
ngn
@Cowsquack I re-registered with GitLab about an hour ago and I still don't have an email with a confirmation link...
 
@J.Sallé huh now when i visit it i get the same thing
 
@Christopher Weird. That one works though
 
1:49 PM
Yep
 
That's a big chunk of change
 
Microsoft said it is already the most active organization on GitHub, with more than 2 million "commits," or updates, made to projects.
Very true
 
ngn
@Christopher they're just gonna skype it :)
 
:|
My dad works on GVFS and his Boss's boss is the new CEO
 
What are some other tech acquisitions in the 5-10 billion range?
I'll bet there are some fairly useless things.
 
1:54 PM
Minecraft was only bought for $2.5b, and that thing is huge
Verizon bought AOL for $4.4b
 
I mean Minecraft's been kind of declining in popularity lately because of the long delay in 1.9 (no new items or stuff for survival players) and then the combat update (terrible for PVP players)
 
Verizon also bought Yahoo for $4.8b
 
other than observers and maybe structure blocks I don't really think they've done much
gamechanging stuff since 1.9
 
OTOH, there's this:
> PetSmart has agreed to make the biggest e-commerce acquisition in history, putting a deal in place to snatch up fast-growing pet food and product site Chewy.com for $3.35 billion
haha, is this 1999?
 
2:00 PM
Hello Microsoft OneGitHub Live 2018 Pro SE!
12
 
It's the last version of Github!
 
hey, why is the Pro version divided into Student Edition and who knows what?
 
Honestly, I only see good things ahead
 
@Adám I thought you meant SE as in Stack Exchange (new SE site) at first /facepalm
 
2:04 PM
7 mins ago, by Pavel
@ngn https://www.reddit.com/r/ProgrammerHumor/comments/8oc8d4/github_2018_ft_microsof‌​t_is_gonna_be_like/e02ukjr?utm_source=reddit-android
 
It's not like being evil would be effective anyway. The design of git makes it extremely easy to migrate to another platform.
 
Would using tuples rather than lists for ...[... ; ...] be hacky?
 
@Zacharý What language?
 
For RAD, implemented in Python. (The internal value of a;b would be (a,b)
 
ngn
@feersum Git is only a part of what GitHub is (was?). Issue trackers, wikis, stars and followers are not so easy to migrate :(
 
2:17 PM
@ngn Gitlab has an automated tool for that
 
Issue trackers would be somewhat annoying to migrate, I suppose. Wikis seem fairly easy. Stars and followers have roughly zero value.
 
i want to write a golfing language but can not do so :(
 
ngn
@Pavel oh, that's cool! and I've finally received my email confirmation link from them :)
 
@ngn People have been using it so much recently it apparently crashed
 
2:21 PM
@BoraCalim Try stack-based where every single command is one byte. Not as good as Jelly, but it sort-of-works.
 
@Pavel ^^ yeah look at the rate-limit hits
 
I don't think anything bad will happen to GitHub, but having backups on another git hosting site just makes sense.
 
Why do you need another hosting site for backups? Literally every person who uses the code has a backup.
 
ngn
@feersum stars and followers are kind of important to me
 
@ngn That's just a list of usernames or URLs.
 
ngn
2:24 PM
@feersum but when you move to a new hosting service, you lose any social standing you had before
 
lol
 
@zachary i will try thanks
 
I coulda been a contender!
 
@feersum What?
 
I think everyone needs to stop panicking
 
2:28 PM
> Microsoft is acquiring GitHub! Read our blog and Satya Nadella's post to learn more.
Noooooo! :((
 
@Mr.Xcoder No, see, this isn't actually a bad thing
 
@Pavel Not yet, at the very least
 
And it probably won't be
 
Yeah, but still. Noooooooo... I liked GH
 
i do not want m*crosoft
 
2:30 PM
As someone (I forgot who) pointed out earlier, MS is only terrible if you're a user (as opposed to a developer).
 
First of all, microsoft depends on GitHub a lot, so it's in their interest to make it as good as possible.
Second of all, microsoft has, in recent years, been doing excellent work targetting developers, especially open source developers.
This is most likely going to be a good thing.
@Mr.Xcoder And it's not going away anytime soon
 
2:42 PM
0
Q: Which number is bigger?

l4m2Define f(a,b) := a if b=1; a^f(a,b-1) if b>1 (Tetration) for positive integers a and b, given four positive integers a,b,c,d, compare f(a,b) and f(c,d). Your program should output three constant values to mean "greater", "less" and "equal". Samples: a b c d f(a,b) output f(c,d) 3 2 2 3 27 >...

 
not for me. dont like complexity stuff
 
@BoraCalim What does that even mean, and what does that have to do with GitHub + Microsoft
 
@Mr.Xcoder for physica, it would be nice if functions like KineticEnergy take in optional kwargs, like KineticEnergy[m=5,v=4.6]
 
Hmm, that's true. If I'll find a parsing workaround to that, I'll sure implement it
 
2:56 PM
also have you considered not transpiling physica to python?
as in interpreting it directly
 
Physica?
 
you have ÷ for division but no × for multiplication D:
 
Hey, I'm sort of new to python and I'm trying out some code golfing - does anyone know a shorted way to append to a list than a.append(b)?
*shorter
 
@Cowsquack Yep. But that is a bit too ambitious for now. I'll try to rewrite it and make my own custom interpreter after the exams, so that's been on the TODO list for a while :DD:
 
@TreFox a+=[b]
Creates a new list instead of changing the old one
 
3:03 PM
Thanks! That works
 
@Cowsquack ÷ is solely there for integer division. I wouldn't have it otherwise. Is there an equivalent function × might have, or would it be just an alias for *?
 
@Mr.Xcoder Cross product? Matrix product/element-wise (whichever one * isn't)?
 
Oh that's a neat idea.
I might do that.
 
do cross product/matrix prod and multiplication or just one of them?
 
@Cowsquack Either or. As in, either both or just cross/matrix product
 
3:07 PM
why not overload it? looks like it is being overloaded
 
I'll implement it as matrix multiplication for now and it'll be just multiplication when given two integers. I might do cross-product instead when I finally set up a class for vectors and units for measurement D:
But note that I won't request a pull right away after implementing it.
 
I think this will be easier if you interpret the language (also might make it much faster)
 
Implementing infix operators like this is very easy using the current transpiler but I do plan on writing a proper, custom interpreter.
 
Ok does anyone see a way to golf this for a function that returns a fizzbuzz list [1,2,Fizz,4,..]?
return [i%3/2*'Fizz'+i%5/4*'Buzz'or-~i for i in range(100)]
I used tricks I know from other languages, so it's mostly the basic python stuff that I'm worried about, like that verbose for and range
 
Remove the space between return and [.
 
3:14 PM
Remove the space between return and [
 
Oh my god exact Ninja :)
 
That was creepy :P
Thanks!
 
And if you're using Python 2, you may as well use print instead of return for -1 byte.
 
3:35 PM
Wrong window
 
@AdmBorkBork Thanks, I figured it out. On another note, do you know how to check if stdout is a tty?
 
@Pavel Get-Host may have the info, maybe?
 
Doesn't seem too
 
I know that can differentiate between the PowerShell console and the ISE
 
get-host and get-host|cat give the same value
 
3:48 PM
There might be some way to determine it via the Stream class‌​, but I'm not familiar with that class, so I don't know.
 
@Cowsquack Done :). I've heavily overloaded it. For two numbers, it returns their product; for two lists, it performs element-wise multiplication, cycling the shorter one if needed; for a number and a list it multiplies the number with each entry in the list; for two matrices, it returns their product.
 
nice!
 
@AdmBorkBork Mm, any idea how to call a C function (from a dll)? Maybe I can borrow isatty from there.
 
No, not something I've ever worked with.
 
Alright, I'll try to figure it out
 
00:00 - 16:0016:00 - 00:00

« first day (2683 days earlier)      last day (2160 days later) »