« first day (1745 days earlier)      last day (3204 days later) » 

10:00 PM
Now that I'm looking at it, I think the macro would be just compiled with the (read-line *query-io*) form in, and it would be called only when the actual call to where occurs
 
#'(lambda (cd) (and #| output of (make-comparisons-list '(read-line *query-io*)) |#))
yup
 
Alright that makes sense.
I really like Lisp. It's very similar to JavaScript (or rather, it's the other way around), but at the same time it feel a lot purer and simpler
 
yup :)
I'm doing very weird stuff with macros right now
this part is done at compile-time
I'm going a little crazy I think
but hey :D
I'm generating some code using another macro in my original macro
 
So basically, to "compile" a lisp file into an executable, I trigger buildapp lispfile.lisp and supply it with --output and --entry?
 
yes
hmmm
not sure if buildapp needs a lisp file or a system, wait
you'll need buildapp --load lispfile.lisp --output foo --entry main for example
buildapp is written in lisp too... so the concepts are lispy, e.g. load or load-system
(PCL has a chapter about systems too)
a system is basically a whole jar, while a package is a namespace, if you want
 
10:13 PM
I'm still learning, but I'm hoping for practical implementations that go beyond command line applications
 
like?
servers? GUI apps?
 
@FlorianMargaine Yeah, something that's interactible from outside the shell
 
how come this only works if you explicitly set the attribute as type text document.querySelectorAll("input[type='text']")
 
this doesn't work for just inputs
 
10:14 PM
example of a GUI app: github.com/ralt/aeon (using qt)
 
@SuperUberDuper It does.
 
not for the todo mvc app in chrome
 
@SuperUberDuper jsfiddle
 
github.com/ralt/groceries is where I went crazy with stored proc in postgres... every single sql query goes through a stored proc :D
 
@FlorianMargaine I tend to prefer views over stored procedures
But of course, overly complex things deserve SPs
 
10:16 PM
there is a bunch of functions in src/db.lisp that let me iterate with the sql files in lisp's repl...
it was fun
@MadaraUchiha yeah, me too
I just went crazy for this small project :P
 
night guys
 
@MadaraUchiha try it here: todomvc.com/examples/angularjs/#
document.querySelectorAll("input[type='text']")
can't find the input fo rme
 
document.querySelectorAll("input[type='text']")
 
10:22 PM
@FlorianMargaine one more question if I may, how do I include libraries into Lisp code?
 
looks like I'll have to do document.querySelectorAll("input") then do an later check on each node
 
Do I just specify them as source in the buildapp command?
 
what are you using lisp for? when you can use javascript
 
@SuperUberDuper What are you using JavaScript for? when you can use C
 
10:25 PM
or, even better, assembly
 
@JanDvorak Real programmers write machine code.
 
so you can only use css attribute selectors if there are defined in the html, bahhh
even if the related property is that value
 
real programmers hand-write punch cards with a pencil
 
@tereško In Scotland, I was over the moon. The rest of the UK, not so much...
Real programmers use butterflies.
 
anyone here of the lunar waves conspiracy?
 
10:26 PM
dammit, emacs
 
im in scotland now :)
very nice
 
@SuperUberDuper Where abouts?
 
*I'm
 
Ek? Can't say I've heard of it.
 
10:27 PM
glasgow
 
Ah, east kilbride?
 
right
dont wanna go back to london
love speaking scottish
but love the money down there
 
*don't
 
Scottish as in Ya tatshie tattie or Wegie?
 
10:30 PM
Tatshie tattie -> Ill-dressed potato, for those who are uneducated
So is it just Glasgow you've been to, or hast thou been enlightened by the beauty of the Highlands.
 
mostly glasgow
i don thave a car
my nature consists of local walks in the park
 
Nig ht
 
but easily beats london in beatuty
 
*night
 
@CallumBarclay I was parodying Super's lazy grammar
 
10:33 PM
I'd highly recommend the Highlands for visiting, great for children too, to experience the great outdoors.
 
lol
i plan too
 
!!youtube blackmore's night highlands
 
So you're originally from London, then?
 
nah grew up in glasgow
u?
 
10:35 PM
Let's start kicking for textspeak. Who agrees I should?
 
Originally born in Dumfrieshire, moved to the Borders in 2006, though.
 
how can I use cjs modules as singletons,i have read that modules are cached by filepath,how can I ensure that a module always remains cached?
 
u dinna need to speel correcly the brian can work it out
 
@JanDvorak It's not his fault, he's from Glasgow. That's not meant to be offensive, by the way, there's some massively deprived areas, with shite schools.
 
@vamsiampolu That's the default behavior.
 
10:36 PM
now ters ascoottish words
 
@SuperUberDuper who's Brian?
 
on an unrelated subject: Brackets 1.4 got released today
 
I'm annoyed I gotta do this to filter my inputs: e.target.type === 'text'
 
@tereško Yeah, haven't had an chance to use it, though
 
@MadaraUchiha so,require.resolve uses absolute paths??(can i use relative paths for loading singletons??)
 
10:38 PM
for each document.querySelectorAll("input")) {
item.addEventListener("focusout", (e) => {
filter with e.target.type === 'text'
 
@SuperUberDuper It's better to use event delegationn anyway
 
ah right
 
@CallumBarclay it's nice, but I am still waiting for Atom to be in a usable state. They have one of the major feature that I need in it scheduled to be fixed next month.
 
never done it before
 
I will be migrating from ST3 to Atom then (mostly because ST3 is not really getting any attention from developer)
 
10:40 PM
I guess I can just delegate it to the dom's body
 
document.addEventListener('focusout', e => {
    if (e.target.tagName === 'INPUT' && e.target.type === 'text') { ... }
});
(Or, if you have a more narrow scoped parent, it's better)
 
ok, why is it better anyway? performance
 
@SuperUberDuper Yes, one listener vs N listeners
 
10:41 PM
@tereško I've had a wee look at Atom, I feel it needs to up its game with regex replacement, though.
 
next up: google buys facebook
 
event delegation is a confusing term
why not call it smth else?
 
@JoshLeBlanc i dont think thats possible anymore
 
10:42 PM
@SuperUberDuper because you're delegating events.
 
Will they be stripping forced G+ integration from google plus? I feel it would make it a lot better.
 
delegate means pass responsibilty?
 
@SuperUberDuper Correct
 
cool
thx guys
im off to sleep, as the Lord gives me dreams
 
10:45 PM
better simulations than any games
 
@SuperUberDuper The Flying Spaghetti Monster, I assume?
 
I dont knwo what Ill get tonight
 
I know what I'm gettin tonight ;)
beer and netflix..
awww yea
 
10:46 PM
@rlemon Put on the couch
 
fuck that, I didn't get a spare bedroom for nothing
nobody puts lemon in the corner
 
its 11:45 pm here
 
@CallumBarclay Yup, that's definitely enough internet for one day.
 
@MadaraUchiha Have you met Ale Storm? Scottish Pirate Metal.
 
i need to put this SO chat site on self control mac app
 
10:47 PM
I feel everyone can relate to this
 
No, I never leave what I'm cooking until it is done.
:P
 
it's harder when you have stuff on the stove, in the oven, and in the bbq
 
Mhm, just find some kids from the street to mind the food for you.
 
you can get a wireless charging pad for like $15 and just attach it to the base of your existing monitor.
 
function cook(){order('pizza')}
 
10:50 PM
@DaveBrown Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
cook()
 
I'd rather have something that turns movement into electricity, wearable electronics charging your phone.
 
@rlemon Skeptical, especially since it explicitly states it uses electricity, therefore debunking the claim for "needing no propellant". I wish they'd publish facts like thrust and specific impulse. I mean, you don't need matter-based propellant for a laser either, but it has a finite specific impulse.
It basically sounds like a big flashlight to me
@catgocat wat
 
@catgocat Hmmm, an app for iOS which allows you to program? Does it compile/interpret the code, or send it off to a server?
 
10:54 PM
it actually compiles on its own
 
It can't be Apple's - it looks original, and not blinding with gradients.
 
its from the appstore though
 
*it's
 
they have for javascript too
 
10:55 PM
How did that get through Apple?
 
what you mean
 
Last time I checked, Apple shat on any application that compiled or interpreted code.
 
android probably has it too
 
11:02 PM
damn, reddit is delivering tonight!
 
@catgocat We have a few different apps... play.google.com/store/search?q=ide%20js&c=apps
 
What does it mean when someone asks the optimal run time of something?
does that mean best case scenario?
in terms of time complexity
 
@MadaraUchiha have you learned about asdf?
 
@FlorianMargaine Not yet, no
 
sorry not of "something" but a function
 
11:09 PM
@MadaraUchiha basically, when you define a system, you can define its dependencies
(asdf stands for "another system definition facility", but it's the standard one, distributed with most lisp implementations like sbcl)
@MadaraUchiha after defining your dependencies as in the example, you tell buildapp to load your system, and it will load all the deps as well
 
@rlemon omg! I remember now! The cat ate our 2 hamsters, we gave the fish away to a friend nearby! I know how important this is, so I pinged you
 
lol
well if you ever want to keep fish again. ask me and I'll tell you how to not make them dead
 
add lots of salt
 
i keep my fish dead on my dinner plate
 
I think I prefer to eat them, but if it will ever happen, I'll write you ;)
 
11:21 PM
@NickDugger I think lots is a bit too little.
 
I keep my fish as sticks and in my mouth
I'm a gay fish
 
@NickDugger Shh, do you want Tumblr to cri?
 
yes
evrytiem
 
Tumblr is criing, but they always cri. About everything. everything.
 
11:35 PM
@SterlingArcher fail to success!
 
m59
I've never built anything very big with websockets, so I'm trying to figure out how best to organize them. I have a ws connection already going for other things, when the user goes to live stream some stuff, should I open a new socket for that?
 
How does package management with Cabal work? I have nothing in my source directory that lists the dependencies of my project. I suspect this is wrong, and would cause problems if I shared my project.
 
@m59 I don't see why you should have to
you can have streams and regular message passing within the context of the same connection
dunno if you're using socket.io but that should give you an idea
 
I cant understand why I am getting a syntax error in my simple code. http://jsfiddle.net/ymedm5no/
Any idea?
 
m59
So would it be like this?
var userSockets = require(..);
var streamingSockets = require(..);
io.on('connection', function(socket) {
userSockets(socket); // add the socket.on(...)
streamingSockets(socket);
}
and just add more and pass the socket to keep attaching listeners?
 
11:45 PM
is this a good way to load singletons:

var absolutePath = path.resolve(relativePath);
var singleton = require(absolutePath);
 
@m59 Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
 
Exception: SyntaxError: illegal character
@Scratchpad/2:11
 
@MadaraUchiha did you enjoy Attack on Titan?
 
@m59 you shouldn't need to require socket.io twice no matter what
 
There's your hint @RahulDesai, line 2, column 11
 
11:46 PM
you can set up two separate namespaces though
let me double check
 
@CallumBarclay Sorry, still cant find it.
 
@RahulDesai − vs -
why the heck is that even in there
also, your function is broken
and you're defining sum as a global variable
 
@m59 what is userSockets and streamingSockets?
 
woops
I had copied that array from a wikipedia article
 
m59
Oh strange, it was formatted before. Dunno what happened. I'm that nooby, ya know =D
@nick those would be the functions that add the listeners, rather than one massive file of socket.on(..etc)
That's my best guess on how to organize them.
 
11:58 PM
interesting
 

« first day (1745 days earlier)      last day (3204 days later) »