Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

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

this website sucks
Submissions

comment 8y ago · link · parent

Yeah, "roguelite" usually implies losing some of the big classic elements (e.g. not being turn based).

"coffee break" only implies short length.

comment 8y ago · link · parent

> decided to explain its working by coming up with a metaphor involving record-players and records that are designed to physically break the record-players they’re played on

Wait... I've seen this style of explanation somewhere...

M O N A D T U T O R I A L S

comment 8y ago · link · parent

Firefox with Tracking Protection (on by default in private windows I think) asks permission for reading canvas pixels.

https://bugzilla.mozilla.org/show_bug.cgi?id=967895

comment 8y ago · link · parent

Other than being a statically typed language: Crystal AOT compiles down to native code (so, good FFI) and has a much better portability story (you can port it to ~any LLVM target).

All that Graal stuff, while a true open source project, has some "Oracle weirdness" around it (IIRC, only Linux (and probably only amd64) is supported in the "community edition") and requires JDK 9/10 (not available on FreeBSD yet..)

comment 8y ago · link · parent

Golang makes statically linked binaries. (Well, until you use cgo.)

By default, Crystal generates dynamically linked binaries. You absolutely do not need Crystal to run them. But you do need:

- Boehm GC (libgc-threaded)

- libevent

- PCRE if the program uses regexps

- libyaml if the program uses yaml

- OpenSSL if the program uses crypto/TLS (?)

Here's an example ldd output:

    /usr/local/bin/shards:
            libyaml-0.so.2 => /usr/local/lib/libyaml-0.so.2 (0x8c0bb1e000)
            libpcre.so.1 => /usr/local/lib/libpcre.so.1 (0x8c0bd3c000)
            libm.so.5 => /lib/libm.so.5 (0x8c0bfb8000)
            libgc-threaded.so.1 => /usr/local/lib/libgc-threaded.so.1 (0x8c0c1e6000)
            libthr.so.3 => /lib/libthr.so.3 (0x8c0c444000)
            libevent-2.1.so.6 => /usr/local/lib/libevent-2.1.so.6 (0x8c0c66c000)
            libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x8c0c8c3000)
            libc.so.7 => /lib/libc.so.7 (0x8c0cad2000)
            libdl.so.1 => /usr/lib/libdl.so.1 (0x8c0ce8f000)
            libcrypto.so.42 => /usr/local/lib/libcrypto.so (0x8c0d091000)
You can try `crystal build --static` though :)

comment 8y ago · link · parent

> wouldn't write a webapp in Rust

https://rocket.rs looks nice ;)

comment 8y ago · link · parent

I've tried to use onioncat to get from anywhere to NATed home. Performance sucked too much. Switched to an openvpn instance on a VPS :D

comment 8y ago · link · parent

How slow is libaom right now?

comment 8y ago · link · parent

Which BSD? :)

I ported u2f-hid-rs (the library Firefox uses) to FreeBSD, it's been in the www/firefox port for a while and now accepted into mozilla-central I think.

The Chromium FreeBSD port also has had U2F support for a while.

comment 8y ago · link · parent

> crypto+rust

Well, security_protocol+rust. The actual crypto comes from https://github.com/briansmith/ring which just calls hand-written assembly crypto code copied from BoringSSL.

comment 8y ago · link · parent

For a Yubikey, you don't even have to dick around with the PKCS11 mess. Just use gpg-agent, it will use the GPG key on your Yubikey as an SSH key.

comment 8y ago · link · parent

btw, a tool for quickly counting unsafe in dependencies: https://github.com/anderejd/cargo-geiger

comment 8y ago · link · parent

> [Foundations and logic] Why: This is the assembly language of mathematics—the stuff at the bottom that everything else compiles to.

> [Basic mathematics on the real numbers] Why: You need to be able to understand, write, and prove equations and inequalities involving real numbers

If logic is the assembly, real numbers must be the Enterprise Java frameworks :)

But really, aren't they from non-discrete (continuous?) mathematics? How are they useful for computer science? Like, sure we have approximations of them on computers (floats, rationals) but aren't they mostly used for those pesky boring real-world-ish calculations? Isn't CS mostly about integers?

comment 8y ago · link · parent

wooo! capslock! shady news site!

But this is exciting, I really want an aarch64 laptop that's no less powerful than my current amd64 one (i3-4010U)

comment 8y ago · link · parent

Searching for "rust" returns "Google Python Class Day 1 Part 1", "Make CSS Your Secret Super Drawing Tool", "Visualizing a Decision Tree - Machine Learning Recipes #2", etc.

comment 8y ago · link · parent

GNU/Linux is not detectable though?? You boot an entirely separate OS from the Tegra RCM mode, basically zero bytes of Nintendo code run in that boot.

Modifications to the Horizon OS (like Atmosphere) can be detected, but I wouldn't worry about bans if you don't pirate or cheat.

comment 8y ago · link · parent

> that is basically the two games worth getting it for it

Splatoon 2, Bayonetta 2, Xenoblade Chronicles 2, ARMS.

Also homebrew and Linux :)

comment 8y ago · link · parent

Good old id still makes games with 99.9999% gameplay. DOOM 2016 was all about the gameplay.

comment 8y ago · link · parent

Well, AFAIK it did result in an exploit for OS 1.x, webkit was patched in later versions.

RCM mode is barely "intrusive". Just shove a paperclip into the joycon port, easy.

comment 8y ago · link · parent

> The Gears of War 3 leak triggered a federal investigation, and Epic began working with the FBI to determine how its security had been breached

Ugh. Why do even supposedly "cool" companies go to the cops when they get pwned? Own up to your mistakes, change your passwords, fix your security. Don't report anything to the fucking authorities. What would punishing a kid even give you?

comment 8y ago · link · parent

> these distributed networks are novel and interesting

They were interesting when the bitcoin paper was released.

Then people (outside of the cult) realized that you Do Not Need A Trustless System. Society is built on trust. Wasting ENORMOUS amounts of power just to replace a few trusted entities with 51% of the network is a horrible idea.

https://www.youtube.com/watch?v=xCHab0dNnj4

comment 8y ago · link · parent

Yeah, the last time hardware audio decoders were relevant was like... back in the Nokia N-Gage days.

The N-Gage QD removed the MP3 decoder that was present in the original model. And you could install a software player, and it would struggle with bitrates above 128kbps :D

Modern phones can decode video in software (sucks for battery life, and framerate/resolution are more limited than with hardware, but it's possible). Audio is nothing for them.

comment 8y ago · link · parent

That only applies to shared libraries. If the crate builds the library and links it statically, you don't see the tooling.

comment 8y ago · link · parent

As a user of a C library in Cargo, you don't need to deal with C tooling, just have it installed.

comment 8y ago · link · parent

> why FreeBSD over OpenBSD?

Because people need things other than security to actually do useful things with computers :)

- more ports

- more features (ZFS, DTrace, Jails, RCTL/RACCT, netgraph, Capsicum, CloudABI, Linuxulator)

- more drivers (lots of >=10GbE NICs, AMD GPUs, evdev for input devices)

- more SMP scalability (even NUMA work is ongoing on FreeBSD, while OpenBSD still has lots of things under giant lock AFAIK)

comment 8y ago · link · parent

Yeah, you have to manually turn off mprotect for all JIT programs e.g.:

https://github.com/HardenedBSD/secadm-rules/blob/master/fire...

comment 8y ago · link · parent

FreeBSD only uses arc4 for arc4random (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=182610 -- chacha patch).

Kernel random (read_random_uio(9) / sysctl kern.arandom / /dev/*random / getrandom(2) / getentropy(3)) has been Fortuna since v10, and Yarrow before that.

comment 8y ago · link · parent

"22-48 fps" is for video decoding

"500 fps" is for page rendering

comment 8y ago · link · parent

Ah, so the Chrome OS UI, which is running directly on GBM/KMS, became a Wayland compositor just for the Android compatibility layer?

(Oh, and for the recently announced Linux desktop apps support maybe?)

comment 8y ago · link · parent

> Hardware overlay is not only for video, but also for rendering Android applications that run on a hardware overlay plane, such as the Wayland client of Chrome OS.

What?

What is a "Wayland client of Chrome OS" and how is it an Android application??

1
585960
97