callumenator / dabble Goto Github PK
View Code? Open in Web Editor NEWA repl for the D programming language
A repl for the D programming language
Hello. Can you make downloadable released packages for known stable versions of dabble which work with known stable versions of dmd and other dependencies? As it is, I never know when to pull and when not, for fear of not having dabble work...
Thanks!
I'm using the latest dub release (v0.9.19) and can't build the two configurations.
Here is the error msg:
dub run
Fetching pegged ~master (getting selected version)...
Placing pegged ~master to /Users/kaiyin/.dub/packages/...
## Warning for package dabble ##
The following compiler flags have been specified in the package description
file. They are handled by DUB and direct use in packages is discouraged.
Alternatively, you can set the DFLAGS environment variable to pass custom flags
to the compiler, or use one of the suggestions below:
-release: Call dub with --build=release
WARNING: A deprecated branch based version specification is used for the dependency pegged. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
Performing "debug" build using dmd for x86_64.
pegged ~master: building configuration "library"...
dabble ~master: building configuration "application"...
src/DCD/msgpack-d/src/msgpack.d(2904,5): Deprecation: constructor msgpack.Value.this all parameters have default arguments, but structs cannot have default constructors.
/Library/D/dmd/src/phobos/std/container/rbtree.d(831,25): Error: function modulecache.cacheComparitor (CacheEntry* a, CacheEntry* b) is not callable using argument types (inout(CacheEntry*), CacheEntry*)
/Library/D/dmd/src/phobos/std/container/rbtree.d(833,30): Error: function modulecache.cacheComparitor (CacheEntry* a, CacheEntry* b) is not callable using argument types (CacheEntry*, inout(CacheEntry*))
/Library/D/dmd/src/phobos/std/container/rbtree.d(1464,21): Error: function modulecache.cacheComparitor (CacheEntry* a, CacheEntry* b) is not callable using argument types (CacheEntry*, inout(CacheEntry*))
/Library/D/dmd/src/phobos/std/container/rbtree.d(1483,21): Error: function modulecache.cacheComparitor (CacheEntry* a, CacheEntry* b) is not callable using argument types (inout(CacheEntry*), CacheEntry*)
src/DCD/modulecache.d(230,9): Error: template instance std.container.rbtree.RedBlackTree!(CacheEntry*, cacheComparitor, false) error instantiating
src/DCD/modulecache.d(115,29): Error: forward reference to inferred return type of function call cache.equalRange(& e)
src/DCD/modulecache.d(220,28): Error: forward reference to inferred return type of function call cache.equalRange(& e)
src/dabble/defs.d(46,12): Error: no property 'clear' for type 'Type*[string]'
src/dabble/defs.d(47,13): Error: no property 'clear' for type 'Var[]'
src/dabble/defs.d(48,14): Error: no property 'clear' for type 'Decl[]'
src/dabble/defs.d(49,14): Error: no property 'clear' for type 'Vtbl[]'
src/dabble/meta.d(20,12): Deprecation: function std.process.system is deprecated - Please use wait(spawnShell(command)) or executeShell(command) instead
src/dabble/meta.d(20,12): Deprecation: function std.process.system is deprecated - Please use wait(spawnShell(command)) or executeShell(command) instead
src/dabble/meta.d(124,26): Error: no property 'clear' for type 'SharedLib[]'
src/dabble/meta.d(174,27): Error: no property 'clear' for type 'string'
src/dabble/meta.d(191,12): Error: no property 'clear' for type 'string'
src/dabble/parser.d(63,15): Error: no property 'clear' for type 'Tuple!(ulong, ulong, string)[]'
src/dabble/parser.d(64,16): Error: no property 'clear' for type 'Tuple!(ulong, ulong)[]'
src/dabble/parser.d(172,18): Error: no property 'clear' for type 'string[]'
src/dabble/parser.d(173,19): Error: no property 'clear' for type 'string[][]'
src/dabble/repl.d(205,12): Error: no property 'clear' for type 'Tuple!(string, "stage", long, "msecs")[]'
dmd failed with exit code 1.
Hello. You might have heard of IPython which provides terminal, Qt-based graphical and web-browser based REPL interfaces to Python as can be seen here. It is now separated out into the language-agnostic Jupyter which also provides the same terminal, Qt-based and web-based interfaces.
Being language-agnostic, it runs individual language kernels. There are already plugins for many languages, including C++.
I would like to suggest that you consider porting Dabble to the Jupyter protocol. It seems to me that instead of doing everything over from scratch (and be limited to features you are able to code yourself โ like being terminal-only), it would be make it easy to leverage the multiple features that Jupyter provides.
Thanks!
DUB version 0.9.23, built on Apr 6 2015
DMD32 D Compiler v2.067.0
src\dabble\defs.d(68): Error: template instance std.array.array!(FilterResult!(__lambda1, Var[])) error instantiating
src\dabble\defs.d(77): Error: template instance std.array.array!(FilterResult!(__lambda2, Var[])) error instantiating
src\dabble\repl.d(550): Error: no property 'name' for type 'string'
src\dabble\repl.d(750): Error: module std.datetime import 'getTimes' not found
This is what I see in the repl when entering a simple expression:
DABBLE: (DMD 2.064)
>> 2 + 2;
/usr/bin/ld: extra.a(defs.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
extra.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
testCompile.d(25): Error: + has no effect in expression (2 + 2)
Repl was built with DMD in 64-bit mode using DUB (after cosmetic changes from pull req #3).
Ubuntu 12.04, amd64.
This are the message when trying to build with the dmd 2.068.0:
dub run
The following compiler flags have been specified in the package description
file. They are handled by DUB and direct use in packages is discouraged.
Alternatively, you can set the DFLAGS environment variable to pass custom flags
to the compiler, or use one of the suggestions below:
-release: Call dub with --build=release
WARNING: A deprecated branch based version specification is used for the dependency pegged. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
Performing "debug" build using dmd for x86_64.
pegged ~master: target for configuration "library" is up to date.
dabble ~master: building configuration "application"...
/usr/include/dmd/phobos/std/container/rbtree.d(823,25): Error: function modulecache.cacheComparitor (CacheEntry* a, CacheEntry* b) is not callable using argument types (inout(CacheEntry_), CacheEntry_)
/usr/include/dmd/phobos/std/container/rbtree.d(825,30): Error: function modulecache.cacheComparitor (CacheEntry* a, CacheEntry* b) is not callable using argument types (CacheEntry_, inout(CacheEntry_))
src/DCD/modulecache.d(230,9): Error: template instance std.container.rbtree.RedBlackTree!(CacheEntry_, cacheComparitor, false) error instantiating
src/dabble/defs.d(46,12): Error: no property 'clear' for type 'Type_[string]'
src/dabble/defs.d(47,13): Error: no property 'clear' for type 'Var[]'
src/dabble/defs.d(48,14): Error: no property 'clear' for type 'Decl[]'
src/dabble/defs.d(49,14): Error: no property 'clear' for type 'Vtbl[]'
src/dabble/meta.d(20,12): Deprecation: function std.process.system is deprecated - Please use wait(spawnShell(command)) or executeShell(command) instead
src/dabble/meta.d(124,26): Error: no property 'clear' for type 'SharedLib[]'
src/dabble/meta.d(174,27): Error: no property 'clear' for type 'string'
src/dabble/meta.d(191,12): Error: no property 'clear' for type 'string'
src/dabble/parser.d(63,15): Error: no property 'clear' for type 'Tuple!(ulong, ulong, string)[]'
src/dabble/parser.d(64,16): Error: no property 'clear' for type 'Tuple!(ulong, ulong)[]'
src/dabble/parser.d(172,18): Error: no property 'clear' for type 'string[]'
src/dabble/parser.d(173,19): Error: no property 'clear' for type 'string[][]'
src/dabble/repl.d(205,12): Error: no property 'clear' for type 'Tuple!(string, "stage", long, "msecs")[]'
src/dabble/repl.d(222,14): Error: no property 'clear' for type 'string'
src/dabble/repl.d(231,14): Error: no property 'clear' for type 'string'
src/dabble/repl.d(277,16): Error: no property 'clear' for type 'Entry[]'
src/dabble/repl.d(278,14): Error: no property 'clear' for type 'Entry[]'
dmd failed with exit code 1.
Hello.
Why it donot work ?
>dub build --config=console
Checking dependencies in '/home/s-y/dabble'
Error: Conflicting configurations for package pegged
When I try to compile this project, I get:
dabble/parser.d(22): Error: module lexer is in file 'stdx/d/lexer.d' which cannot be read
indeed there's no .json or anything
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.