HNHacker News
TopNewBestAskShowJobs

tobik

238 karma · joined September 23, 2010

submissionscomments
tobik··on Sndio: a small audio and MIDI framework part of the OpenBSD project
There is a good support for sndio in the FreeBSD ports tree as well. Albeit hidden behind the SNDIO build time option. It was quite the ride to get it to that point :-)

There are also now some sndio backends out there for applications not in the OpenBSD ports tree like Cava, shairport-sync, and Kodi.

tobik··on How is GNU `yes` so fast?
FreeBSD's yes has just been updated because of this.

https://github.com/freebsd/freebsd/commit/1d61762ca37c20ab6f...

It's about twice as fast as GNU yes now on my FreeBSD system here.

tobik··on How is GNU `yes` so fast?
That's because you're using cat and a pipe. Try this instead:

  pv > /dev/null < /dev/zero
tobik··on Reducers, transducers and core.async in Clojure
Bad example :)

Most simple uses of lambda like this can be substituted with functions from the operator module:

  import operator

  formulas = {
    'sum': operator.add,
    'subst': operator.sub,
    'mult': operator.mul,
    'pow': operator.pow
  }
tobik··on OpenBSD: Use the space freed up by sparc and zaurus to import LLVM
src/gnu already has Perl in it, which isn't a GNU project or under the GPL either.
tobik··on PulseAudio has been removed from dports
I realize I'm replying to a 2 weeks old comment, so nobody will read this ever, but from your list sndio supports: streaming audio over a network, user-land mixing of audio sources, mixing of multiple audio streams at the same time, and per application volume settings.

> Per application input/output source settings

No, but the input/output device is selectable per application via the AUDIODEVICE environment variable.

> bluetooth audio devices

OpenBSD has no bluetooth support, so no. I'm also wondering why the kernel wouldn't create audio devices from these that the userland daemon can then just transparently use? Does an audio daemon need special support for bluetooth audio devices?

The sndio daemon has more features. Give the man page a read if you're interested: http://man.openbsd.org/OpenBSD-current/man8/sndiod.8

tobik··on LogicJS adds logic programming to JavaScript
The Reasoned Schemer by Daniel P. Friedman, William E. Byrd and Oleg Kiselyov

https://mitpress.mit.edu/books/reasoned-schemer

It's from the author of miniKanren on which LogicJS is based.

There are implementations for a lot of other languages (other JS implementation too) on

http://minikanren.org/

tobik··on FreeBSD Myths
Yes, it has V4L/DVB support via the multimedia/webcamd port/package, which is essentially a user space port of Linux' V4L/DVB drivers.

https://www.freshports.org/multimedia/webcamd

tobik··on FreeBSD Myths
No, we are not. :-( For what it's worth I just tried to answer your question on the forums.
tobik··on FreeBSD Myths
You can also display a list of all packages in the repository with

    pkg search -g '*' | less
Better pipe it to less because there are over 25000 packages.
tobik··on BSD vs. Linux (2005)
NetBSD has had support for ASLR since 2009 (NetBSD 5.0), but they only enabled it recently by default: https://mail-index.netbsd.org/source-changes/2016/04/10/msg0...
tobik··on BSD vs. Linux (2005)
> I thought surely they'd fixed it by now.

They did. pkg has gotten a lot better the past 3 years.

tobik··on A prog by any other name
egrep, fgrep, grep (+ z* variants) share the same binary too.
tobik··on Year of the OpenBSD desktop
They are provided by M:Tier. See https://stable.mtier.org/ and http://www.mtier.org/index.php/solutions/apps/openup/
tobik··on Support of OpenBSD pledge(2) in programming languages
http://man.openbsd.org/OpenBSD-current/man2/pledge.2 and the slides to the presentation http://www.openbsd.org/papers/hackfest2015-pledge/index.html
tobik··on Go 1.7 toolchain improvements
https://golang.org/s/go13compiler
tobik··on State of the Haskell Ecosystem – February 2016
Dependencies are downloaded and compiled once for all your projects using the same Stackage release and are shared between projects.

In the end you still might have duplicated dependencies if you use different stackage.org releases but it's a much better situation than using Cabal sandboxes where every project has its own copy of dependencies.

tobik··on The forbidden railway: Vienna – Pyongyang (2008)
Luckily it was archived with at least some of the images: https://web.archive.org/web/20150707005712/http://eurasia200...
tobik··on Automatically inferring file syntax with afl-analyze
If anyone wants to try this on FreeBSD there is an update to the port (I'm the port maintainer) here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207236

afl-analyze is new. Afl in the ports tree doesn't have it yet.

tobik··on Automatically inferring file syntax with afl-analyze
Comparing cut's GNU version (left) with FreeBSD's version (right) with afl-analyze: https://imgur.com/unah6NM

It's interesting that the results look very different. Maybe highlighting the different approaches they take?

tobik··on Automatically inferring file syntax with afl-analyze
It's interesting to compare the results with FreeBSD's cut to the version the author used (which I'm assuming was GNU's cut) :) The results look very different. Left GNU, right FreeBSD: https://imgur.com/unah6NM
tobik··on NayuOS – Chromebooks without Google
I'm tracking this i3/Wayland fork which seems to be pretty active too: https://github.com/SirCmpwn/sway
tobik··on FreeBSD on the raspberry pi
Luckily there are now binary packages for armv6 on FreeBSD 11.0-CURRENT (which is really stable at this point).
tobik··on You should try FreeBSD (2014)
> But you don't need it really.

You need it to run Linux Docker containers on FreeBSD. More on https://wiki.freebsd.org/Docker

tobik··on You should try FreeBSD (2014)
What problems did you have with Java on FreeBSD?

I've done Java, Scala, and Clojure development on FreeBSD and had no problems whatsoever.

tobik··on USB/IP Project
This is also part of the mainline Linux kernel now (look under drivers/usb/usbip/ and tools/usb/usbip/).
tobik··on Why Some Security Experts Use Mutt
For switching folders in Thunderbird: Alt-g-o and select new folder with arrow keys

Composing HTML emails need to be disabled for every account. Never had a problem with it.

tobik··on Walkmod: Open-source tool to automatically apply code conventions
Ok, so the commented out for loop in the example is also considered "dead". Walkmod detects that it is in fact commented out code and only then removes it. Correct?
tobik··on The Unix Philosophy
Thanks. PDF version is here: http://www.catb.org/esr/writings/taoup/html/graphics/taoup.p...
tobik··on Comparing Node.js with Tcl
He uses the Hello World code from http://howtonode.org/hello-node so he did not write the Node version.
Page 1 of 2Next →