<pjb>
(let ((v (make-array 12 :element-type 'bit :initial-contents #*111100001111))) (replace v #*1010 :start1 2) v) #| --> #*111010001111 |# (the order of bits is from low order up in bit-vectors)
<pjb>
integers are not mutable, each time you create new integers. bit-vectors may be mutable, so it may be advantageous in some algorithms.
<aeth>
my guess is that it makes sense to be mutable if length > 60
<aeth>
perhaps considerably so. You could also do a hybrid approach of doing bit operations on an array several integers/fixnums long, so it might not even break even at unsigned-fixnum-size or 64 or whatever.
<bitblit1>
<pjb> "CodeBitCookie: I would write..." <- pjb: Thanks! Although, I was only giving an example to ask if I could nest loop "forms or keywords"
<pjb>
bitblit1: you can nest if else end
<pjb>
it doesn't make sense to nest anything else.
Volt_ has quit [Ping timeout: 268 seconds]
<bitblit1>
Oh yeah, true, lmao didn't think about that.
<bitblit1>
Do you guys think I should make a c++ app just for my portfolio?
<hayley>
What kind of portofolio? Who would be the audience?
<hayley>
kami: I think I have made the compiler work using a new set representation, which handles the more complex character classes using a lookup table. Now I just need to implement the classes in the "frontend" and parser.
dcb has quit [Quit: MSN Messenger 3.8]
lagash has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
<bitblit1>
<hayley> "What kind of portofolio? Who..." <- For a job, no specific audience, just to be a simple programmer
<hayley>
What do you want to program?
<bitblit1>
In backend, maybe APIs or just server part of a webapp
<bitblit1>
*no-defun-allowed*: I don't really care about specifics that much as I just want to be given a task (or have an idea) to start coding. However, I think the frontend mostly takes away the fun part of the programming and is always in an unstable state. There will always be a new JS framework or library you will need to learn. Whereas with the backend, it's more if it works it works.
msavoritias has quit [Ping timeout: 240 seconds]
sonny has joined #commonlisp
azimut_ has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
Oladon has quit [Quit: Leaving.]
igemnace has joined #commonlisp
ryanbw has joined #commonlisp
igemnace has quit [Remote host closed the connection]
kevingal has quit [Remote host closed the connection]
msavoritias has joined #commonlisp
sonny has quit [Quit: Client closed]
Inline has quit [Quit: Leaving]
pve has joined #commonlisp
shka has joined #commonlisp
rgherdt has joined #commonlisp
jonatack3 has joined #commonlisp
jonatack2 has quit [Ping timeout: 248 seconds]
lagash has joined #commonlisp
chip_x has quit [Ping timeout: 256 seconds]
cosimone has joined #commonlisp
cosimone has quit [Remote host closed the connection]
<ober>
is there a way to coerce a hash to a list for format purposes?
<aeth>
alexandria:hash-table-alist or alexandria:hash-table-plist
<ober>
ty
<aeth>
doesn't preserve order so e.g. (alexandria:hash-table-plist (alexandria:plist-hash-table '(:foo 42 :bar 43))) => (:BAR 43 :FOO 42) ; for me, yours may differ
lagash has joined #commonlisp
tyson2 has joined #commonlisp
<ober>
The value "#<HASH-TABLE :TEST EQUAL :COUNT 2 {101241A613}>" is not of type HASH-TABLE
<aeth>
huh
<ober>
I must be converting it to a string I think
tyson2 has quit [Remote host closed the connection]
<aeth>
oh, yes
<aeth>
you have to turn it into the list and then print it
tyson2 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]