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
This GIST is a set of java script source and input files and the pegjs parser source. |
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
Reading symbols from /usr/local/bin/node...done. | |
(gdb) info files | |
Symbols from "/usr/local/bin/node". | |
Local exec file: | |
`/usr/local/bin/node', file type elf64-x86-64. | |
Entry point: 0x5fd9e0 | |
0x0000000000400200 - 0x000000000040021c is .interp | |
0x000000000040021c - 0x000000000040023c is .note.ABI-tag | |
0x0000000000400240 - 0x0000000000426db4 is .hash | |
0x0000000000426db8 - 0x00000000004aefb8 is .dynsym |
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
const solMass = 4 * pi^2 | |
const daysPYear = 365.24 | |
immutable ThreeD | |
x::Float64 | |
y::Float64 | |
z::Float64 | |
end | |
# all these functions modify a global array, a better idea is to pass them the array |
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
function t1(x::Float64) | |
if x == 100_000_000 throw(DomainError()); end | |
return x; | |
end | |
function t2(x::Float64) | |
if x == 100_000_000 | |
return NaN; | |
else | |
return x; |
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
#include <iostream> | |
#include "clang/Frontend/FrontendActions.h" | |
#include "clang/Tooling/CommonOptionsParser.h" | |
#include "clang/Tooling/Tooling.h" | |
#include "llvm/Support/CommandLine.h" | |
#include "clang/ASTMatchers/ASTMatchers.h" | |
#include "clang/ASTMatchers/ASTMatchFinder.h" | |
using namespace std; | |
using namespace clang; |
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
Microsoft (R) COFF/PE Dumper Version 12.00.31101.0 | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Dump of file C:\Julia\julia-f875a541be\bin\libjulia.dll | |
File Type: DLL | |
Section contains the following exports for libjulia.dll |
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
bizarro% make install | |
CC usr/bin/stringreplace | |
. /Users/jeffw/src/julia/deps/julia-env/bin/activate && sphinx-build -b html -d _build/doctrees . _build/html | |
Making output directory... | |
Running Sphinx v1.2.3 | |
loading pickled environment... not yet created | |
building [html]: targets for 74 source files that are out of date | |
updating environment: 74 added, 0 changed, 0 removed | |
reading sources... [100%] stdlib/test | |
/Users/jeffw/src/julia/doc/stdlib/collections.rst:121: WARNING: duplicate object description of Base.length, other instance in /Users/jeffw/src/julia/doc/stdlib/arrays.rst, use :noindex: for one of them |
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
jeffw@dub1:~$ ps auxww | grep julia | |
jeffw 5646 1.5 11.3 8587092 85668 pts/0 S+ 19:53 0:03 julia-debug | |
jeffw 5886 0.0 0.1 9392 896 pts/1 S+ 19:57 0:00 grep --color=auto julia | |
jeffw@dub1:~$ gdb -p 5646 | |
GNU gdb (GDB) 7.5-ubuntu | |
Copyright (C) 2012 Free Software Foundation, Inc. |
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
jeffw@ub0:~/src/JavaCall.jl/src$ julia test.jl | |
Loaded /usr/lib/jvm/java-7-oracle/jre/lib/amd64/server/libjvm.so | |
[Dynamic-linking native method java.lang.Object.registerNatives ... JNI] | |
[Registering JNI native method java.lang.Object.hashCode] | |
[Registering JNI native method java.lang.Object.wait] | |
[Registering JNI native method java.lang.Object.notify] | |
[Registering JNI native method java.lang.Object.notifyAll] | |
[Registering JNI native method java.lang.Object.clone] | |
[Dynamic-linking native method java.lang.System.registerNatives ... JNI] | |
[Registering JNI native method java.lang.System.currentTimeMillis] |
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
julia> jcall(jlm, "Sin", jdouble, (jdouble,), pi/2) | |
WARNING: gc_disable() is deprecated, use gc_enable(false) instead. | |
in depwarn at ./deprecated.jl:62 | |
in gc_disable at deprecated.jl:49 | |
in jcall at /home/jeffw/.julia/v0.4/JavaCall/src/JavaCall.jl:254 | |
while loading no file, in expression starting on line 0 | |
[Dynamic-linking native method java.lang.ClassLoader.findLoadedClass0 ... JNI] | |
[Dynamic-linking native method java.lang.ClassLoader.findBootstrapClass ... JNI] | |
# | |
# A fatal error has been detected by the Java Runtime Environment: |
OlderNewer