freenode/#mezzano - IRC Chatlog
Search
16:41:41
blake1024
When I build a new system, I get a window that has no border and just says SYS.INT>. How can I get rid of it?
16:43:10
housel
The easy way is to type some erroneous expression into the REPL there, then type :terminate at the debug prompt
16:45:04
housel
blake1024: BTW, you can find channel backlogs at http://irclog.tymoon.eu/freenode/%23mezzano
16:52:31
blake1024
I have many questions. I thought about possibly contributing a user manual. Is that desired?
17:07:21
random-nick
<froggey> (setf mezzano.gui.compositor:*default-background-colour* (mezzano.gui:make-colour-from-octets #x3E #x3E #x3E)) <froggey> though this'll only change newly opened windows
17:07:53
random-nick
that's from my logs, the online logs from the topic don't seem to have that conversation at all
17:15:38
blake1024
I had to use (setf mezzano.gui.compositor::*default-background-colour* (mezzano.gui:make-colour-from-octets #x3E #x3E #x3E))
17:24:45
blake1024
When I do (mezzano.supervisor:snapshot) is saves the snapshot. Can I have more than one snapshot?
17:33:58
blake1024
I am confused about the file system. I tried creating files but they didn't stick through a reboot unless I saved the image. That makes my think the file system is in memory.
17:37:17
froggey
that's right, the filesystem is in-image. my intent is to eventually have snapshots be taken automatically & regularly
17:46:16
ebrasca
froggey: I think all lines in source code need to be less or equal to 100 characters.
19:01:29
blake1024
There is a lisp structure editor that is good in an image based system at https://github.com/blakemcbride/LispEdit
19:09:25
blake1024
Not yet. I think it would be good though in an image based system. It makes sense.
19:11:38
blake1024
The way it woks now (if I remember correctly) is that it redefined defun to save the original code on the symbol's property list.
19:14:21
froggey
the closest you can get to that right now is what ED does, but that only gets you the source filename & approximate file position of the top-level form containing the definition
19:16:10
blake1024
Wouldn't it be easy to modify defun, defmacro, etc. so that the original code gets saved on their property list?
19:18:21
housel
Sure, but there's an awful lot of code in Mezzano, and storing everything would be expensive
19:19:28
froggey
I don't think you'd be able to save the edited form back to the original source file either
19:20:36
froggey
there is some support already in DEFUN, but it's only used when the function is inline
19:20:40
blake1024
The LISPF4 package I refer to above can do that (save the edited form pack to the source file).
19:22:17
housel
Doesn't paredit mode have most of the advantages of structure editors, without losing the ability to represent comments and formatting? You could port paredit mode to med
19:23:17
blake1024
paredit is a GNU Emacs package and would be difficult to port to anyting because it's based on ELisp.
19:24:32
blake1024
(It's my impression that although med is written in Lisp, it's not built to be readily modified like emacs.)
19:38:22
blake1024
Including climacs is a good idea. But having a structure editor is easy and a good addition to an image-based system, IMO.
19:53:21
blake1024
I just get horizontal lines of different colors. Same result from the demo image and one I built. (In fact, this is why I built my own.)
19:59:36
froggey
change (defvar sys.int::*desktop* (eval (read-from-string "(mezzano.gui.desktop:spawn :image \"LOCAL:>Desktop.jpeg\")")))
19:59:44
froggey
to (defvar sys.int::*desktop* (eval (read-from-string "(mezzano.gui.desktop:spawn)")))
20:03:01
froggey
(mezzano.supervisor:fifo-push (make-instance 'mezzano.gui.desktop::set-background-image :image-pathname nil) sys.int::*desktop*)
20:11:47
blake1024
(I am saving these commands you are giving me to be included in a manual I am considering writing.)
20:13:16
froggey
(mezzano.supervisor:fifo-push (make-instance 'mezzano.gui.desktop::set-background-colour :colour <a-colour>) sys.int::*desktop*)
20:16:59
froggey
should be a call to mezzano.gui:make-colour or mezzano.gui:make-colour-from-octets, like the command to change *default-background-colour*
20:27:47
blake1024
I presume I can place an icon on the screen and, when clicked, it'll run some code. How can I do that?
20:32:06
froggey
see *icons* in gui/desktop.lisp. push ("path/to/icon.image" "Text" "(lisp-code-to-run)") on it to add a new icon
20:32:42
froggey
you might have to click some existing icon to force the desktop to use the updated icon list
20:36:45
blake1024
I see you support sockets well. That's great. If you finish threading you could write a web back-end in Mezzano.
20:40:10
blake1024
When you spawn threads, they often run on different cores. That improves throughput.
20:45:30
froggey
housel: hmm. anything that relies on heavily global state is suspect, CLOS & the package system are two parts that jump to mind
20:46:53
froggey
and the scheduler itself isn't multicore aware at all. I haven't implemented waking idle CPUs when work becomes available
20:48:11
froggey
the major issue right now is that the system doesn't actually boot on multicore systems when SMP support is enabled. it seems to be something related to early allocation, I haven't investigated in detail
21:08:59
froggey
it compiles numeric code like the blit functions and cl-jpeg into code that is fast enough to keep the gui responsive and to support real time playback of mjpeg files
21:10:51
ebrasca
Pasive open is to wait to someone to start connection. It change from listen to syn-received.
21:13:27
ebrasca
I think mezzano is missin 2 states listen and time-wait. Maybe time-wait is only (sleep x).
21:15:19
ebrasca
Here tcp state diagram https://www.google.com/search?q=tcp+ip+transition+state+diagram&tbm=isch&source=iu&ictx=1&fir=1XzUNp2Vb_vyJM%253A%252Cyt-tW8Iqy_JvXM%252C_&usg=AFrqEzerzAIW0lEL4HiOauLn-MVsH5gbhg&sa=X&ved=2ahUKEwi9oILnmf7cAhUjx4sKHbnqBtQQ9QEwBHoECAQQDA&biw=1649&bih=947#imgrc=1XzUNp2Vb_vyJM:
21:16:24
blake1024
If there are too many files to display on the Filer, is there a way to scroll either vertically or horizontally?
22:09:44
ebrasca
If I have pointer pointing to '(0 1 2 3 4 5) and then I change it to point in midle like '(4 5).
22:26:13
random-nick
ebrasca: the idea behind garbage collection is to collect everything that is impossible to access
23:20:27
ebrasca
If I recompile with C-c C-c to fast output is writen in slime instead of serial output.