5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions
comment 9y ago · link · parent
comment 9y ago · link · parent
Setup wasn't the problem, Cabal sandboxes weren't much harder to use than stack… The actual benefit of stack is sharing compiled packages across all sandboxes instead of rebuilding everything every time.
Plugins in Haskell, or any compiled language, are kinda awkward to work with honestly. If you have to recompile the app, it's not very pluginy :D What are the other options? Dynamically loading shared libraries or using standalone RPC processes, neither of which feels good for a web app.
Embedded interpreters like duktape are pretty safe already. In terms of security model (you only expose what you want, there's nothing like file I/O available by default). Of course there might be bugs in them, especially memory bugs since they're written in C, but I'm not very concerned about actively hostile plugins tbh.
comment 9y ago · link · parent
I have them set up in Xorg: https://github.com/myfreeweb/dotfiles/blob/2a3008b27997b6324...
And Windows: https://github.com/myfreeweb/dotfiles/blob/2a3008b27997b6324...
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
GRANT UPDATE (subject, text) ON comments TO user;
CREATE POLICY comments_update_own_not_locked ON comments FOR UPDATE TO user
USING (locked IS NOT TRUE AND created_by = current_setting('postgrest.claims.username'))
WITH CHECK (created_by = current_setting('postgrest.claims.username'));
Row-level security in Postgres is awesome!
comment 9y ago · link · parent
It uses the Micropub protocol for posting/editing/deleting (I also made a frontend editor app for Micropub: https://github.com/myfreeweb/micro-panel), Webmention for talking to other websites, Git+JSON to store content.
I don't like the PHP/MySQL CMS world at all, but I use that at work. We use MODX Revolution (with some sites still on Evolution).
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
https://thunderbolttechnology.net/products?tid=14&field_comp...
comment 10y ago · link · parent
Compiling anything on ARM is horribly slow, cross-compiling from amd64 is a much better idea.
But you don't need to compile vim, there are binary packages for ARM! http://pkg.freebsd.org/FreeBSD:12:armv6/latest/ pkg should just work.
comment 10y ago · link · parent
My Raspberry Pi 2 runs FreeBSD very well. Currently running OpenNTPD + Monit + Postgres + Node-RED + go-carbon + graphite-api + Grafana + Syncthing + Transmission — all of this with only 249 MB of RAM used. FreeBSD's memory management is excellent.
RPi 3 (native AArch64 mode) support is in progress https://wiki.freebsd.org/arm64/rpi3 for now it runs only on one CPU core, SMP is "actively being worked on".
comment 10y ago · link · parent
FreeBSD's hypervisor is called bhyve (and it uses vmm.ko), and xhyve is a port of bhyve to macOS (uses Apple's Hypervisor.framework). There are other things that use Hypervisor.framework too.
comment 10y ago · link · parent
Also, you can build the updated graphics drivers from https://github.com/FreeBSDDesktop/freebsd-base-graphics
comment 10y ago · link · parent