Author: | Daniel Keep <[email protected]> |
---|---|
Version: | 1.0 |
Licence: | http://creativecommons.org/publicdomain/zero/1.0/ |
SSFS is designed to be an as-simple-as-possible filesystem for use with the
// half->float variants. | |
// by Fabian "ryg" Giesen. | |
// | |
// I hereby place this code in the public domain. | |
// | |
// half_to_float_fast: table based | |
// tables could be done in a more compact fashion (in particular, can store tab2 in low word of tab1!) | |
// but something of a dead end since not very SIMD-friendly. pretty much abandoned at this point. | |
// | |
// half_to_float_fast2: use FP adder hardware to deal with denormals. |
// float->half variants. | |
// by Fabian "ryg" Giesen. | |
// | |
// I hereby place this code in the public domain, as per the terms of the | |
// CC0 license: | |
// | |
// https://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// float_to_half_full: This is basically the ISPC stdlib code, except | |
// I preserve the sign of NaNs (any good reason not to?) |
package computer; | |
// Referenced classes of package computer: | |
// KeyMapping | |
public class AWTKeyMapping extends KeyMapping | |
{ | |
public AWTKeyMapping() |
package computer; | |
// Referenced classes of package computer: | |
// KeyMapping | |
public class AWTKeyMapping extends KeyMapping | |
{ | |
public AWTKeyMapping() |
HIT_HMD2043 | |
__ __ | |
|| || | |
||==|| I T | |
_|| ||_ | |
Harold Innovation Technologies | |
"If it ain't a HIT, it's a piece of..." |
KULOG_K8581 (v.1.1) | |
|| // | |
||// | |
||\\ | |
|| \\ULOG HARDWARE TECHNOLOGIES | |
"Bringing 'fun' back into functionality" | |
Author: | Daniel Keep <[email protected]> |
---|---|
Version: | 1.0 |
Licence: | http://creativecommons.org/publicdomain/zero/1.0/ |
SSFS is designed to be an as-simple-as-possible filesystem for use with the
//BASIC PIECES, 3 functions: unit, bind and the bind argument | |
//function unit(value) | |
//function bind(monad, function(value)) | |
//all three functions return a monad | |
/* The unit function is a constructor (returns a monad object) | |
* The magic is in the bind function | |
* | |
* There are AXIOMS: | |
* bind(unit(value)), f) === f(value) |
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
Programming is about communication. It's communication between a human and a computer, but it's also communication between humans and other humans, and between humans and their own future selves. To program, you have to fully elucidate your ideas and record them so that both computers and humans can understand you.
Languages facilitate this kind of communication. Programming languages have to be designed with the computer in mind, but they should also be designed to accommodate humans.
Of course, using comments and out-of-code documentation, you can and should communicate to humans independently from your code. But the program code also needs to be its own documentation, both because actual code and its documentation frequently disagree and because sometimes program code is itself the most elegant way to express an idea.
Languages themselves are software, and they're made up of specificiations and implementations. Ideally, the specifications d