Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions

this website sucks
Submissions

comment 9y ago · link · parent

Voice is the next big platform? But… talking to your devices out loud just feels weird as hell. And offers less privacy, even in terms of "parents/roommates/strangers overheard what you're googling". A lot, A LOT of people wouldn't be comfortable saying out loud what they type into their phones.

comment 9y ago · link · parent

I have kinda looked at it — it's not really what I wanted. For my personal website, I don't want an admin interface, password authentication and all that CMS-y stuff. Also, sweetroll was my "learning haskell" project, so of course I had to write a whole backend from scratch!

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

Any layout (I prefer colemak) – you can add cool tricks to make it better. http://stevelosh.com/blog/2012/10/a-modern-space-cadet/ introduced me to "CapsLock == Control AND Escape" and "Shifts as parens" tricks.

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

I type on Colemak — it already has many keyboard shortcuts same as QWERTY, most common letters on the home row, and it's old and popular enough to be included in many places out of the box (FreeBSD console, Xorg, macOS, iOS, Android). I don't see the how Norman is better.

comment 9y ago · link · parent

Makes sense — PostGraphQL was inspired by PostgREST, and that's exactly what PostgREST does.

comment 9y ago · link · parent

You can compose data on the server without GraphQL. PostgREST does this (ironically not very "RESTful") thing: http://postgrest.com/api/reading/#embedding-foreign-entities

comment 9y ago · link · parent

> Users can edit x,y,z columns on the comments table, if they were the ones that wrote them and the comment does not have a lock flag

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

My Nexus 5X only has 2GB.

comment 9y ago · link · parent

For my personal website, I wrote a backend in Haskell: https://github.com/myfreeweb/sweetroll after trying a lot of static generators, writing Dropbox-backed blog engines, etc.

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

If your priority is being 100% blob-free, not being completely open to chip makers, take a look at IBM POWER. There's even a workstation project: https://www.crowdsupply.com/raptor-computing-systems/talos-s...

comment 9y ago · link · parent

Gaming Evolved was not developed by AMD, it's a branded version of raptr.com.

comment 9y ago · link · parent

Couldn't good employers write contracts where instead of

> Not related to your employer’s line of work.

there's something like "Not a project started at the job"?

comment 9y ago · link · parent

The GPU driver that's required for both gaming and OpenCL is already in the kernel. The current issue is, if I understand correctly, is related to display management stuff.

comment 9y ago · link · parent

https://github.com/FreeBSDDesktop/freebsd-base-graphics just takes whatever crap is in Linux. Very few people are there to maintain all that, so the focus is on reducing the diff with Linux and improving stability on Intel GPUs. Maintaining an additional patch written against Linux doesn't make sense.

comment 9y ago · link · parent

I didn't even have to install any blobs, 5GHz just worked. I think mine is a v2 as well.

comment 9y ago · link · parent

The Pi 2 should have enough power, the Pi 3 has more than enough.

What they don't have is good I/O. USB 2.0 only. And the 100mbps Ethernet is attached through it.

comment 9y ago · link · parent

> a second (trusted) compiler

but… can we assume that any compiler is trusted?

comment 9y ago · link · parent

Yeah, Scaleway has IPv6 on the VPSes and the AMD64 dedicated servers, but not on ARM servers.

2core/2GB/50GB is a better offering than DigitalOcean's. Sadly, it seems like they still don't have FreeBSD.

comment 9y ago · link · parent

DigitalOcean also does this:

> due to the shortage of IPv4 addresses available, we charge $0.006 per hour for addresses that have been reserved but not assigned to a Droplet. In order to keep things simple, you will not be charged unless you accrue $1 or more.

comment 9y ago · link · parent

Yes, I think Elastic IPs can incur charges in some way.

comment 9y ago · link · parent

> buy some development board from Xilinx, install a toolchain, use said (shitty) toolchain

You can start only with the toolchain's simulator, and then get a board from ebay for 50 bucks.

comment 9y ago · link · parent

Thunderbolt 3 is not a "special Apple variant". Most new high-end laptops these days have Thunderbolt 3.

https://thunderbolttechnology.net/products?tid=14&field_comp...

comment 10y ago · link · parent

HDMI works fine for me, it's really, really weird that it didn't for you.

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

It performs fine on my X240 without doing anything.

comment 10y ago · link · parent

That's odd. Are you using HDMI or the serial console?

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

Jails aren't a hypervisor. A jail is just a number in the process table. That's what the hipsters call "containers" these days :-)

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

No one ported the broadcom wifi drivers. New Intel cards (7260, 8260) are supported.

Also, you can build the updated graphics drivers from https://github.com/FreeBSDDesktop/freebsd-base-graphics

comment 10y ago · link · parent

FreeBSD battery life is generally good, especially with https://github.com/lonkamikaze/powerdxx

comment 10y ago · link · parent

That's how Bundler does it in the Ruby world, and I haven't really seen any logic in Gemfiles. Pretty much everyone sticks to the DSL. Of course there's someone who did that, but I personally haven't seen that, ever.

comment 10y ago · link · parent

A lot of OpenBSD mentions here, but what about MINIX 3? It's so underrated and ignored :( They made a nice microkernel-based UNIX-like system with a NetBSD userspace.

Also, Redox is switching to a microkernel architecture...

1
888990
97