This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package invariant; | |
/** | |
* Static Typing and Java | |
* | |
* Here are some of the purported POSITIVES of STATIC TYPING: | |
* <UL> | |
* <LI>PREVENT and DETECT ERRORS (checked at compile type) (i.e. CORRECTNESS) | |
* <LI>easier to REASON about the PROGRAM / METHOD | |
* <LI>easier to DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package swar.subword; | |
public class SWAR_Intro_NoComments | |
{ | |
public static void main ( String[] args ) | |
{ | |
int x = 12345678; | |
int y = 9012345; | |
long xyCompound = as2x32BitCompound ( x, y ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package swar.subword; | |
import java.util.Random; | |
public class SWAR_v_Arrays_Perf_NoComments | |
{ | |
private static final int ROW_COUNT = 1000000; | |
private static final int SCAN_ITERATIONS = 100; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package swar.subword; | |
import java.util.Random; | |
public class SWAR_v_ObjectArr_Perf | |
{ | |
public static class XY | |
{ | |
public final int x; | |
public final int y; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package swar.subword; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
public class SWAR_v_ListLambda_Perf | |
{ | |
public static class XY | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typeframe.api.Fields; | |
import typeframe.frame.bitwise.BitFrame; | |
import typeframe.type.ByteType; | |
public class Types_Fields_Frames | |
{ | |
public static ByteType COMPONENT = | |
ByteType.INSTANCE; | |
public static final BitFrame RGBColorFrame = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package strangeunsafe; | |
import java.lang.reflect.Field; | |
import java.util.Random; | |
import sun.misc.Unsafe | |
/** | |
* Illustrate "strange" issue where Unsafe.allocateMemory(...) performs BETTER | |
* when we pass in an int parameter verses a long parameter (of the same value). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*{+packageName*/package io.semiotics.field/*}*/; | |
import io.semiotics.data.Word; | |
import io.semiotics.field.Field.Field32; | |
import io.semiotics.specify.Signifier; | |
import io.semiotics.type.InvalidBin; | |
import io.semiotics.type.InvalidForm; | |
/*{+imports*/import io.semiotics.type.primitive.IntType;/*}*/ | |
/*{+classComment}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.semiotics.type.grid; | |
import java.io.Serializable; | |
import java.util.HashSet; | |
import java.util.Set; | |
import io.semiotics.data.Word; | |
import io.semiotics.type.InvalidBin; | |
import io.semiotics.type.InvalidForm; | |
import io.semiotics.type.MultiPartForm.ObjectArrayDomain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package codestyle; | |
public class EricSpacing_No_Comments | |
{ | |
public static int a = 0; | |
public static int b = 0; | |
public static int c = 0; | |
public static int d = 0; | |
public static int e = 0; | |
public static int s = 0; |
OlderNewer