Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

At one point in time, they did release a version of the CLR that could be built on OS X and FreeBSD: http://en.wikipedia.org/wiki/Shared_Source_Common_Language_I...


sort by: page size:

> Instead of that we have some support for it in FreeBSD

My google fu is failing me right now but FreeBSD also has a shared library used for reading/parsing config files and providing either a common or universal dsl for all conf files using the same library. This is one of the benefits of using an OS instead of a distribution - all the tools are developed holistically and refactors such as providing a shared, universal input or output format, sandboxing everything with capsicum, etc across the board are much more possible.

EDIT

Remembered it. Surprised at how bad Google was at finding this, though!

UCL - Universal Configuration Language [0]. Introduced in a paper by Allan Jude in 2015 [1]. Man page: libucl(3) [2].

[0]: https://github.com/vstakhov/libucl/

[1]: https://papers.freebsd.org/2015/bsdcan/allanjude-ucl/

[2]: https://man.freebsd.org/cgi/man.cgi?query=libucl&sektion=3&f...


Yes, the OSX code seems to come from FreeBSD. Here is the FreeBSD version of the source:

https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/...

It looks very similar to the current OSX file posted in an earlier comment. Calls /bin/sh too.


piles on

Thank you for helping bring CLR to FreeBSD.

https://github.com/dotnet/coreclr/pull/782/files#diff-ebcfa0...

That's clean, documented code man.


Interesting. I was aware of the CLI but didn't know it worked on FreeBSD.

There's code for it at least. Can't verify if it works right now due to problems building on FreeBSD.


Thanks for pointing this out, a bit more detail about the shared code is here: https://en.wikipedia.org/wiki/XNU

I did read the article, but "BSD layer synchronized with FreeBSD 5" somewhat late in the project didn't itself give me the impression it was derived from work in FreeBSD. That said, I appreciate the poke to go do some more work :)


Yes, it was ported from OpenBSD. Ted literally calls it out in the commit:

https://lkml.org/lkml/2014/7/17/145


Yes I know, bectl. I use it.

I just didn't want to mention it because the discussion was mainly about Linux. But FreeBSD has a really strong toolchain for this indeed.


Interesting, I would think it would be easier to use LibreSSL for this since the OpenBSD folks are so conservative that the modern APIs are likely to be stable. Maybe they want to use more of the legacy APIs that the OpenBSD folks are excising?

Is there something like this for cross-compiling to FreeBSD?

FreeBSD is using this in its base system (although I don't think it's all or even most apps as yet).

http://juniper.github.io/libxo/libxo-manual.html


you are right. It turns out OSX support is here now. Do I have to be binary compatible to Linux to use it on FreeBSD?

It's a great tool nonetheless.


if you look through their drivers, they use a sort of c++ without exceptions, but last i remember from debugging network drivers on osx, they looked like they were forked from freebsd a fairly long time ago, but were for a long time close enough to be able to see the roots(i don't know if it's still like that)

Some FreeBSD code which later found its way on to every OSX/iOS/macOS system.

Apparently the release notes list is here: https://cgit.freebsd.org/src/tree/RELNOTES

Yeah. Just saw that recently too. Good news!

ASLR is apparently around the corner+ as well.

Didn't OpenBSD get ASLR in 2008 or something like that? It only took 6 years for FreeBSD to get it.... >_<

  +for some definition of corner.

Yes; this was good to ''cut my teeth on'', as it's a rather simple package and, being so self-contained, I'm actually entirely pleased with its specification.

>In base, OpenBSD only supports C/C++, however a Perl interface is also included.

I'm soon going to drop by the OpenBSD mailing list and see if they're interested in including this in their prepackaged GNAT. It won't harm to ask.

Related to this, I intend to write a binding for Common Lisp, at some point, although that will be far more arduous, all things considered.


Sorry, you are correct; I mis-read the man page. It is however in at least glibc and Darwin/FreeBSD's libc.
next

Legal | privacy