1. 5

    Decent article and, even if it is a little dated, the core message is still relevant.

    Loved this quote, which oddly enough I’d never encountered in my 20+ years of using *BSD:

    BSD is what you get when a bunch of Unix hackers sit down to try to port a Unix system to the PC. Linux is what you get when a bunch of PC hackers sit down and try to write a Unix system for the PC.

    Particularly relevant in the era of systemd et al. Hmm, it’s just reminded me of reading Bill and Lynne Jolitz’s 386BSD articles in DDJ when I was a schoolkid and trying to make head or tail of them.

    1. 4

      “BSD is for people who love Unix. Linux is for people who hate Microsoft.” is a relevant quote, supposedly attributed to Theo de Raadt, but I can’t seem to find any source.

      1. 2

        A quick web search finds the quote as I remember it (“Linux is for people who hate Windows. BSD is for people who love Unix.”), unattributed.

        1. 2

          The quote from deraadt@ is “Linux people do what they do because they hate Microsoft. We do what we do because we love Unix” from this article.

        2. 1

          the core message is still relevant

          Is it really? Gentoo Linux evolved in a better *BSD replacement under all aspects.

          1. 10

            Gentoo is nice, I guess, but to me it doesn’t feel like BSD at all. As a user I see GNU utils, man pages lacking quality, no SIGINFO and not much coherence. As a sysadmin I see a Linux boot sequence, from bootloader to init scripts, and other management utils, such as partitioning tools. As a programmer I see glibc.

            1. 1

              Look at Portage and not just at how “recipes” are no longer makefiles, but shell scripts. Look at all the extra functionality compared to *BSD ports: https://projects.gentoo.org/pms/6/pms.html

              1. 1

                What extra functionality do you mean?

                I used Gentoo for two years in 2014-2015 and liked it, and I may use it again soon. But it’s just not s BSD system, and BSD is not only (or even primarily) about ports.

          1. 2

            You asked about Noctua fans, they are definitely your best bet for ultra quiet/reliable fans. I’m not sure if they make them small enough for the laptop though.

            1. 1

              And in colours other than brown ;)

              But seriously, laptop fans are usually a bespoke thing tightly integrated with the custom heatsinks.

              1. 1

                Thanks for your input both of you, I plan to open one of my Yeeloongs and evaluate the possibility. This will probably lead to another post with pictures of the internals ;)

            1. 7

              For mature frameworks / libraries built with security in mind for doing Web applications in C, have a look at :

              • Kore - Easy to use web application framework for writing scalable web APIs in C
              • kcgi - Minimal CGI and FastCGI library in C
              1. 1

                What is particularly “scalable” about Kore? I read through the documentation and it seems like a standard shared-nothing HTTP framework.

              1. 1

                Is that the same Yeeloong model what Stallman used in the past? (He uses an libreboot-ed Thinkpad X200 now)

                1. 1

                  Indeed, it’s the same model. I’m proud to be running OpenBSD on hardware which has been granted the Stallman seal of approval :-)

                  1. 5

                    OpenBSD on hardware which has been granted the Stallman seal of approval

                    This feels ironic for some reason or another.

                1. [Comment removed by author]

                  1. 11

                    GNU is a recursive acronym for “GNU’s Not Unix!”.

                    1. 9

                      And I’d say as someone who’s been using guix for a while, it’s largely a mistake. /usr/bin/env is probably one of the few intelligent pieces of unix filesystem hierarchy. I always just copy one back to /usr/bin/env.

                      1. 6

                        Author here :D - Thanks for the input.

                        Did not enjoy the patronizing writing style.

                        I have a lot of frustration on this topic (if you couldn’t tell), hard coded paths have given me a large number of “contributions” to various projects that I have ported to OpenBSD. It’s gotten to the point where I typically abandon the porting effort if I run into #!/bin/bash

                        1. [Comment removed by author]

                          1. 7

                            I do have a script to do it. The problem is I either have to A) maintain a set of patch files that get applied to the port at build time, or B) I have to send a PR to the project to get it fixed upstream.

                            A: Is workable, but B is a better option as it will help other projects in the same situation as OpenBSD. B: Often results in long drawn out discussions involving solutions along the lines of:

                            “bash is installed in /bin on my system, why can’t you just symlink it on OpenBSD?”

                            Sure this would solve the immediate problem, but as the goal is to produce a port that other people will run, I can’t go around symlinking stuff on their boxes.

                            1. 6

                              One problem is that I don’t have qbit’s script.

                              1. 6

                                Hammer time!

                                find . -type f -exec sed -i 's$#!/bin/bash$#!/usr/bin/env bash$' {} \;
                                
                                1. 1

                                  You probably want to anchor that regular expression to the front of the line.

                            2. 1

                              I would love to have your problems. Sigh.

                            3. 3

                              Where does GuixSD keep env?

                            1. 1

                              Isn’t it already built in into OS X though? Grep for Mouse Keys here: http://www.apple.com/accessibility/osx/

                              The feature has existed in X Window for at least thirty years. But I suppose everything old is new again?

                              1. 4

                                I think the implementation you are referencing works more like a joystick (i.e. press/hold up and it will continually scroll up). This repo is like a trackpad where the travel corresponds to a swiping action with the finger.

                                1. 1

                                  Indeed, you are correct, it wasn’t entirely clear after reading the project description.

                                  After reading your comment I watched the video and it looks great actually, I really like the idea! Now I kind of wish X had something similar ;)

                                1. 3

                                  That’s great news, I really hope RISC-V and lowRISC projects will be successful. I know this is premature, but taking the opportunity to ask when can we expect dev boards to reach general availability?

                                  1. 4

                                    Thanks for the words of support. We intend to tape out a test chip next year, and we’d get ~100 dies through a multi-project wafer (possibly more if there’s spare space on the wafer and the fab is being nice to us, or if we pay for extra wafers). This would produce some dev boards for key contributors and project partners. Assuming a successful test chip, I’d expect general availability to follow in 2017.

                                  1. 2

                                    Maybe its just because Im on my phone, but the page was light on details. Would be interesting for my little home tor/privoxy gateway. Anyone know if openbsd could be ported to it?

                                    1. 2
                                      1. 2

                                        Ha! I had no idea even that it was a kickstarter campaign until this morning. I was going to plop down $15. Another reason to stop reading the web on my phone, and just grab my laptop.

                                    1. 9
                                      -------------------------------------------------------------------------------
                                                          Logswan 1.00 (c) by Frederic Cambus 2015                   
                                      -------------------------------------------------------------------------------
                                      
                                      Processing file : access.log
                                      
                                      Segmentation fault 
                                      
                                      1. 6

                                        That’s not a very good bug report. Where’s the gdb backtrace?

                                        1. 4

                                          Could you provide a backtrace? It’s hard to try to guess what’s wrong without any context.

                                          I’ve had a bug report today, and it’s been found that such log lines crash the program (the cause is known and the issue will be fixed soon) :

                                          1.2.3.4 - - [18/Nov/2013:19:54:25 +0100] “-” 400 0 “-” “-”

                                          1. 2

                                            I thought the snippet in my comment had a little beauty of its own, therefore no backtrace.

                                            #0  __strcmp_sse2_unaligned ()
                                                at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:30
                                            #1  0x0000000000401f66 in main (argc=1, argv=0x7ffdb64c2c80)
                                                at /home/allan/mess/current/logswan/src/logswan.c:186
                                            (gdb)
                                            
                                            1. 1

                                              I believe this is the same bug occurrence of the bug which has been reported and is now fixed.

                                              Logswan 1.01 has been tagged. Could you test and report if it solves your issue? Thanks.

                                          2. 2

                                            Wonder if Valgrind would’ve caught this? Also wondering how fast I could get an equivalent in Haskell to go. We have a HyperLogLog library that I’ve been waiting for an excuse to use outside of work.

                                            1. 4

                                              There’s no way to tell if valgrind would have helped unless @allan provides a stack trace or example input that crashes logswan.

                                              My best guess? Stuff like this would be more probably caught by afl fuzzing since I know fcambus uses logswan regularly on real life data. Though again, without the input log file or a stack trace there is no way to tell.

                                          1. 3

                                            This week, I’m planning to continue working on Logswan, a web log analyzer project I started a few weeks ago. I plan to clean up the existing code base and continue researching memory-efficient ways of counting unique IP addresses, possibly sacrificing exact counts in favour of using HyperLogLog.

                                            1. 5

                                              Richard Stallman please recommend a good open source car. Tesla are relatively forward thinking, perhaps they will be the first? It may be the same problem as video drivers, “no because trade secrets!”.

                                              1. 2

                                                Announcement with more details can be found here : http://permalink.gmane.org/gmane.comp.lang.lua.general/116266

                                                    1. 3

                                                      http://www.cambus.net

                                                      Mostly DNS and Nginx stuff. Also some non technical topics such as Ansi Art and Teletext.

                                                      1. 1

                                                        This week I’m working on improving StatDNS, my DNS research project which publishes deployment statistics and open source DNS related tools (a DNS over HTTP API and an IP Geolocation API). I plan to improve descriptions and documentations everywhere (especially adding more usage examples), and to release new versions of the tools fixing some issues and introducing unit tests.

                                                        1. 2

                                                          I sent you a pull req that adds the ability to keep settings in a .ansiweatherrc file :D

                                                          1. 2

                                                            Looks great, thanks! Will review and merge ASAP :)

                                                          1. 6

                                                            Whats with all the Go articles on lobster? It been like 15-20% of all articles the last week.

                                                            1. 4

                                                              I think in general there’s been a lot of interesting public activity in Go.

                                                              1. 4

                                                                I submitted most of them. After the HN surge on here, I kind of backed off because it was all ruby and javascript, and I don’t care about either. So, I submitted articles about something I do care about, figuring the crowd would choose whether they were interesting or not.

                                                                All of my non-work programming lately has been in Go, and there are a number of people who write Go code here.

                                                                1. 2

                                                                  Yeah, and the Ruby and JS surge is mostly me. :) I work in and enjoy both, so I tossed up the better stuff I saw for a couple days. Thanks for sharing these Go links, nice to peek over the fence.

                                                                  1. 2

                                                                    I’m glad to see these Go stories being posted, and have to admit that’s probably the main reason why I was attracted to the site. Definitely keep them coming :)

                                                                    1. 1

                                                                      It was a couple of the early Go articles here that got me started in the language, actually…

                                                                  2. 2

                                                                    Smaller sites are easier to impact. If you want to reduce that amount, submit a bunch more non-Go stuff. ;)

                                                                    1. 1

                                                                      It was a genuine question given that it’s not as popular on other sites (and I do submit articles :P).

                                                                      I’m curious about what type of developers are drawn to Go. The C++/Java crowd?

                                                                      1. 4

                                                                        According to Rob Pike, one of the primary designers of Go, they expected C++ developers to flock to Go, but instead the language attracted Python and Ruby devs.[0]

                                                                        [0] http://commandcenter.blogspot.com/2012/06/less-is-exponentially-more.html

                                                                        1. 2

                                                                          Although Pike dismisses it, I think a lot of people are excited about C++11. It’s got more features, but importantly, features people want. C99 has taken a long time to gain traction because nobody really cares. C++11 is something they care about. Five years ago would have been a better time to attract C++ devs.

                                                                          I think they are attracting some c++ devs though. The ones who are starting a new project, think maybe python or ruby would be a good enough match, but feel more at home using Go.

                                                                        2. 2

                                                                          If you’re participating in this site it’s a good sign that you’re an early adopter. And if you’re interested in Go it’s a good sign you’re an early adopter. Perhaps lobste.rs and Go attract the same type of crowd (right now).

                                                                      2. 2

                                                                        There does seem to be a heavy dose of Go related stuff on lobsters. There are no tags for many other languages, even though they have been requested several times. For example, there’s no scala tag if one wanted to post something about the Play! framework that Revel is modeled after.