logs archiveIRC Archive / Freenode / #emacs / 2010 / April / 15 / 1
Intensity
Garbage collection, or the internal representation of lisp objects, appear to be highly broken (100% CPU use and over 13,000 levels of function calls during garbage_collect).
noisesmith
inside customize-group storage-allocation there is a threshold for garbage collection
turning it down to a lower number should make gc happen more frequently, and thus for smaller amounts of memory at a time
classic throughput vs. latency issue
Intensity
I'm encountering the severe delays with the traverse_intervals_noorder function. This is the one that seems to be stalling.
noisesmith: Ok, I only notice this problem after months of Emacs uptime. Then it suddenly fails on me. But I'm sure garbage collection is happening quite frequently. There is a problem of its perception on available memory (some C/lisp structure that is limiting). But somewhere along the line I must be triggering an inherent problem in the lisp structures themselves; otherwise the garbage collection wouldn't be taking such a deep call trace
damd
make[1]: *** No rule to make target `/usr/include/libpng12/png.h', needed by `image.o'. Stop.
from latest bzr
what do i do?
noisesmith
damd did you already check if you had libpng12-dev installed?
damd
well i have libpng-1.4.1
arch linux
noisesmith
sounds like something that should be handled by configure
but obviously wasn't
damd
well i *could* disable png support, but that's suboptimal
Intensity
I never got any "memory limit" warnings during the course of my Emacs session... Anyhow I'll include what I can in the bug report.
         

noisesmith
damd: well if it installs to a version specific directory like that, you should be able to install version 1.2 in parallel
damd
meh, i don't look at PNG images that often anyways
thanks though
Intensity
Unfortunately, upon restart, I then encounter another bug in Emacs/gnus, wherein I lose access to which emails have been considered read. So I have to sort through the whole list again.
damd
okay, wtf, i did --without-png and still got the error
Does Emacs use -lpng? no
noisesmith
yeah, the fact that it was looking for libpng12 during make time and you did not have it meant that the config file was broken, so I am not surprised
malsyned
What's the best idiomatic way to test that emacs' major version is at least 23?
ashawley
(>= emacs-major-version 23) => t
damd
who are ashawley and noisesmith? first time i see you guys and you seem to be in the know when it comes to emacs...
malsyned
ashawley, thanks!
ashawley
(Action) blushes
malsyned: You're welcome.
noisesmith
damd: some guy who reads the manuals
anyone know a good way to parse xml in elisp? ie. get a lisp list from an xml tree
rryouumaa
noisesmith: there is a package
johnsu01
noisesmith: use xml.el
ams
who here is from sweden?
yonkeltron
ams: i've known a few swedes in my life
ams
well, i need a speaker...
damd
ams: i am
yonkeltron
ams: google translate isn't good enough?
ams
damd: `support freedom', how would you translate that nicely?
damd: stöd frihet sound immensly lame to me...
damd
ams: "stötta frihet" or "stödja frihet" are the first things that come to mind
"stöd frihet" sounds better to me actually :P
         

ams
damd: and uppmuntra till frihet sounds a bit better... but still lame imho
damd
uppmuntra is not the same thing though
that means "encourage freedom"
ams
damd: seeing that swedes love joined words,it sounds like "stödfrihet" or something
damd: well, ignore direct translation, something that conveys the same thing
yonkeltron
uppmuntra is a cool word
ams
(this is an error people do when translating, they try to translate word by word without the meaning)
damd
"uppmuntra till frihet" sounds strange to me, but who am i to judge
well, i've translated ~50 films and/or tv episodes, so i know all about that ;|
ams
:)
damd
from english to swedish that is
ams
uppmuntra frihet?
arthur__
hi folks, any pointers on the best package to parse xml files? I need to load xml files from disk, manipulate them in elisp and write them back to the file system.
damd
"uppmuntra till frihet" works, but i still think you should go for stöd/stötta
arthur__
is xml.el a good fit for that?
damd
arthur__: do you by any chance know a certain justin smith?
arthur__
nope :(
damd
that's strange. some justin smith asked the exact same thing five minutes ago in this very channel.
arthur__
oh dear, that's funny
dudrenov
OT question, there is no way to do NOT in file globbing, is there?
damd
noisesmith: did xml.el suit your needs? :P
dudrenov
I guess like in regexp [^c]?
noisesmith
damd: yeah, and it froze up my emacs on a huge file
lol
damd
arthur__: apparently you shouldn't use xml.el on huge files :P
malsyned
dudrenov, not with globbing, no.
ashawley
dudrenov: Bash has an extglob option.
arthur__
thanks for the pointer, just found out his question. seems xml.el is the way to go.
ashawley
dudrenov: You can also use find
noisesmith
well, with more experimentation, it turns out in ielm (progn (setq foo (xml-parse-file "huge-ass.xml")) '()) does not freeze up
but just doing (xml-parse-file "huge-ass.xml") freezing up, just because of the font locking step
dudrenov
thanks ashawley, infortuntaly find is not an option here
ashawley
dudrenov: find . -type f ! -name '*pattern*' -maxdepth 1
dudrenov: bummer.
yonkeltron
find is good
just don't do -exec rm -rf {} \;
ashawley
dudrenov: What about Bash?
yonkeltron
at the end
ams
use -delete instead if you want to remove crap
ashawley
right. use -delet
dudrenov
it's from php glob
I'm not a fan of php ether, but ohh well. I think I got a decent enough solution.
Thanks everyone
ologNation
noisesmith, you there?
noisesmith
ologNation: hey, wassup
getting stalled out by xml.el / pprint
yonkeltron
did you know that find -delete will delete everything in the current directory?
i just found out...
noisesmith
yeah, not many safety guards on those unix tools
yonkeltron
yeah. about that.
noisesmith
if I taught a unix class rsync would be the first class - learn to back up first, the rest can come later (not like I have backed up this week... good to be reminded :) )
ologNation
Hey noisesmith.
I'm working on pd.
@#$%!ing pd.
noisesmith
heh
yeah, I used pd before I switched over to sc
someone should make a pd-mode - it was realizing how often I was hacking my .pd files in emacs that I realized I needed to switch to sc
well that and the sc140
yonkeltron
pd?
fsbot
I heard PD is Public Domain
noisesmith
puredata
synthesizer and audio effects design program
graphical patching language
yonkeltron
oh
yeah
i've seen that
noisesmith
http://supercollider.sourceforge.net/sc140/ - each tweet is a composition
ologNation
,puredata
fsbot
ologNation, Is that all there is to it?
Hondenbrokken
eval((begin (display "Hello World") (newline)))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
ologNation
I can't get the thing to make noise. . ..
yonkeltron
WHOA
ologNation
Thinking of reboot.
Hondenbrokken
I tried running hello world by doing C-x C-e, but it doesn't work.
yonkeltron
hey, aren't supercollider and puredata different?
noisesmith
they both perform the same task
different interface
you design a synth, and then run code that makes the synth make sound
Hondenbrokken
Why does it give this message?
noisesmith
one is visual patching, the other is textual code
yonkeltron
i went to school with the guy who did this: http://www.wabdo.com/CocoaCollider/index.html
ologNation
I'm frustrated with pd.
I think I want to reboot my computer and then it will just work.
noisesmith, I like using haskell to generate pd patches.
noisesmith
ologNation: so you are trying to get it to use your sound card - then what happens?
yonkeltron: wow, looks cool, but I don't use any of the macosx code, I do all my sc in emacs
ologNation: cool - look into hcollider, builds and controls scsynth synths from haskell
yonkeltron
noisesmith: o rly? does SC have good documentation?
noisesmith
ologNation: the lang and the synth are really independent
Hondenbrokken
Can someone help?
ologNation
yonkeltron, sweet.
noisesmith
yonkeltron: it self-documents pretty well
yonkeltron: and the documentation is decent
ologNation
Jack was working before. I can't get jack to work now.
Nor can I think of any way to get a helpful error.
noisesmith
yonkeltron: but I learn more from the introspection features in the language
ologNation: OK, jack I can help with
yonkeltron
noisesmith: i might like to play with it and/or hack on it
noisesmith
what errors are jack giving?
yonkeltron
but i'd want some good docs to get going with it
ologNation
Yeah. I'm down to learn sc too. It's about time.
yonkeltron
can it be used for alsa?
sorry
with alsa?
or does it require/demand jack?
noisesmith
yeah, but better to use jack
malsyned
What happened in 2007? There was no new version of Emacs for six years, now there have been four in the past three.
yonkeltron
is there no debian package?
noisesmith
yonkeltron: nope, no debian package, and the latest version is bleeding fresh (just updated a major version)
for learning, better to get the last stable release
fledermaus
Hondenbrokken: help with what?
yonkeltron
noisesmith: why is there no debian package?
noisesmith
yonkeltron: nobody made one that debian accepted - the sc devs tend to pay much more attention to features than stability, which clashes with debian culture
yonkeltron
yes
e1f
,d peplum
fsbot
2 definitions found
From The Collaborative International Dictionary of English v.0.48 [gcide]:
Peplum \Pep"lum\, n.; pl. E. -lumus, L. -la. [L.]
A peplos. Hence: An overskirt hanging like an ancient peplos;
also, a short fitted skirt attached to a waist or coat.
[Webster 1913 Suppl.] ..[Type ,more]
ologNation
There are three choices in the media menu. : oss, alsa and jack.
yonkeltron
can it safely be installed to ~/bin?
e1f
,d peplos
Hondenbrokken
Help with running a lisp program in emacs.
fsbot
1 definition found
From WordNet (r) 2.0 [wn]:
peplos
n : a garment worn by women in ancient Greece; cloth caught at
the shoulders and draped in folds to the waist [syn: peplus,
peplum]
ologNation
Usually jack works best. Right now, if I use also, it makes noise, but gives red, angry errors.
noisesmith
yonkeltron: definitely
yonkeltron: it is a simple question of setting your emacs vars for sclang
ologNation
If I use try to use jack, it doesn't do anything.
If I use oss, it makes sounds, and gives no errors.
noisesmith
ologNation: is jack running right now?
ologNation
Maybe I'm meant to be using oss.
yonkeltron
Hondenbrokken: can you give us some more details?
Hondenbrokken: what kind of lisp? is it elisp?
ologNation
noisesmith, Maybe not.
Hondenbrokken
It's scheme
ologNation
I usually don't have to start jack though.
noisesmith
ologNation: jack is a seperate app, you run it first, and then you attach other apps, similar to X11
ologNation
It should open up jack on its own right?
You're probably right, but I didn't realize this.
noisesmith
ologNation: think of jack as X11 for sound - you just tried to run firefox without running X first
ologNation
Its seems like I never had to do it before.
yonkeltron
Hondenbrokken: are you running emacs proper or edwin (which is not emacs) as you were yesterday?
Hondenbrokken
I'm running emacs proper
yonkeltron
ok, good
Hondenbrokken
Here is my error:
noisesmith
ologNation: some programs autostart jack, I always just start it when I log in
Hondenbrokken
(begin (display "Hello World") (newline))
eval((begin (display "Hello World") (newline)))
eval-last-sexp-1(nil)
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 next »