« first day (1808 days earlier)      last day (1782 days later) » 

12:01 AM
All right I need to stop letting chat distract me and get cracking on this
Glava update will be done tonight, no exceptions.
And I'll start working on NanoScript.
 
> Great minds waste time alike —PhiNotPi
 
insert undertale filled with DETERMINATION thing
 
@quartata what is nanoscript?
 
@TanMath language I designed last night
 
12:02 AM
Golfing?
 
You'll see
@AlexA. Yes
 
o.c
 
It's... special.
 
@Calvin'sHobbies :(
 
Handballing?
 
12:02 AM
@quartata cool...how do you guys make languages so quick!
 
@TanMath I don't
 
@quartata You're special <#
 
I'm terrible at this shit
I design languages quickly and implement them very slowllyyy
 
@quartata but you drafted a language in a night!
 
Well, that was the easy part.
Implementation won't be fun though.
 
12:03 AM
It will be, provided you use a decent language. :D
You could implement your language in APL.
 
I'm thinking I'll use Groovy this time
I need to be able to do base conversion easily
 
@quartata Eh. 4/10.
 
And Java has some stuff for that IIRC
 
(Changing colors and rules: coming soon.)
 
12:04 AM
@El'endiaStarman \o/ Nice!
 
@AlexA. Developing in Groovy is actually really fast I've found.
Strong typed, easy to write, has Java's libraries...
It's good.
 
I've never tried using it but it seems like a decent enough language. Though its creator has gone on record saying that if he had known about Scala he wouldn't have made Groovy.
 
Scala is trash though
Don't even
 
What makes it trash?
 
Functions are first class objects
 
12:05 AM
Why would that be a bad thing?
 
I wouldn't mind that
Except it's a JVM language
 
That's what makes it trash? :P
 
Other things
But that's one of my grudges
I don't like the syntax as much as Groovy either
 
That it's a JVM language?
Groovy is too
As is Java, Clojure (IIRC), and others
 
@AlexA. No that functions are first class objects AND it is a JVM language
 
12:07 AM
1 min ago, by quartata
I wouldn't mind that
 
@quartata Probably due to the languages I have used, I don't get why that's a bad thing.
 
It's forcing you to blend paradigms which I don't like too much
 
You seem to be contradicting yourself, or I'm not understanding
 
@AlexA. Part 1 of a 2 part message
I hit ENTER early
 
You don't like that functions are first class objects because it's a JVM language?
 
12:08 AM
Read: "I wouldn't mind that except it is also a JVM language"
 
Oh
 
I also just think (like NodeJS) it's overhyped really.
Anyways, functional + OOP = blergh
 
Gotcha
 
It has lazy evaluation too and yet they call it a web-friendly language (shoot me)
So yeah.
</rant>
 
What about lazy evaluation would make it unsuitable for the web?
 
12:11 AM
Suppose you need to send a packet at a specific time (say a heartbeat), do some other stuff, then check the response
Lazy evaluation means that the packet wouldn't be sent (at least by default) until the response was checked
If you're not careful....
You could time out or worse
 
Hm. Okay.
Thanks for the explanation. :)
 
np
 
Agreed.
Basically, lazy evaluation is bad when you need precise timing?
 
Yes.
Which is often something you need in web-based applications and stuff
 
12:13 AM
yas i iz smert
 
smurf
 
smurf
Oh crap I just realized something.
I need to use Python.
 
brb porting code to a language I haven't used in 2 years
 
12:18 AM
Why do you need to use Python?
 
AST literal eval
 
@El'endiaStarman um... because python is amazing!
 
If I use Groovy Eval.me( will mean I can't put it on TIO
Security risk
 
@TanMath I agree, but that doesn't force a need.
 
12:20 AM
@TanMath true dat
 
How should I turn a string into binary? I.e H => 01001000
 
@quartata map bin
 
Oh nice
 
@quartata well first ord
 
Ah OK
 
12:25 AM
"".join(bin(ord(i))[2:] for i in "hello")
 
Somewhat amusingly, Perl doesn't have bin. You have to do map { oct "0b".ord($_) } split(//,$string)
 
but wait that won't be padded
 
I didn't know if Python had it or not
@Maltysen Won't matter
I actually want it to not be padded.
Oh wait...
Hm.
I guess I can use sprintf to pad it to 4 bits
That's a thing, right?
 
nah, zfill
 
?
 
12:27 AM
btw, I found the full thing:
 
Oh, OK.
 
its not any better in context
 
@AlexA., look.
 
Awh what you have to use a lambda with map
lammmeeeee
OK just to check. Am I python-ing right?
code = map(lambda z: zfill(bin(ord(z)),4),open(sys.argv[1],'r').read().split(""));
 
That looks about right.
 
12:33 AM
Good. I think I'm starting to remember how this weird language works.
 
> weird
 
deal
 
@quartata use a list comp
 
ಠ_ಠ
 
@Maltysen ?
Oh, you mean that for thing?
 
12:34 AM
The time it takes for me to type the disapproval face goes way up when ಠ_ಠ hasn't been around in a while.
 
yeah
 
I find map more readable.
Looks the closest to Perl.
 
[bin(ord(i))[2:] for i in "hello"]
 
This isn't for golf or anything so
 
yeah but its so much more readable
 
12:35 AM
thank goodness @RikerW is not here...
 
also, you need the [2:]
 
@Maltysen Why?
 
cuz pyth prepends 0b in bin
 
Oh, that's dumb.
OK.
 
@quartata Do be aware that code will be a map object, not a list. It will work exactly like a list if you use it like an iterator, but not any other way.
 
12:36 AM
so you should use a generator comp
 
@El'endiaStarman Aware. Using it as an iterator so I should be OK
 
and put it in "".join
or do you not want that?
 
Oh I forgot to strip the trailing 0s
 
oh one more thing, don't read like that
use with
 
12:37 AM
Oh, auto-close?
Mkay.
This isn't right anyways, I forgot.
I need to bitshift by 4 first
Actually, hmm.
Oh, this is OK.
 
does anyone remember that latex gif service?
 
@Maltysen codecogs
 
^
 
cool thanks
 
Need to split it into 4 bits after though
 
12:38 AM
@quartata you ninja'd me...
 
Split a string into chunks of x?
 
there's a really nice iter solution
 
-1
Q: Cookie Balancing Act

TannerCookies are being served! Sibling rivalry ensues! Each of the twins wants the maximum quantity of cookie. The problem is that the cookies are of somewhat different sizes, not surprising since they are home baked. SO you weigh each of the cookies and devise a program to help you allocate them to e...

 
^ now this is why I am happy @RikerW is not here...
 
zip([iter(x)]*n)
but that splits it into n chunks
 
12:44 AM
@NewMainPosts I will use you to my advantage! muahaha!
 
Well, that's fine....
 
so, zip([iter(x)]*len(x)/n)
 
I just meant x as a general number
So, zip([iter(string)]*4)
thanks
 
no that's 4 chunks
not chunks of 4
 
Oh.
So len(string)/4?
 
12:46 AM
yeah
 
Mkay.
 
but isn't it always 8
 
Don't worry about the logistics of what I'm doing :P
 
lel
 
I know it sounds insane
But I know what I'm doing trust me
 
12:47 AM
you did join the string, right?
 
@Maltysen Ye.
 
k, just making sure
 
(not to brag but in Perl this is @x = $string =~ m/..../g)
:P
 
Why the 1kg limit on cookies?
 
@trichoplax that question is badly designed...
 
12:48 AM
It doesn't look ready yet
 
@trichoplax probably never put in the Sandbox...
 
One vote from being put on hold
 
It sounds like homework
 
You can tell it didn't go through the sandbox from the typos
 
That and the guy is a new user.
I didn't even sandbox my first challenge....
I did have the (slight) common sense of asking about it in chat though.
We need to figure out a way to make people more aware of the Sandbox I think.
 
12:51 AM
^
 
Hmm, I'm not sure if I like the current way I have this set up. On the one hand, it means that everything is in binary strings which makes coding less of a pain in the ass, but on the other hand I think it would be faster to just use bitwise operators and leave it as an int.
 
I told him now to put it in the sandbox:
Welcome to PPCG! Currently, as this question stands, the specifications are unclear and the question is badly designed. I recommend that you should delete this question, then post it in the Sandbox, where we can give you feecback on how to improve your challenge. Then this question can be reposted as a much better challenge. — TanMath 1 min ago
 
I'll leave it as is for now.
 
@Maltysen I disagree...
 
@TanMath the part about the first line being the number of input, and the next being the inputs
 
12:53 AM
fuck he deleted the question right before I was going to leave him a comment that was actually important
sigh
Well, he's never coming back.
 
@El'endiaStarman AHHHHHHHH it's so cute
 
@quartata New users not looking at rules/whatever is a common problem across all SE sites.
 
@quartata ?
 
@AlexA. Just a new user.
@AlexA. d'awhhhhhh
I totally missed that
 
@quartata so my comment was bad?
 
12:54 AM
@El'endiaStarman <3<3<#
 
Oh doge is so cute <3
@TanMath no it was great
But I had something additional to say
 
I hope he does as I said...
 
@AlexA. ^_^
 
It has the potential of being a good challenge...
 
> Welcome to PPCG. This should have been a , not a . should only be used in challenges where humans can score answers better than an quantitative scoring system.
 
12:55 AM
true...
 
@quartata It's hard to do more than the featured meta post we already have - new users who don't start with chat just won't know. The only thing I can think of is prefixing every question on main with "thanks to the users in the [sandbox] for all their help getting this question ready" but that might be overkill ;)
 
Okay, JavaScript question. Let's say I have a string "rule17text". How can I extract the number in the middle? I'd prefer to avoid using substr because "text" may also be "dead" or "alive".
 
you can say that when he posts a Sandboxed version...
 
@trichoplax And cluttersome.
 
@trichoplax we should put it somewhere in the tour...
 
12:56 AM
New users often don't read the tour.
 
@TanMath I don't think people who read the tour are the problem...
 
@El'endiaStarman The tour isn't really helpful on this site.
 
@El'endiaStarman really? i guess...
 
@TanMath The thing you have to keep in mind is that everyone is acquainted with forum software and how those work.
SE is not a forum. Hence the problem when users think it is.
 
I never even knew this website existed:
 
12:57 AM
@El'endiaStarman Regex. /.*?([0-9]+).*?/. Then get your number with $2 or whatever the equivalent is in JS.
 
I'm encouraged by reading the comments on this question where a brand new user responded very positively to feedback resulting in a much improved question.
 
I agree...
 
@quartata "whatever the equivalent" is my problem. :P
 
@TanMath That started out as "moderators.se"
 
lots of new users' thought processes are just "I see a text box -> type stuff -> hit 'submit'"
2
 
12:58 AM
@El'endiaStarman OK, whatever the equivalent for getting capture groups is.
It'll store your number in the first capture group.
 
@Doorknob yes
 
@trichoplax i saw...
 
@Doorknob "hurr durr I like pie"
20 upvotes on SO
 
@quartata really?
any evidence?
 
Over-exaggeration. But SO quality standards are both different and more lax than ours.
 
12:59 AM
@quartata Yeah, but I don't know to do that in JavaScript...
 
@El'endiaStarman Hrmph.
 
Hence the question. :P
 
googling
 
binging
duckduckgoing
yahooing
 

« first day (1808 days earlier)      last day (1782 days later) »