190 Commits

Author SHA1 Message Date
Nic McPhee
cb33af755a Remove unnecessary use of read-string in Middle Character
For some reason `read-string` was being called to parse a string to a string in Middle Character, along with a totally unnecessary try/catch block.

This cleans that up.

It looks like most if not all of the PSB2 problems have this issue and we'll need to go through and update all of those to not use `read-string`.
2022-02-25 16:29:32 -06:00
Nic McPhee
6b454451d7 Fix the _from_string instruction
This replaces the dangerous use of `read-string`with `parseInt` and `parseFloat`, and returns `ignore-instruction` if an exception is thrown when trying to do the parsing.

Hopefully this will fix the stack overflow problems with the PSB2 Middle Character and Twitter problems.
2022-02-11 17:27:33 -06:00
Tom Helmuth
c5b9aece9c Fixed issue with translation that caused infinite loops if an explicit number of open parentheses is set to 0 2021-11-02 13:12:46 -04:00
Tom Helmuth
0d3b65734b Updated Smallest and Number IO problems to use generations and population parameters same as Clojush 2021-11-02 13:12:12 -04:00
Tom Helmuth
45a61c86f7 Added parentheses requirements to 14 instructions that did not have them. 2021-11-02 12:53:39 -04:00
Tom Helmuth
d8c97e29e8 Moved macros and helpers to push/instructions.cljc 2021-11-02 12:37:06 -04:00
Tom Helmuth
0d58508bae Moved push/utils/limits.cljc to push/limits.cljc 2021-11-02 11:23:21 -04:00
Tom Helmuth
39f0f4e30f Merge branch 'fix/smallest-dont-parse-output' into fix/def-instruction-not-macro 2021-11-02 11:18:37 -04:00
Tom Helmuth
a42d23bf7a Moved push/core.cljc to push/instructions.cljc 2021-11-02 11:18:29 -04:00
Tom Helmuth
6b39e078ee Merge branch 'master' into fix/def-instruction-not-macro 2021-11-02 11:12:26 -04:00
Tom Helmuth
d6ed2456c7 Started changing away from macros in files. 2021-11-02 11:11:51 -04:00
Tom Helmuth
69a65229fe Made Smallest problem not parse printed integer. 2021-11-02 10:37:49 -04:00
Tom Helmuth
9507eca041 Changed all macros to functions. 2021-11-02 10:35:34 -04:00
Lee Spector
462e70d843
Merge pull request #32 from erp12/new_args_and_parallelism
New parameters and performance improvements
2021-11-02 10:23:20 -04:00
Ryan Boldi
18baba1e80 removed maximum errors for solutions that output values from the PSB2 problems 2021-10-31 23:32:49 -04:00
erp12
a16bbeacb9 Adds shutdown-agents to problem files 2021-10-10 16:51:54 -04:00
erp12
3a0e9560c5 Redesigns limits 2021-10-10 16:51:54 -04:00
erp12
bdf278af8f Parameterizes solution-error-threshold and mapper with defaults 2021-10-10 16:51:54 -04:00
Daniel Flores García
393f2368f2 Fix null-custom report bug when no custom-report is passed to gp 2021-08-02 10:58:23 -04:00
Daniel Flores García
f25cd75f2a Add support for a custom-report function 2021-08-01 12:19:06 -04:00
Lee Spector
461da8c939 Don't pre-expand programs passed to interpreter 2021-07-26 15:40:33 -04:00
Lee Spector
2572c706a8 Name unused argument idiomatically 2021-07-22 16:14:24 -04:00
Lee Spector
d3589b9aee Return history from interpret-program if start-state includes truthy value for :keep-history 2021-07-20 13:25:23 -04:00
Shuzo Katayama
8fae435046
Delete coin_sums.cljc 2021-07-19 16:36:31 -04:00
Shuzo Katayama
c9fe37e227
Merge branch 'lspector:master' into master 2021-07-19 16:31:10 -04:00
Shuzo Katayama
372e45895e replaced :output with :print 2021-07-19 16:26:10 -04:00
Daniel Flores García
996f6df1ba Add cljs.reader to more problems 2021-07-15 15:53:39 -04:00
Lee Spector
6ab4f6001e
Merge pull request #27 from DuckNoodleSoup/master
Single Output PSB2 Problems and New Changes
2021-07-15 12:20:07 -04:00
Shuzo Katayama
105e8faf4e single output PSB2 problems 2021-07-15 11:37:43 -04:00
Daniel Flores García
9cf15369bf Add cljs.reader to problems 2021-07-15 11:06:24 -04:00
Shuzo Katayama
8441cfe8d3 upstream update and new PSB2 problems 2021-07-14 21:25:42 -04:00
Daniel Flores García
ffc218046c Merge branch 'master' of github.com:dafg05/propeller 2021-07-14 20:39:56 -04:00
Daniel Flores García
62fc20f8e7 Change literals map to vector of vectors 2021-07-14 20:29:52 -04:00
Lee Spector
686ba1fdb2 Remove unused require 2021-07-14 16:50:33 -04:00
Shuzo Katayama
ede1abe7c4 paired digits, shopping list, snow day 2021-07-14 16:42:20 -04:00
Lee Spector
1cc2b26df2 Update -main in propeller.core to just print a message 2021-07-14 16:41:42 -04:00
Lee Spector
5240423f66 Update README; fix command-line handling of arguments 2021-07-14 16:37:21 -04:00
Lee Spector
b8da169b54 Make all problem files contain -main, gp call, and default argmap 2021-07-14 15:55:38 -04:00
Shuzo Katayama
a32b3263c5 fizz buzz, gcd, and luhn added 2021-07-14 14:55:45 -04:00
Shuzo Katayama
883840a564 fizz buzz, gcd, and luhn added 2021-07-14 14:55:23 -04:00
Lee Spector
1698c51194 Update valiant for new problem specification scheme 2021-07-13 23:19:14 -04:00
Lee Spector
94d4b9d43a Combine training and testing data in same var for consistency with other problems 2021-07-13 23:16:17 -04:00
Lee Spector
f94b991864 Update string-classification for new problem specification scheme; remove unused PSB2 argmap items 2021-07-13 23:11:58 -04:00
Lee Spector
20be7c04e3 Update twitter for new problem specification scheme 2021-07-13 23:01:19 -04:00
Lee Spector
b2fb5b1f53 Update substitution-cipher for new problem specification scheme 2021-07-13 22:56:25 -04:00
Lee Spector
3616293dc9 Update middle-character for new problem specification scheme 2021-07-13 22:53:58 -04:00
Lee Spector
1032895b8f Update fuel-cost for new problem specification scheme 2021-07-13 22:51:23 -04:00
Lee Spector
e51bdf2fab Update dice-game for new problem specification scheme 2021-07-13 22:48:54 -04:00
Lee Spector
b3b1363942 Remove redundant requires 2021-07-13 22:43:16 -04:00
Lee Spector
e4a8e3a247 Update camel-case for new problem specification scheme 2021-07-13 22:41:25 -04:00