Skip to content

Instantly share code, notes, and snippets.

@Vaguery
Last active October 22, 2015 22:46
Show Gist options
  • Select an option

  • Save Vaguery/328e97685a02a2424114 to your computer and use it in GitHub Desktop.

Select an option

Save Vaguery/328e97685a02a2424114 to your computer and use it in GitHub Desktop.
Big-ass Book of Clojush Instructions :/

The Big-ass Book of Clojush Instructions :/

Every Clojush instruction registered in any file in the Clojush repo, including a few that are commented out.

  • experimental/overlap
    • code_discrepancy
    • code_overlap
  • boolean
    • boolean_and
    • boolean_or
    • boolean_not
    • boolean_xor
    • boolean_invert_first_then_and
    • boolean_invert_second_then_and
    • boolean_frominteger
    • boolean_fromfloat
  • char
    • char_allfromstring
    • char_frominteger
    • char_fromfloat
    • char_isletter
    • char_isdigit
    • char_iswhitespace
  • code
    • exec_noop
    • code_noop
    • noop_open_paren
    • noop_delete_prev_paren_pair
    • code_append
    • code_atom
    • code_car
    • code_cdr
    • code_cons
    • code_do
    • code_do*
    • code_do*range
    • exec_do*range
    • code_do*count
    • exec_do*count
    • code_do*times
    • exec_do*times
    • exec_while
    • exec_do*while
    • code_map
    • code_fromboolean
    • code_fromfloat
    • code_frominteger
    • code_quote
    • code_if
    • exec_if
    • exec_when
    • code_length
    • code_list
    • code_wrap
    • code_member
    • code_nth
    • code_nthcdr
    • code_null
    • code_size
    • code_extract
    • code_insert
    • code_subst
    • code_contains
    • code_container
    • code_position
    • exec_k
    • exec_s
    • exec_y
    • environment_new
    • environment_begin
    • environment_end
  • common
    • exec_pop
    • integer_pop
    • float_pop
    • code_pop
    • boolean_pop
    • zip_pop
    • string_pop
    • char_pop
    • exec_dup
    • integer_dup
    • float_dup
    • code_dup
    • boolean_dup
    • zip_dup
    • string_dup
    • char_dup
    • exec_swap
    • integer_swap
    • float_swap
    • code_swap
    • boolean_swap
    • zip_swap
    • string_swap
    • char_swap
    • exec_rot
    • integer_rot
    • float_rot
    • code_rot
    • boolean_rot
    • zip_rot
    • string_rot
    • char_rot
    • exec_flush
    • integer_flush
    • float_flush
    • code_flush
    • boolean_flush
    • zip_flush
    • string_flush
    • char_flush
    • exec_eq
    • integer_eq
    • float_eq
    • code_eq
    • boolean_eq
    • zip_eq
    • string_eq
    • char_eq
    • exec_stackdepth
    • integer_stackdepth
    • float_stackdepth
    • code_stackdepth
    • boolean_stackdepth
    • zip_stackdepth
    • string_stackdepth
    • char_stackdepth
    • exec_yank
    • integer_yank
    • float_yank
    • code_yank
    • boolean_yank
    • zip_yank
    • string_yank
    • char_yank
    • exec_yankdup
    • integer_yankdup
    • float_yankdup
    • code_yankdup
    • boolean_yankdup
    • zip_yankdup
    • string_yankdup
    • char_yankdup
    • exec_shove
    • integer_shove
    • float_shove
    • code_shove
    • boolean_shove
    • zip_shove
    • string_shove
    • char_shove
    • exec_empty
    • integer_empty
    • float_empty
    • code_empty
    • boolean_empty
    • zip_empty
    • string_empty
    • char_empty
  • genome
    • genome_pop
    • genome_dup
    • genome_swap
    • genome_rot
    • genome_flush
    • genome_eq
    • genome_stackdepth
    • genome_yank
    • genome_yankdup
    • genome_shove
    • genome_empty
    • genome_gene_dup
    • genome_gene_randomize
    • genome_gene_delete
    • genome_rotate
    • genome_gene_copy
    • genome_gene_copy_range
    • genome_toggle_silent
    • genome_silence
    • genome_unsilence
    • genome_close_inc
    • genome_close_dec
    • genome_new
    • genome_parent1
    • genome_parent2
    • autoconstructive_integer_rand
    • autoconstructive_boolean_rand
  • input_output
    • print_exec
    • print_integer
    • print_float
    • print_code
    • print_boolean
    • print_string
    • print_char
    • print_vector_integer
    • print_vector_float
    • print_vector_boolean
    • print_vector_string
    • print_newline
    • [input instructions kludge]
  • numbers
    • integer_add
    • float_add
    • integer_sub
    • float_sub
    • integer_mult
    • float_mult
    • integer_div
    • float_div
    • integer_mod
    • float_mod
    • integer_lt
    • integer_lte
    • integer_gt
    • integer_gte
    • float_lt
    • float_lte
    • float_gt
    • float_gte
    • integer_fromboolean
    • float_fromboolean
    • integer_fromfloat
    • float_frominteger
    • integer_fromstring
    • float_fromstring
    • integer_fromchar
    • float_fromchar
    • integer_min
    • float_min
    • integer_max
    • float_max
    • float_cos
    • float_tan
    • integer_inc
    • integer_dec
    • float_inc
    • float_dec
  • random_instructions
    • boolean_rand
    • integer_rand
    • float_rand
    • code_rand
    • string_rand
    • char_rand
  • return
    • return_fromexec
    • return_frominteger
    • return_fromfloat
    • return_fromboolean
    • return_fromstring
    • return_fromchar
    • return_fromcode
    • return_exec_pop
    • return_code_pop
    • return_integer_pop
    • return_float_pop
    • return_boolean_pop
    • return_zip_pop
    • return_string_pop
    • return_char_pop
    • return_tagspace
  • string
    • string_frominteger
    • string_fromfloat
    • string_fromboolean
    • string_fromchar
    • string_concat
    • string_conjchar
    • string_take
    • string_substring
    • string_first
    • string_last
    • string_nth
    • string_rest
    • string_butlast
    • string_length
    • string_reverse
    • string_parse_to_chars
    • string_split
    • string_emptystring
    • string_contains
    • string_containschar
    • string_indexofchar
    • string_occurrencesofchar
    • string_replace
    • string_replacefirst
    • string_replacechar
    • string_replacefirstchar
    • string_removechar
    • string_setchar
    • exec_string_iterate
  • vectors
    • vector_integer_pop
    • vector_float_pop
    • vector_boolean_pop
    • vector_string_pop
    • vector_integer_dup
    • vector_float_dup
    • vector_boolean_dup
    • vector_string_dup
    • vector_integer_swap
    • vector_float_swap
    • vector_boolean_swap
    • vector_string_swap
    • vector_integer_rot
    • vector_float_rot
    • vector_boolean_rot
    • vector_string_rot
    • vector_integer_flush
    • vector_float_flush
    • vector_boolean_flush
    • vector_string_flush
    • vector_integer_eq
    • vector_float_eq
    • vector_boolean_eq
    • vector_string_eq
    • vector_integer_stackdepth
    • vector_float_stackdepth
    • vector_boolean_stackdepth
    • vector_string_stackdepth
    • vector_integer_yank
    • vector_float_yank
    • vector_boolean_yank
    • vector_string_yank
    • vector_integer_yankdup
    • vector_float_yankdup
    • vector_boolean_yankdup
    • vector_string_yankdup
    • vector_integer_shove
    • vector_float_shove
    • vector_boolean_shove
    • vector_string_shove
    • vector_integer_empty
    • vector_float_empty
    • vector_boolean_empty
    • vector_string_empty
    • vector_integer_concat
    • vector_float_concat
    • vector_boolean_concat
    • vector_string_concat
    • vector_integer_conj
    • vector_float_conj
    • vector_boolean_conj
    • vector_string_conj
    • vector_integer_take
    • vector_float_take
    • vector_boolean_take
    • vector_string_take
    • vector_integer_subvec
    • vector_float_subvec
    • vector_boolean_subvec
    • vector_string_subvec
    • vector_integer_first
    • vector_float_first
    • vector_boolean_first
    • vector_string_first
    • vector_integer_last
    • vector_float_last
    • vector_boolean_last
    • vector_string_last
    • vector_integer_nth
    • vector_float_nth
    • vector_boolean_nth
    • vector_string_nth
    • vector_integer_rest
    • vector_float_rest
    • vector_boolean_rest
    • vector_string_rest
    • vector_integer_butlast
    • vector_float_butlast
    • vector_boolean_butlast
    • vector_string_butlast
    • vector_integer_length
    • vector_float_length
    • vector_boolean_length
    • vector_string_length
    • vector_integer_reverse
    • vector_float_reverse
    • vector_boolean_reverse
    • vector_string_reverse
    • vector_integer_pushall
    • vector_float_pushall
    • vector_boolean_pushall
    • vector_string_pushall
    • vector_integer_emptyvector
    • vector_float_emptyvector
    • vector_boolean_emptyvector
    • vector_string_emptyvector
    • vector_integer_contains
    • vector_float_contains
    • vector_boolean_contains
    • vector_string_contains
    • vector_integer_indexof
    • vector_float_indexof
    • vector_boolean_indexof
    • vector_string_indexof
    • vector_integer_occurrencesof
    • vector_float_occurrencesof
    • vector_boolean_occurrencesof
    • vector_string_occurrencesof
    • vector_integer_set
    • vector_float_set
    • vector_boolean_set
    • vector_string_set
    • vector_integer_replace
    • vector_float_replace
    • vector_boolean_replace
    • vector_string_replace
    • vector_integer_replacefirst
    • vector_float_replacefirst
    • vector_boolean_replacefirst
    • vector_string_replacefirst
    • vector_integer_remove
    • vector_float_remove
    • vector_boolean_remove
    • vector_string_remove
    • exec_do*vector_integer
    • exec_do*vector_float
    • exec_do*vector_boolean
    • exec_do*vector_string
  • zip
    • zip_next
    • zip_prev
    • zip_down
    • zip_up
    • zip_left
    • zip_leftmost
    • zip_right
    • zip_rightmost
    • zip_end?
    • zip_branch?
    • zip_replace_fromcode
    • zip_replace_fromexec
    • zip_insert_right_fromcode
    • zip_insert_right_fromexec
    • zip_insert_left_fromcode
    • zip_insert_left_fromexec
    • zip_insert_child_fromcode
    • zip_insert_child_fromexec
    • zip_append_child_fromcode
    • zip_append_child_fromexec
    • zip_remove
    • zip_fromcode
    • zip_fromexec
    • code_fromzipnode
    • exec_fromzipnode
    • code_fromziproot
    • exec_fromziproot
    • code_fromzipchildren
    • exec_fromzipchildren
    • code_fromziplefts
    • exec_fromziplefts
    • code_fromziprights
    • exec_fromziprights
  • problems/boolean/digital_multiplier
    • in_dmN (multiple auto-generated)
    • out_dmN (multiple auto-generated)
  • problems/boolean/mux_11
    • a0
    • a1
    • a2
    • d0
    • d1
    • d2
    • d3
    • d4
    • d5
    • d6
    • d7
  • problems/boolean/mux_6
    • a0
    • a1
    • d0
    • d1
    • d2
    • d3
  • problems/boolean/mux_indexed
    • a
    • d
  • problems/boolean/valiant
    • unknown number, problem-dependent
  • problems/classification/intertwined_spirals
    • x
    • y
    • iflte
  • problems/control/dsoar
    • intvec2D_pop
    • intvec2D_dup
    • intvec2D_swap
    • intvec2D_rot
    • v8a
    • left
    • mop
    • frog
    • if-obstacle
    • if-dirty
  • problems/control/lawnmower
    • intvec2D_pop
    • intvec2D_dup
    • intvec2D_swap
    • intvec2D_rot
    • v8a
    • left
    • mow
    • frog
  • problems/integer_regression/mackey_glass_int
    • x1
    • x2
    • x3
    • x4
    • x8
    • x16
    • x32
    • x64
    • x128
  • problems/regression/bioavailability
    • 241 different inputs
  • problems/regression/korns_regression_p12
    • x0
    • x1
    • x2
    • x3
    • x4
  • problems/regression/pagie_hogeweg_with_erc
    • x
    • y
  • problems/software/calc
    • signal_error
  • problems/software/wc
    • string_readchar
    • string_readline
    • string_whitespace
    • file_EOF
    • file_begin
    • output_charcount
    • output_wordcount
    • output_linecount
  • problems/software/word_stats
    • file_readchar
    • file_readline
    • file_EOF
    • file_begin
  • problems/tozier/winkler01
    • integer_factors
  • test/clojush_tests
    • schmoo
    • integer.schmoo
    • float.schmoo
    • in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment