« first day (2413 days earlier)      last day (2427 days later) » 

12:03 AM
@Downgoat Is it not open-source? github.com/elendiastarman/tnbde
 
oh ok, sorry >_< I've apparently even starred it already so not sure how I forgot :| :P
 
♪There's a starman waiting in the sky!♪
 
@Downgoat you have a really cool name btw
Also ur blog is rly cool
@Downgoat If you left TNB i think I would miss u the most
 
12:28 AM
@El'endiaStarman made a PR for TNBDE
Also would it be OK if I did a PR with some design change (fonts, etc.)
 
@2EZ4RTZ uh what? yes you can
@2EZ4RTZ also that means it's way too slow :P
 
@ASCII-only yeah C is slow sometimes
Also is there a way to have it CUT lines not COPY
 
@2EZ4RTZ wat how
@2EZ4RTZ huh what
@2EZ4RTZ oh yeah of course, why wouldn't there be
 
@ASCII-only idk how tho?
 
@2EZ4RTZ pls use google...
 
12:38 AM
sed -e '1,3d' < t.txt
 
@Downgoat Oh sweet, syntax highlighting! Given your screenshot, I presume you've tested it? Also, did you make that change for both the SQL and JS text areas?
 
@El'endiaStarman Yeah, both textareas have the syntax highlighting editor, I also updated the JS too.
 
oh also hi @El'endiaStarman it feels weird seeing you in TNB for the first time in ages haha
 
@ASCII-only Heh, I'll bet...
 
@WheatWizard Do it in Jelly/J/05AB1E instead maybe :P
 
12:40 AM
I haven't been in here since February 9.
 
@ASCII-only but won't it mess up with the script looping?
 
@ASCII-only That is an eventual plan
However right now I know one of the TAs and he was going to talk to my TA about Brain-Flak.
 
better idea: learn charcoal and submit an issue for the commands i'm missing (basically all of them) :P
 
@ASCII-only is REPL crash thing fixed in charcoal (and REPL clear?)
 
@Downgoat idk, you can pull and try if you want
 
12:42 AM
btw is there docs or do I need to check source
 
@Downgoat there's a wiki if that's what you mean
but it's very incomplete
 
:( 9/10 for github wiki
 
@Downgoat too lazy to make a RtD one, plus it's so much more convenient
 
you can use gitbook or I can make JSON doc format => HTML if that would be useful
 
@Downgoat I prioritize usability far more than fanciness. With that in mind, sure, you can make a PR for that kind of thing.
 
12:46 AM
@mods could the Charcoal room be unfrozen?
 
@ASCII-only yeah I can't get the script to cut instead of copy
 
@El'endiaStarman dumb question: how do I run the website? I tried doing python3 __init__.py and python3 apps.py
 
@ASCII-only after much googling I can't figure it out. I need it to cut the lines as it goes but that will screw up the looping if I just cut it with tail
It is sad that PPCG is better for help with code then SO chats :P
 
@Downgoat Yer gonna need Django. Specifically, you'll need to create a Django project and stick the repo's code in there.
I didn't include the surrounding stuff in part because some of it is sensitive data (like a secret key) and in part because it's almost trivial (assuming you have experience with Django).
Oh, and not only that, but the database engine is Postgres, so you'll need a Postgres server running locally too.
 
1:28 AM
I was thinking about creating a Python 3 -> JavaScript converter as next big project
Entire python standard library is out of scope but I don't think python syntax will be too hard
 
I would be quite surprised if there wasn't one already.
 
@Downgoat builtins would be easy
 
@El'endiaStarman there are python interpreters in JS but those are slow and cluncky
 
I'm thinking of making a Proton -> Python 3 converter maybe. Probably not because Proton is slow and clunky but I can just tokenize+parse and then un-parse the program.
 
1:30 AM
actually don't read it's really bad
 
I was thinking of outsourcing parsing to a parse.py which would use parse lib to parse files and then convert that to JSON to send to other program
 
@Downgoat I think I remember something in the Python docs saying not to do that very thing.
 
@Challenger5 link?
 
I don't know exactly.
It might have been some sort of FAQ
 
obtw I might be starting a new practical language (getting deja vu yet?)
 
1:32 AM
@HyperNeutrino alternative idea: jump on VSL train :D
 
VSL is pretty great
 
@HyperNeutrino I feel like I'm reliving the same few weeks over and over again :P
 
yeah I know what VSL is (Vaccinated Seal Laughs :P) but like how is that alternative idea to making new language
@ASCII-only hey at least it gets slightly better each time... (I hope?)
 
@HyperNeutrino how is it not alternative idea?
 
1:33 AM
@HyperNeutrino you can help with VSL instead of start new lang. we have lot done on VSL but have a lot to do
 
especially if a lot of people are complaining how it's too different to normal languages
 
o I see
@ASCII-only complaining about what; my languages? :P
 
especially since I have 0 idea how to efficiently LLIR
 
@HyperNeutrino VSL
 
@Downgoat I have 0 idea what that is lol
@ASCII-only o ok
 
o cool thx
 
@Downgoat that must be avocadOS backend (hmm I kinda want to continue that but it would be so much easier with VSL)
 
it has does really cool optimizations on exec graphs I can send you pdf if you want
 
also VSL is written in JS so my help would be extremely limited
 
also there's the fact that LLIR needs like 10 parsers to be built for visual generation of Terms and TermQueries
 
1:35 AM
rip
 
> hasn't worked on it in last 4 days
@Mr.Xcoder O_o you work on it that much?
 
@ASCII-only btw I have question
how do we do contentfold
do we use UInt64Arrays or something
 
@Downgoat contentfold?
 
@ASCII-only constant folding for VSL
 
1:38 AM
why uint64arrays
 
like we should be able to fold "abc" + "def"
but String class uses binary pointers
 
@Downgoat we should fold before assigning pointer locations
 
@ASCII-only yes
so how do we fold "abc" + "def"
we would want constant folding to work on user-defined structs too
and even if not, String class's + that we need to fold is written in pointer-managing
 
we either 1. write a basic interpreter, 2. implement operators etc, or 3. skip for bootstrap
 
@cairdcoinheringaahing lol my vacation starts about a month earlier and ends at the same time :P :P :P
 
1:41 AM
@ASCII-only but constant fold very important
:| how do we define ARCH now
 
I mean we can still do constant folding without manipulation
Operators for primitives too
 
oic
wait we don't even need to do LLIR for bootstrap
we can just make crappy slow compiler
as long as it compile
 
yeah
 
we can even just make VSL -> JS backend
and then rewrite in VSL and then write fancy LLIR compiler
 
:P good idea actually
 
1:44 AM
can u c9 for vsl atm?
btw we have to fix coverage but I'll merge anyway
ok lemme merge and I'll add to backend branch
 
@Downgoat okay
 
1:59 AM
if you aren't already convinced how horrible NPM is, just go here and type in the name of a common dependency (e.g. babel-cli)
 
@Downgoat if who isn't convinced
 
was general message in TNB
so like if you are reading it then you are the you or if like ATaco is reading it he would be you
 
@Downgoat TIL I am me
 
2:15 AM
Can I get people to test this? (cc @JonathanAllan I fixed the 2^2^2^2 thingy; there was a major issue with the way I was recursively evaluating the parse tree)
 
@HyperNeutrino exponent evaluation is still LTR, it should be RTL
 
o
crap whoops I can fix that hold on
can you give be a test case where LTR vs RTL would change the result
too lazy to math rn
 
4^4^4
literally anything but powers of 1 and 2
apart from power, all numbers evaluate to 1, -1 - 1 doesn't work
 
o ok
o um I see where that went wrong
 
wait no unary negate yet, ignore the second part
 
2:23 AM
how about now: repl.it/KkTX/66
 
@HyperNeutrino exponent is still broken :P
 
well I mean I didn't do RTL yet :P
 
everything else seems fine
 
That was easy: repl.it/KkTX/67
literally just value **= subval -> value = subval ** value
anyway gtg o/
 
@HyperNeutrino ... no
now 4 ^ 4 ^ 2 is broken
 
2:27 AM
@ASCII-only apparently there are still a lot of borks in parser + recursive type can u join c9 if u can
 
:| there are?
 
3:07 AM
@Downgoat Lonk?
 
3:19 AM
@ATaco yo solo hablo ingles, senior taco
 
3:30 AM
No habla los salchichas.
 
Do we have a "print all the integers from 1 to n" (where n is input) challenge?
(If not I claim posting) similar to this
 
@ATaco this don't make sense even in english
@MDXF no but 0/10 really bad idea will downvote into oblivion if posted
 
what why
 
@MDXF 1 Byte. R.
 
@MDXF Cheddar, 2 bytes: |>
doing that is like having challenge to do n + 1. it's stupid
 
3:35 AM
This wasn't downvoted into oblivion
 
it should have been but HNQ
 
watches two downvotes immediately come in
 
people from SO are like "omg how dis jel-o do in 1 byet XD +1 so creativ"
 
Fine fine this will go to waste :(
 
3:37 AM
WHAT
oh wait holy shit anything will be upvoted if it's easy enough
aww and it even uses bonuses
I guess we have a new worst challenge of PPCG
 
1 byte for 2^32-1 R, 3 bytes for arbitrary, #p;
 
3:50 AM
0
A: Sandbox for Proposed Challenges

LyricLyRemove ambiguous plurals! code-golf string Programming is very rigid. You can't tell a program to "print the banana count", you have to tell it to print the bananas variable. But when you do that, you end up with a problem: you don't know how many bananas you have beforehand, so you don't kno...

 
0
Q: Count edits accounting for grace period

xnorWhen you edit a post on SE, any further edits within a 5-minute grace period are merged into it. Given a list of times you edit a post, count the edits not in a grace period. Say you edit at minutes [0,3,4,7,9,10,11,12]. This results in 3 edits at times [0,7,12], with the rest happening in their...

 
4:41 AM
0
A: Sandbox for Proposed Challenges

LyricLyIs it a strong word? code-golf string They say that hate is a strong word. I wanted to find out why, so I had a good look at the word. I noticed that every consonant had a vowel after it. That made it look quite strong to me, so I decided that that's what makes a word strong. I want to find ...

 
Go check out this cool answer, really creative use of "get"
 
5:02 AM
@Adám I noticed you're giving a talk called "Literal Notation for Arrays and Namespaces". Are you secretly trying to make Dyalog golfier? :P
 
@Pavel Golfier? No, just better. I'm proposing a notation which allows even rank, nut just depth, as currently. I'm also proposing a notation similar to JSON for APL objects ("namespaces"), and a couple of other things. I already made APL golfier with which is {(,~~⍵)/,⍳⍴⍵} in version 16.0.
Although I guess my new notation can save space sometimes.
 
I'm fascinated by APL, but it seems like too much effort to actually learn properly.
Having to learn a new keyboard layout really puts me off.
 
@Pavel I'll be happy to help.
@Pavel You don't have to. There is always a language bar you can use to enter APL symbols, and if you use the RIDE interface, you can enter keywords that are then auto-translated to symbols. That being said, I learned the entire keyboard in an hour when I was 12. I'm sure I could teach you most of it very quickly.
 
I guess I have no excuse then.
Is there a free version of dyalog for students, by any chance?
 
@Pavel Nope, head over to the APL chat room and get started.
@Pavel Even for non-students. The personal licence is completely free.
@Pavel Personal and Educational. They are completely equivalent. We only have both because the personal one used to have a small fee, but now they are both free. I hope to convince management to give up on the registration soon.
 
5:17 AM
Thanks, I just applied for a personal license.
 
@Pavel Nice. Karen should approve you within a couple of hours when she comes in to the office.
 
5:30 AM
What's the shortest way to reverse an array in J? I have <:@(-i.)@#{[
 
@Cyoce |.
 
...
Uninstalling life..
 
5:42 AM
I want to star the above conversation but I don't feel like any of the messages are individually starworthy.
 
@Pavel I think what people usually do is to star one, and those that click on the starred msg will see the context.
 
Well, hopefully people cotton on and star my message some more.
Wait, is J essentially ASCII APL?
 
@Pavel Not quite, but it started out like that.
 
That's the basic premise.
 
However, J has huge emphasis on tacit programming, and is also very "pure", at the cost of practicality sometimes.
 
5:49 AM
From what I've seen of APL it likes tacit programming too.
 
@Pavel APL has become multi-paradigme. You can mix and match tacit, functional, OO, procedural as you see fit. Use the tool for the job. For good reason, many of the APL solutions on PPCG are tacit, as that is often shortest.
 
J technically has an OO system...
 
@Cyoce Uh, yes, technically. APL has a fully integrated real Java/C# OO.
 
In the same way python technically supports private methods?
 
But they're not actually private, right?
 
5:53 AM
They aren't directly accessible the normal way.
 
In Dyalog APL, private methods and fields are actually private. You can't even tell that they exist except from inside the class/instance.
 
In C#, private methods are accessible through reflection and black magic.
 
@MDXF :| nonworking
 
6:17 AM
I made a strawpolls userscript. @2EZ4RTZ
 
@ATaco :D
 
@ATaco Link please
 
Does it only track strawpolls that would onebox or all referenced strawpolls?
 
all strawpoll.me links
It does also grab []() links,¯\_(ツ)_/¯
A new strawpoll will take up to 15 seconds to appear in the widget (For Bandwidth reasons, #BandwidthIsntCheap)
 
6:25 AM
Oh, is this all being funneled through a-ta.co?
 
Yep, although in retrospect there was nothing I couldn't do clientside, but my first thought was websocket.
 
Are you hosting a-ta.co or do you have a vps?
 
VPS.
(Oh wait it would have been almost impossible to do the Strawpoll API calls)
Actually bandwidth is pretty cheap now adays.
 
Cool
How much bandwidth does I am Typing use up?
 
I can't imagine much at all.
I used less than 2 GB overall for the month of July, that's also including the usage of the website itself, and my FTP shinanigains.
 
6:47 AM
 
Well that's not very high res.
 
>_> it's the sidebar
higher res just for you :P
 
Ow. Sorry.
 
7:46 AM
1919x1279?
 
@Cyoce :P didn't realize
Too lazy to drag all the way to the corner lol
 
that's a lot of work
 
@Cyoce I know right
Never underestimate the difficulty of dragging that extra pixel further
 
and here I am on 800x600
 
@Cyoce 80x60 is better :P
 
7:55 AM
It's not on the menu and I'm lazy
Lawbreakers lets you set the resolution in the dev console so I play on 400x300 :(
 
Oh god.... I can literally feel those answers being written and ready to be posted
 
Anonymous
9:31 AM
@Mr.Xcoder Well... We are hoping to post next week :P
 
Anonymous
9:42 AM
I swear the devs of this one (not public-facing) site I use are just mashing at their keyboards randomly... They removed the search box for no reason, but didn't bother removing the search API, so you can just append /search?q=whatever to the URL and searching works.
 
@Mego *monkeys
 
Anonymous
Really though. Why would you remove the search bar, but not also remove the GET API?
 
Internal use maybe :P wait no so the devs can run bots that's a good question
 
10:27 AM
slow clap is the appropriate response, I think
And maybe an email to let the developers know about their goof
 
Anonymous
This site is a research resource site for CS, so it's even more baffling that they'd leave the API after removing the search bar. Maybe it's some sort of test :P
 
Anonymous
@Sherlock9 People have complained about it plenty, to no avail
 
Anonymous
My guess is terrible management
 
10:52 AM
what search bar has been removed?
I finally got the graduation design userscript... Now I got rid of the ugly blue :-))
What's that thing "Replace Common Usernames"?
 
11:18 AM
@Mr.Xcoder It was mostly to fix Helka's username + avatar :P
 
man, codepen is actually really useful for front-end dev, I might buy the pro plan
 
Anonymous
12:17 PM
Hooray, chat autoscrolling is fixed
 
1:07 PM
\o/
nvm
 
Ven
mmh, wish I could find some way to get a "combinations" op in cjam, as in "abc" => ["a", "ab", "abc"].
 
1:23 PM
@Ven how is that combinations
 
@Ven Looks like prefixes to me. (,\ in APL)
 
Ven
1:41 PM
Ok. Prefixes then. Or suffixes.
 
dammit this chromebook keeps freezing for about 10 seconds every 2 or so minutes
(cc @ASCII-only) fixed my stupid attempt at RTL exponentiation; can I get people to test this? repl.it/KkTX/68
 
wat dis?
 
@HyperNeutrino 2^2 = 0?
 
a calculator
^^ huh?
not for me?
 
@H.PWiz power not xor
 
1:51 PM
My bad, I just put it straight in and did XOR
 
@HyperNeutrino works now yay
 
it's for a programming language that I'm attempting to create
^^ yay
 
@HyperNeutrino ew python
 
@ASCII-only :(
 
2:26 PM
rip my grade 11 CS online course
the first unit is about careers in computer science
which is like exactly what I did last year because of the grade 10 Careers course
 
 
1 hour later…
3:27 PM
@Pavel What you could do is bookmark that conversation...

How to learn APL

10 hours ago, 15 minutes total – 13 messages, 2 users, 0 stars

Bookmarked 45 secs ago by DJMcMayhem

And then that could be starred
 
hi all
sometimes I have a real life coding problem and think of ppcg :)
 
@Lembik That's basically how this site started
 
@cairdcoinheringaahing :)
 
Anybody here who knows python ? (except Mego)
 
3:43 PM
define "know"
 
@AlexKChen Yes, me
(and no-one else :D)
 
I have a very werid problem.
 
@AlexKChen What is it?
 
class Board():
	def __init__(self,parent,m, w, color='red'):
		self.parent = parent
		self.canvas = Canvas(parent, width = m*w, height = m*w,bg=color)
		self.canvas.pack()

		self.m = m
		self.w = w
	def draw_board(self):
		print(self.m, self.w)
		m = self.m
		w = self.w
		for i in range(m):

			self.canvas.create_line(0,i*w, m*w, i*w, fill = "yellow", width = 3)
			self.canvas.create_line(i*w, 0 , i*w, m*w, fill = "yellow", width = 3)
 
@AlexKChen I am here
 
3:44 PM
@AlexKChen What about it?
@Mr.Xcoder I beat you on this one this time :P
 
@AlexKChen And...?
 
Okay, this works perfectly for drawing a checkerboard with m columns and rows in tkinter.
 
@cairdcoinheringaahing Well, that's different from person to person :D
 
So what is the problem?
 
@AlexKChen Aye
 
3:44 PM
And what do you want to achieve?
 
But.. when I add self.draw_board() in __init__(), an error shows !
 
@AlexKChen What error?
 
i.e this code shows an error:
 class Board():
	def __init__(self,parent,m, w, color='red'):
		self.parent = parent
		self.canvas = Canvas(parent, width = m*w, height = m*w,bg=color)
		self.canvas.pack()
		self.draw_board()
		self.m = m
		self.w = w
	def draw_board(self):
		print(self.m, self.w)
		m = self.m
		w = self.w
		for i in range(m):

			self.canvas.create_line(0,i*w, m*w, i*w, fill = "yellow", width = 3)
			self.canvas.create_line(i*w, 0 , i*w, m*w, fill = "yellow", width = 3)
 
What is the error message again?
 
That's the code you just sent
 
3:45 PM
I have only added the "self.draw_board()" in init
 
@cairdcoinheringaahing No, they moved their function calls a bit
 
@AlexKChen What is the error message? That'll tell us what the error is
 
what error are you getting?
 
Wait guys, I type a bit slowly.
 
No need to bold :p
 
3:46 PM
`Traceback (most recent call last):
  File "<pyshell#50>", line 1, in <module>
    b = Board(a, b, 8, 20)
  File "<pyshell#49>", line 4, in __init__
    self.canvas = Canvas(parent, width = m*w, height = m*w,bg=color)
TypeError: unsupported operand type(s) for *: 'Board' and 'int'`
 
@AlexKChen Ok, what arguments are you giving Board when you call it?
 
But if you don't add the call in init, and type b = Board(root, 8, 20), and then type b.draw_board(), it works perfectly.
@caird b = Board(root, 8, 20) (color is optional)
 
maybe put self.draw_board() after self.m,self.w=m,w?
 
What the hell. Facepalm. Of course you're right @betseg
 
		self.m = m
		self.w = w
                self.draw_board()
^
Ninja'd by betseg
 
3:49 PM
@Mr.Xcoder ninja'd
 
Yeah yeah thanks @Mr.Xcoder @betseg @cairdcoinheringaahing
 
?
(Oh and you two guys ninja each other)
 
@AlexKChen No problem
 
No Problem
 
3:50 PM
No problem.
God
 
lol
 
lol
*ninjad
 
Pls stop the ninja's
 
double ninja'd actually
 
brb posting challenge.
 
3:51 PM
@Mr.Xcoder We can't really help it, unless we are all the same user
 
Downgoat's user script is absolutely amazing
 
@Mr.Xcoder Have you just realised that?
 
Okay, so I am creating a simulator for IMO SL 2011 C5 in tkinter, so if any difficulty arises, I will ping you three today (until one hour-ish), okay ?
 
@AlexKChen Only ping one of us. It doesn't matter who, but only one
(ping me. Mr.Xcoder only knows golfed Python :P)
 
@cairdcoinheringaahing I just installed it
 
3:53 PM
@cairdcoinheringaahing OK.
 
@cairdcoinheringaahing That's false.
 
(what does your name mean btw ?)
 
@AlexKChen Its a long story
 
@AlexKChen And old answer gave by dennis, if you are talking about caird
 
anagram ?
 
3:53 PM
No
 
Then what's the story ?
 
brb, finding the link
 
@AlexKChen Here
 
@Mr.Xcoder For real, or was that a joke?
 
@cairdcoinheringaahing For real. I'm writing it
It's surprisingly harder than I thought (to describe the task).
 

« first day (2413 days earlier)      last day (2427 days later) »