Skip to content

Instantly share code, notes, and snippets.

ERROR in ../rust/computeNormalsRUST/computeNormalsRUST_bg.wasm
WebAssembly module is included in initial chunk.
This is not allowed, because WebAssembly download and compilation must happen asynchronous.
Add an async splitpoint (i. e. import()) somewhere between your entrypoint and the WebAssembly module:
* ../bootstrap.ts --> ../js/index.ts --> ../js/Instance.ts --> ../3dwidget/index.tsx --> ../3dwidget/gl/mesh.ts --> ../rust/computeNormalsRUST/computeNormalsRUST.js --> ../rust/computeNormalsRUST/computeNormalsRUST_bg.wasm
* ... --> ../rust/computeNormalsRUST/computeNormalsRUST.js --> ../rust/computeNormalsRUST/computeNormalsRUST_bg.wasm --> ../rust/computeNormalsRUST/computeNormalsRUST.js --> ../rust/computeNormalsRUST/computeNormalsRUST_bg.wasm
* ... --> ../js/Instance.ts --> ../js/index.ts --> ../js/Instance.ts --> ../3dwidget/index.tsx --> ../3dwidget/gl/mesh.ts --> ../rust/computeNormalsRUST/computeNormalsRUST.js --> ../rust/computeNormalsRUST/computeNormalsRUST_bg.wasm
* ... --> ../js/Instance.ts --> .
* thread #1, name = 'node', stop reason = signal SIGSEGV
* frame #0: 0x00007fffeeb074bd
frame #1: 0x00007fffee68ee2b
frame #2: 0x0000555556ae39d6 node_back`node::contextify::ContextifyScript::RunInThisContext(v8::FunctionCallbackInfo<v8::Value> const&) + 66
frame #3: 0x0000555556ae3bcb node_back`node::contextify::ContextifyScript::RunInThisContext(v8::FunctionCallbackInfo<v8::Value> const&) + 567
frame #4: 0x0000555556f43f2c node_back`std::vector<v8::internal::compiler::TopLevelLiveRange*, v8::internal::ZoneAllocator<v8::internal::compiler::TopLevelLiveRange*> >::_M_fill_insert(__gnu_cxx::__normal_iterator<v8::internal::compiler::TopLevelLiveRange**, std::vector<v8::internal::compiler::TopLevelLiveRange*, v8::internal::ZoneAllocator<v8::internal::compiler::TopLevelLiveRange*> > >, unsigned long, v8::internal::compiler::TopLevelLiveRange* const&) + 104
frame #5: 0x0000555556f46db0 node_back`v8::internal::compiler::ConstraintBuilder::MeetConstraintsAfter(int) + 156
frame #6: 0x00005555
[(set-pair e1 e2)
3 (and (identifier? #'e2))
2 (trans-match #'set?
1 #'set->list
0 (rearm+parse (syntax/loc stx (list-no-order e1 e2 dot-dot-dot))))]
@tewk
tewk / match_set.diff
Created November 19, 2012 18:50
Attempt at a set match expander for Racket match
diff --git a/collects/racket/match/parse.rkt b/collects/racket/match/parse.rkt
index 04737ba..7fc35d6 100644
--- a/collects/racket/match/parse.rkt
+++ b/collects/racket/match/parse.rkt
@@ -1,6 +1,7 @@
#lang racket/base
(require racket/struct-info
+ (for-template (only-in racket/set set-empty?))
"patterns.rkt"
require 'pp'
class Jimmy
def gencolumns
a = []
(0..8).each do |i|
a[i] = []
end
base = 0
(0..8).each do |i|
tewk@tan:~/ptics$ export SD_REPO=/home/tewk/ptics
tewk@tan:~/ptics$ sd clone --from trac:https://trac.parrot.org/parrot
Username for https://trac.parrot.org/parrot: tewk
Password for tewk: @ https://trac.parrot.org/parrot:
Use of uninitialized value $filename in -f at /usr/local/share/perl/5.10.0/Prophet/Config.pm line 34, <STDIN> line 2.
Use of uninitialized value $filename in open at /usr/local/share/perl/5.10.0/Config/GitLike.pm line 130, <STDIN> line 2.
Use of uninitialized value $filename in readlink at /usr/local/share/perl/5.10.0/Config/GitLike.pm line 957, <STDIN> line 2.
Use of uninitialized value $filename in readlink at /usr/local/share/perl/5.10.0/Config/GitLike.pm line 957, <STDIN> line 2.
Use of uninitialized value $filename in readlink at /usr/local/share/perl/5.10.0/Config/GitLike.pm line 957, <STDIN> line 2.
class Possession
def initialize
@down = 1
@starter =0
@yardline = 0
@probs = {}
run_probs = [-2,-1,0,0,1,1,1,2,2,2,2,3,3,3,3,3,3,4,5,6,]
pas_probs = [-7,-6,-5,-3,-1,0,0,0,0,0,1,2,3,4,4,4,5,5,10,15,25]
@probs['1'] = run_probs
diff --git a/config/auto/thread.pm b/config/auto/thread.pm
index ea2f2a3..33e1fe1 100644
--- a/config/auto/thread.pm
+++ b/config/auto/thread.pm
@@ -40,6 +40,11 @@ sub runstep {
if ($without) {
$conf->data->set( HAS_THREADS => 0 );
+ my $libs = $conf->data->get( 'libs' );
+ print "BEFORE $libs\n";
puts'Please enter a number from 1-100'
orig_number = gets.chomp.to_i
while orig_number >10000 or orig_number < 1
if orig_number < 0 # No negative numbers.
puts 'Please enter a number that isn\'t negative.'
end
if orig_number == 0
puts'Please enter a number from 1-10000'
puts(rand(100))
a = rand(100)
puts(a)