1. 1

    I first went in 2017 and I regret not going sooner.

    1. 4

      I wonder if something like this plus make and m4 could replace ansible.

      1. 1

        Heh. My DNS config is managed this way :)

      1. 2

        I like how BCHS keeps evolving.

        Am I correct that there is no concept of templates at this point?

        1. 3

          Most of my own usage is in exporting JSON, then doing page manipulation in the browser. But since this is all in C, you should just be able to link to any templating engine library. (As noted below, kcgi does have a simple khttp_template(3), but it’s just token-pasting and nothing more sophisticated.)

          1. 2

            From the khttp_template(3) man page (part of kcgi):

            DESCRIPTION
                 The khttp_template, khttp_templatex, khttp_template_buf,
                 khttp_templatex_buf, khttp_template_fd, and khttp_templatex_fd functions
                 comprise a template system for a kcgi(3) context allocated with
                 khttp_parse(3).  They may only be called after khttp_body(3), else
                 behaviour is undefined
            
          1. 8

            I’ve been enjoying the back-and-forth with @peter at https://lobste.rs/s/w4auk6/more_shell_less_egg_all_this#c_xln3fi. However, the deep nesting of this thread is getting really silly.

            I find that the mailing list mode helps a great deal.

            https://lobste.rs/s/jg3eet

            1. 1

              I’m a great fan of the feature.

            1. 3

              I myself will probably really consider the switch once VMM can run Windows (quite likely) or Wine gets ported. (probably not)

              1. 6

                A unikernel version of wine would be interesting.

                1. 1

                  I myself will probably really consider the switch once VMM can run Windows (quite likely) or [..]

                  Where have you seen indications vmm will support Windows?

                  1. 1

                    It probably already does, for all I know, as you can install Windows without a framebuffer and just service via RDP. It’s a bit of a pain to set it up like that though.

                1. 6

                  Oh man. This further supports my (unhealty) obsession with the SSH-based lifestyle.

                  1. 3

                    @jcs, might you be able to update with a dmesg and some performance details? E.g read/write speeds of SSD and time make -j4

                    1. 3
                      1. 1

                        That looks very pledge friendly.

                        1. 2

                          I don’t speak French unfortunately. What can you do with this that you can’t do with autoinstall and rc.firsttime?

                          1. 1

                            I have used vim since forever and I still have major issues with it.

                            For work I have markdown files that are a few thousand lines long and each has about 18 level two (##) markdown headers. I enable folding to collapse those files into 18 workable sections, and vim is noticeably slow when folding is enabled.

                            I recently introduced someone to vim for the first time and the amount of configuration needed to get a somewhat sane default is annoying. We can debate the value of syntax highlighting but when a new user has to hunt down and install 3rd party syntax, filetype and folding configuration for very common file types as the very first thing, I think that’s insane.

                            I tried neovim on the same markdown files and it was only a little bit faster.

                            At least things like native packages and async is slowly coming around but it’s taken much too long.

                            1. 14

                              Two days later, Mike managed to get seabios booting in vmm for the first time: http://pastebin.com/00FSvEWA (This is work in progress and not committed yet.)

                              1. 3

                                My personal itch for vmm/vmd would for it to be able to run Windows, seeing as we can’t cope with Wine.

                                1. 2

                                  I believe a serial console in the guest is going to be required for a long time, perhaps forever. Mike isn’t keen on adding graphics.

                                  1. 3

                                    IIRC, you can install Windows with nothing but serial nowadays. RDP can be used afterwards.

                                    1. 2

                                      It was a requirement in high-assurance security for admin access. You start with idea of a management port like what’s common in servers. Then, you need it to be DMA free, easy to TEMPEST shield, have drivers simple enough to bulletproof, and diverse suppliers to reduce interception risk. Serial port it is.

                                      1. 1

                                        Actually, the thought occurred to me that you could create a synthetic framebuffer in emulated firmware - probably via EFI to keep it sane. Basically, the EFI framebuffer and HID the OS uses to would be routed over VNC. Then the hypervisor could be kept clean, but instead offloaded to optional emulated firmware.

                                        1. 1

                                          Would support for PCIe pass-through of GPUs require vmd support for graphics?

                                          1. 2

                                            If you pass through the PCI device (sounds like a lot of work) then the VM would have a graphics device instead of having to use an emulated one.

                                    1. 3

                                      Always Free [..] Offer is subject to change.

                                      Call me old and grumpy, but doesn’t someone deserve to go stand in the corner for a while?

                                      1. 3

                                        Grmbl. It’s not an actual product yet.

                                        The best actual product I have seen is the USD 1100 SONY’s DPTS1 on which I think GoodEreader.com’s own kick-started product is also based.

                                        1. 1

                                          Have you seen Onyx BOOX Max?

                                          1. 1

                                            One thing I’ve always loved about Sony e-ink products is that they are super easy to use with just about any OS, software, whathaveyou. There is no huge cloud connected account that only works with certain formats, it’s a microsd card you can copy PDFs to.

                                            I’m very tempted by this posting, wish I could actually get my hands on it for a reasonable price.

                                            1. 1

                                              It looks like the DPTS1 was discontinued in January :(

                                            1. 35

                                              I’m a little disappointed there isn’t an option to have @jcs call and ask if I’m trying to login…

                                              1. 9

                                                …and just see how I’m going.

                                                1. 6

                                                  “superblock conversation therapy” needs to be a thing.

                                              1. 1

                                                When looking at C projects, the ‘New C Projects’ are really Go projects from 2014. Is that deliberate?

                                                1. 1

                                                  At the moment the C support is very poor, mostly because there aren’t really any application level package managers like rubygems or pip for C, I’m planning on adding support for system level packages (apt, yum etc) that will improve it

                                                1. 1

                                                  This is going to cost me sleep. Thanks a lot.

                                                  1. 1

                                                    I get weekly notifications from Vultr that the hardware host one of my virtual guests was running on encountered problems and was rebooted or crashed, bringing my systems down with it.

                                                    I tried explaining to their sysadmins that I need more details to still be comfortable running my setup on Vultr but they are not hearing me over 5 exchanges, so I am looking at alternatives.

                                                    I am told Google’s offerings let you mix and match CPU, RAM and SSDs as needed but I don’t know if they will let me install OpenBSD.

                                                    1. 1

                                                      I don’t know if they will let me install OpenBSD

                                                      I’m not sure about GCP but it’s possible to install OpenBSD on Digital Ocean and Linode. Some fiddling required, of course.

                                                    1. 1

                                                      Do you have anything clever for easy/automated testing? In Python I use nose but don’t know of anything similar in C.

                                                      1. 2

                                                        I use kcgiregress(3), part of kcgi(3), for web application regression testing.

                                                      1. 4

                                                        I never heard of Smartisan before. That is a nice donation. Does Smartisan depend on core OpenBSD things for their Android phones or what might their motivation be?

                                                        (I took a look at their website and my heart stopped for a second thinking someone had started selling OpenBSD-powered phones. It’s just Android. I’m fine now, but slightly disappointed.)

                                                        1. 2

                                                          They mentioned an intention to donate about a month ago in an oddly worded press release that called the OpenBSD Foundation an “Android open source service organization”:

                                                          This is not the first time the company has made the Android community a business priority. Smartisan has donated tickets sales from its new product launch events to the open source community since 2014. In 2016 alone, over 10,000 developers and tech-enthusiasts attended its events. In celebration of this milestone, Smartisan will donate approximately 3 million RMB from sales of tickets of this year’s and last year’s launch events to OpenSSL Software Foundation and the OpenBSD Foundation, two Android open source service organizations.

                                                          That isn’t how I would’ve described the OpenBSD Foundation, but it suggests to me that they’re not specifically interested in OpenBSD the OS, but rather in supporting the development of OpenBSD-origin components that have found their way into Android.

                                                          1. 3

                                                            One likely candidate for such a component is OpenBSD’s libc. We keep getting occasional patches for it from google.