logs archiveIRC Archive / Freenode / #emacs / 2015 / September / 19 / 1
wasamasa
cajetanus: nu-huh
Fuco
is there some way to make locate(1) ignore .git directories and .trash and backups etc/
deego
fsbot: (progn symbol)
fsbot
ERROR: Symbol's value as variable is void: fs-symbol
deego
fsbot: (progn 'symbol)
wasamasa
nfair: in lisp `quote' is used to suspend evaluation of the following form
fsbot
symbol ..(symbol)
nfair
ah there it is thank you
wasamasa
nfair: the backquote variant allows one to selectively unquote things, essentially making them excempt from this
nfair: you usually see quoting and unquoting in succession inside macros
         

Fuco
as a quick hack I can |grep -v but..
holomorph
just use find ;)
Fuco
locate is million times faster
cajetanus
fsbot: explain ,
fsbot
Try: applying CutAndPaste dlgs-phrases monads perlis-data sparkleshare three-laws http://emacswiki.org/emacs/ControlTABbufferCycling
Fuco
but I don't want it to look into .git, thats stupid
didi
no u
e1f
Fuco: locate uses updatedb(8) so you have to restrict the database
via that command
taylanub
didi: never mind, I was being silly. the padding bits which are zero are copied into foo, since memcpy
wasamasa
forcer: I'm honoring my roots: https://github.com/wasamasa/dotemacs/commit/dcd13bbb162d6dd1cf7e717d8bf26566335c1725
rudybot
http://teensy.info/bw4EhTTVcP
cajetanus
Fuco: man updatedb
wasamasa
Fuco: would ^ be useful for dash?
Fuco
PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs /media /var/lib/schroot/mount"
taylanub
didi: oh did you mean (lambda lambda lambda)? yeah, the first lambda is the regular one, the second is the rest-arguments list, and the third returns the argument list
Fuco
why is there /alex ? :D
JordiGH
Was the source code for NES games assembly?
wasamasa
yes
JordiGH
Or were there 6502 compilers?
e1f
isn't alex a remote file system format
(Action) vaguely recalls something
         

delacruz
is there an ODBC (-like) elisp library, so I can query a general database (not necessarily postgresql)?
wasamasa
,laugh
fsbot
BAAAAHAHAHAHAH HaHAHAA HA HA HHHHA AH *snort* HA HHA HAHAHA HA HAH HAH HAH HAHAH HAH HAH oh man HAH AH HAAAAAHAAAHHH *cough* *cough* *cough* hah hehhh hehhhhh geez.. *cough*
cajetanus
',laugh
wasamasa
delacruz: there's a few sad attempts at using databases from elisp, but nothing serious
e1f
(Action) tries to imagine an audio file of fsbot laughing
wasamasa
delacruz: xemacs supposedly has modules for db integration
delacruz
wasamasa: you mean other than the postgresql pg.el?
e1f
wasamasa
delacruz: no, modules as in, C code compiled to a shared library that can be loaded into xemacs
Fuco
seems like it's just a wrapper around find...
holomorph
wasamasa: when you have a unit interval, is it faster than (vconcat (number-sequence FROM TO))
wasamasa
holomorph: no idea
holomorph: let's bench!
cajetanus
wasamasa: I think Nic did a wrapper for databases
wasamasa
cajetanus: yeah but it only has one implementation which isn't even a database IIRC
delacruz
wasamasa: are you pulling my leg?
wasamasa
,xemacs
fsbot
From memory, XEmacs is [0] an Emacs distro based on GNU Emacs 18 <http://xemacs.org>, <http://emacswiki.org/wiki/XEmacs>, <http://jwz.org/doc/lemacs.html>
[1] NOT Emacs for the X window system
[2] mostly dead
wasamasa
delacruz: see [1]
cajetanus
delacruz
yes, i meant for emacs
i switched from xemacs some years back
wasamasa
https://github.com/renard/db-sql-el/blob/master/db-sql.el#L26
are you fu*king kidding me
also, comint for databases is like the worst idea ever
ask Fuco about it and why he started this workbench.el thing
delacruz
so what do you do, write the db interface in another language/program and then call that from elisp?
holomorph
wasamasa
delacruz: you don't use a database from elisp, duh
didi
Hastouki
anyone get LLDB working successfull with GUD or anything else?
all I want to do is set breakpoints via emacs *sigh*
wasamasa
delacruz: the most advanced thing I've seen was someone sending and csv from sqlite's cli tool
holomorph: oh noes
Fuco
wasamasa: I use database from emacs, duh
delacruz
Fuco: how?
wasamasa
Fuco: emacs ` elisp
delacruz
well, ok, how?
Fuco
delacruz: write your own client
e1f
hm... bangbang con wasn't what i was expecting http://bangbangcon.com/
wasamasa
holomorph: sure it's not just a case of bytecompiling?
delacruz
Fuco: i don't follow you. you mean like a client that talks to an emacs "server-start"?
wasamasa
holomorph: yup, after byte-compiling my file, it's 0.2s for v-range and 0.27s for number-sequence
holomorph: feels good
e1f
if you live in the u.s. and are worth ~$2B, you're ranked ~260th in the billionaires list
Fuco
delacruz: there is no way to use database from emacs satisfactory. What you need to do is write your own whatever-interface-you-wish in emacs to use
holomorph
wasamasa: comparable after byte-compiling
Hastouki
also, how do I do a diff on a specific file with magit!?!?
holomorph
yeah
Fuco
delacruz: I wrote my own because I hated everything else
wasamasa
Hastouki
=f and entering filename doesn't seem to be doing what I expect
wasamasa
delacruz: tries doing way too much, no low-level API, csv
Fuco
I scrape output of mysql(1) and similar cli tools... it works well usually
Hastouki
nm, I need to set path prefix ffs
delacruz
i see
thanks for the pointers/ideas
wasamasa
"The high level idea is that EmacSQL isn't really intended for interacting with existing databases, but for being a high-quality database for Emacs extensions."
see
don't use it, duh
turbofail
pg.el worked pretty well for my purposes
delacruz
couldn't i write my own set of elisp functions in c, and do the db querying in the c program? granted i'm not going to make it general, but just write functions i need for my purposes.
wasamasa
turbofail
obviously postgres specific
wasamasa
that was the one not actually implementing anything useful :D
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 next »