News for hackers. Stuff that matters.

tobik

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.

Re:How is GNU `yes` so fast? on Tuesday June 13, 2017 @10:43AM (#14545066)
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.

Re:How is GNU `yes` so fast? on Tuesday June 13, 2017 @08:43AM (#14544313)
That's because you're using cat and a pipe. Try this instead:

  pv > /dev/null < /dev/zero
Re:Reducers, transducers and core.async in Clojure on Wednesday June 07, 2017 @12:29PM (#14507723)
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
  }
src/gnu already has Perl in it, which isn't a GNU project or under the GPL either.
Re:PulseAudio has been removed from dports on Sunday September 04, 2016 @02:06PM (#12425792)
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

Re:LogicJS adds logic programming to JavaScript on Monday August 15, 2016 @10:00PM (#12295019)
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/

Re:FreeBSD Myths on Sunday July 31, 2016 @06:03AM (#12196315)
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

Re:FreeBSD Myths on Sunday July 31, 2016 @05:45AM (#12196280)
No, we are not. :-( For what it's worth I just tried to answer your question on the forums.
Re:FreeBSD Myths on Sunday July 31, 2016 @05:32AM (#12196267)
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.
Re:BSD vs. Linux (2005) on Tuesday July 05, 2016 @10:32AM (#12036664)
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...
Re:BSD vs. Linux (2005) on Tuesday July 05, 2016 @04:48AM (#12035155)
> I thought surely they'd fixed it by now.

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

Re:A prog by any other name on Thursday April 28, 2016 @01:34PM (#11590549)
egrep, fgrep, grep (+ z* variants) share the same binary too.
Re:Year of the OpenBSD desktop on Saturday April 23, 2016 @08:49PM (#11558074)
Re:State of the Haskell Ecosystem – February 2016 on Monday February 22, 2016 @12:41AM (#11148762)
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.

Re:The forbidden railway: Vienna – Pyongyang (2008) on Saturday February 20, 2016 @12:25PM (#11140965)
Luckily it was archived with at least some of the images: https://web.archive.org/web/20150707005712/http://eurasia200...
Re:Automatically inferring file syntax with afl-analyze on Tuesday February 16, 2016 @03:10PM (#11112777)
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.

Re:Automatically inferring file syntax with afl-analyze on Tuesday February 16, 2016 @11:47AM (#11111131)
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?

Re:Automatically inferring file syntax with afl-analyze on Tuesday February 16, 2016 @12:34AM (#11108085)
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

Older »