freenode/#lisp - IRC Chatlog
Search
19:02:31
jackdaniel
hey. I want to write a fast function which does alpha-composition between two rgba pixels, here's what I've got: http://ix.io/1kSL/lisp
19:02:45
jackdaniel
I'm not very good with bit fiddling so I'd appreciate any hints how I could improve this code
19:43:14
jackdaniel
_death: thanks. it is internal function because I care about speed in there (it is for McCLIM framebuffer image rendering)
19:43:40
jackdaniel
I'll look up the look-up tables though, may be useful for testing if I didn't mess things up
20:54:03
fouric
question: i have ``(foo ,,(+ 1 2)) which yields `(FOO ,3) but i want `(FOO 3), what do i need to do differently
20:57:22
Shinmera
`(FOO 3) and '(FOO 3) are equivalent. If you "Need more unquoting" you should post a better example
21:00:04
Shinmera
You could use (list 'gethash ,keyword ,sym) or, as I pointed out above, `(gethash ,',keyword ,',sym)
21:03:25
fouric
neither of those work unfortunately - should i just give up on quasiquote and use LIST etc. instead?
21:03:53
fouric
that is, am i trying to do something that fundamentally cannot be done with quasiquote
21:05:03
Shinmera
It can be done and I told you how. Maybe you're asking the wrong question, and besides that your function looks really weird. How do you hope to gethash from a variable that you just gensym up?
21:13:06
fouric
oh, the reason i was using macrolet was because i was going to SETF the resulting expansions
21:13:51
Shinmera
You can still do it with flet. And also the expansion of my version works just fine.
21:14:48
Shinmera
Here's an flet version. https://gist.github.com/fouric/6213a6046cfbe4aa213aef2f7dd66f1c#gistcomment-2685378
21:16:35
aeth
ebrasca: If you want money for Mezzano I'd recommend refocusing the project to be a cloud OS for deploying Lisp applications. e.g. https://en.wikipedia.org/wiki/Unikernel
21:17:22
Josh_2
hey so neither slime or sly are connecting to the sbcl backend, although sbcl is launching in another buffer on my Emacs
21:17:47
Josh_2
Getting this error (("Error in timer" sly-attempt-connection (#<process inferior-lisp> nil 3) (void-function set-up-sly-ac)))
21:17:50
aeth
ebrasca: e.g. get a server Mezzano running on a cloud provider and you just virtualize your Lisp server application on Mezzano.
21:21:52
ebrasca
fouric: I am contributor to mezzano. I don't think there is bountysource or sometink like this.
21:25:46
aeth
ebrasca: I would go the Ubuntu route and have a Server version and a Desktop version. In fact, Ubuntu also has a Cloud edition, which is probably a modified Server edition that's tested on various cloud providers.
21:26:45
aeth
ebrasca: You'd probably want to tunnel SLIME over SSH or something else that's encrypted.
21:27:26
aeth
ebrasca: If I were you I'd put together a list of proposed server/cloud features and see if anyone is interested in Mezzano as a server.
21:33:02
aeth
ebrasca: Make a blog post about Mezzano-as-a-server and see if it gets featured on Hacker News, /r/programming, comp.lang.lisp, etc.
21:36:28
aeth
You should also try to get it running on a cloud platform if there are cloud platforms that let non-Linux OSes run on them. You'll need to have an encrypted way to connect to it first, though.
21:38:26
aeth
If it can run a CL web server you'd probably want to put the Mezzano web server behind another server that runs a mature web server like nginx. I'm not a cloud person, though, so I'm not sure how that works.
21:52:31
aeth
ebrasca: If there's any money in Mezzano it's in servers and cloud. No one (or close enough to no one) is going to switch their client from Windows or Android.
21:53:51
aeth
I would personally focus on the network stack and remote access for now. Linux was a stable server OS long before it was a stable desktop one.
22:05:24
aeth
ebrasca: I think the time to post about this is when you have a working proof of concept of Mezzano running as a server.
22:06:26
aeth
That's all but guaranteed to make it to the front of Hacker News and /r/lisp and has a decent chance of making it to /r/programming. Your pitch for donations or bug/feature bounties or Mezzano-as-a-service or whatever can go at the bottom of the post.
22:07:44
aeth
(If a web server is too hard you can think of something simpler. You're already almost there by having SLIME run.)
22:40:11
White_Flame
ebrasca: and you should set up the means for accepting donations (paypal button, patreon, etc) before such an announcement.