Search found 7 matches

by Kind&Deadly
Mon Jan 17, 2011 12:13 pm
Forum: Common Lisp
Topic: make source executable
Replies: 12
Views: 24857

Re: make source executable

You esesentially cant. ... So no matter what, even if your implementation compiles to native code like sbcl you always need that environkment linked with your binary. To make an example see it like a really really fucking huge list of libraries statically linked. For added complexity your program g...
by Kind&Deadly
Mon Jan 17, 2011 11:41 am
Forum: Common Lisp
Topic: Binary Stream and Binary Types
Replies: 11
Views: 14141

Re: Binary Stream and Binary Types

I've used a lot of languages, and I don't recall any of them having a sane standard way of dealing with binary data. If you point me towards some of them, I might be able to find useful CL libraries that work like that. Edi Weitz tends to have a useful library for everything. Actually, just looking...
by Kind&Deadly
Mon Jan 17, 2011 5:36 am
Forum: Common Lisp
Topic: Binary Stream and Binary Types
Replies: 11
Views: 14141

Re: Binary Stream and Binary Types

No it doesnt suck in every language. Mainly because : A) They provide a sane standard way of dealing with it. B)There are plenty of general or specialised libraries for it. In CL it's more like A) Reinvent the wheel yourself and maintain it forever because the standard is set on stone and never went...
by Kind&Deadly
Mon Jan 17, 2011 5:24 am
Forum: Common Lisp
Topic: make source executable
Replies: 12
Views: 24857

Re: make source executable

You esesentially cant. There are ways to dump images (implementation specific).However lisp kind of has its own special environment. So no matter what, even if your implementation compiles to native code like sbcl you always need that environkment linked with your binary. To make an example see it l...
by Kind&Deadly
Wed Jan 12, 2011 2:46 pm
Forum: Common Lisp
Topic: Binary Stream and Binary Types
Replies: 11
Views: 14141

Re: Binary Stream and Binary Types

Yes, there is a pack. (defun pack (obj) (princ-to-string obj)) (defun unpack (str) (read-from-string str)) SBCL-only matters when you plan to run your code on other lisps. If you're only working with one, use the time saving devices it gives you. (print/read)-(to/from)-string is the same as using p...
by Kind&Deadly
Wed Jan 12, 2011 1:08 am
Forum: Common Lisp
Topic: Binary Stream and Binary Types
Replies: 11
Views: 14141

Re: Binary Stream and Binary Types

Dude, if you think that's painful, wait 'til you look at the generalised machinery for handling filepaths. It was standardised at a time when there were Unix, DOS, VMS with its built-in file-versioning, other exotic systems floating about, and more being developed. Try handling that in a portable w...
by Kind&Deadly
Tue Jan 11, 2011 5:43 pm
Forum: Common Lisp
Topic: Binary Stream and Binary Types
Replies: 11
Views: 14141

Binary Stream and Binary Types

Im a newbie to programming in general,I'm trying to learn as a hobby mostly. I have toyed with C for a while tho. This is frustrating.This is a rant. After much reading and admittedly not enough practice, i got to play with files in CL.At first, i was bothered by the absence of a "posix-y"...