nit.git
9 years agocontrib/opportunity: prevent null receiver error
Alexis Laferrière [Wed, 18 Mar 2015 18:57:24 +0000 (14:57 -0400)]
contrib/opportunity: prevent null receiver error

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: More tweaks to support the Java FFI on turing
Jean Privat [Wed, 12 Nov 2014 19:10:06 +0000 (14:10 -0500)]
Merge: More tweaks to support the Java FFI on turing

Pull-Request: #903
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agoMerge: Cleanup tests
Jean Privat [Wed, 12 Nov 2014 03:14:34 +0000 (22:14 -0500)]
Merge: Cleanup tests

Cleanup in existing tests. Especially in the `fixme` category.

Pull-Request: #900
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: Opportunity
Jean Privat [Wed, 12 Nov 2014 03:14:30 +0000 (22:14 -0500)]
Merge: Opportunity

Added 2 features to Opportunity, namely the maybe option and the count for the answers, as well as a visual hint for the best answer.

Also fixed a few bugs, some Update statements were wrong.

Pull-Request: #885
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agotests: update test_ffi_java_types to be more portable
Alexis Laferrière [Tue, 11 Nov 2014 17:01:15 +0000 (12:01 -0500)]
tests: update test_ffi_java_types to be more portable

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agotests: use even more portable code to find JAVA_HOME
Alexis Laferrière [Tue, 11 Nov 2014 17:06:45 +0000 (12:06 -0500)]
tests: use even more portable code to find JAVA_HOME

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agojava: import include/linux everywhere
Alexis Laferrière [Tue, 11 Nov 2014 16:57:38 +0000 (11:57 -0500)]
java: import include/linux everywhere

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoopportunity: Tests update for new DB model
Lucas Bajolet [Mon, 10 Nov 2014 22:11:47 +0000 (17:11 -0500)]
opportunity: Tests update for new DB model

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoopportunity: Security update, blocks XSS injections.
Lucas Bajolet [Mon, 10 Nov 2014 22:14:11 +0000 (17:14 -0500)]
opportunity: Security update, blocks XSS injections.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoopportunity: Added count and score to Meetup display page
Lucas Bajolet [Mon, 10 Nov 2014 21:52:50 +0000 (16:52 -0500)]
opportunity: Added count and score to Meetup display page

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoopportunity: Various bugfixes on Model
Lucas Bajolet [Mon, 10 Nov 2014 21:51:57 +0000 (16:51 -0500)]
opportunity: Various bugfixes on Model

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoopportunity: Added maybe option
Lucas Bajolet [Mon, 10 Nov 2014 22:13:35 +0000 (17:13 -0500)]
opportunity: Added maybe option

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agotests: remove removed tests from *.skip files
Jean Privat [Tue, 11 Nov 2014 14:05:46 +0000 (09:05 -0500)]
tests: remove removed tests from *.skip files

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: add nitdoc to nitg-g.skip
Jean Privat [Tue, 11 Nov 2014 04:18:37 +0000 (23:18 -0500)]
tests: add nitdoc to nitg-g.skip

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: remove sav/nitc/base_for_nullable*.res
Jean Privat [Tue, 11 Nov 2014 03:52:21 +0000 (22:52 -0500)]
tests: remove sav/nitc/base_for_nullable*.res

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: add sav/nitg-sg/fixme/test_platform_android.res as UNDEFINED
Jean Privat [Tue, 11 Nov 2014 03:50:04 +0000 (22:50 -0500)]
tests: add sav/nitg-sg/fixme/test_platform_android.res as UNDEFINED

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: reactivate init_inherit and init_linext
Jean Privat [Tue, 11 Nov 2014 03:48:03 +0000 (22:48 -0500)]
tests: reactivate init_inherit and init_linext

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: factorize some sav in sav/nitg-common
Jean Privat [Tue, 11 Nov 2014 03:35:05 +0000 (22:35 -0500)]
tests: factorize some sav in sav/nitg-common

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: cleanup some old fixme
Jean Privat [Tue, 11 Nov 2014 03:16:46 +0000 (22:16 -0500)]
tests: cleanup some old fixme

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: Minor fixes to support the Turing cluster
Jean Privat [Mon, 10 Nov 2014 23:35:15 +0000 (18:35 -0500)]
Merge: Minor fixes to support the Turing cluster

Review only the last 2 commits here and ignore the first batch of commits they are from #886.

Enables testing of sqlite, jvm and all Java FFI tests on Turing.

Pull-Request: #897
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agoMerge: MModule has a c_name
Jean Privat [Mon, 10 Nov 2014 23:35:07 +0000 (18:35 -0500)]
Merge: MModule has a c_name

In compiler/, all entities have a `c_name` method to get a fully qualified mangled C identifier also usable to name files. All, except for one small class of indomitable entities that still holds out against the namespaces.

`c_name` where developed before the proposition of projects. This PR add a `c_name` for mmodules and update the places where its simple name was used.

Pull-Request: #898
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: nitdoc: escape text in generated dot files
Jean Privat [Mon, 10 Nov 2014 23:33:12 +0000 (18:33 -0500)]
Merge: nitdoc: escape text in generated dot files

Unescaping names in dot files generated by nitdoc seems causes the recent failures on jenkins.

The bug was present since the new nitdoc but expressed by #883 that exposes the name of the project in the dot-file:
* On Jenkins, multiple workspace are identified with a @. eq. `workspace@2`
* The name of a Nit project is the name of the directory
* Therefore  the `dot` command aborted when an identifier with @ was found, thus did not produce a map file.
* Therefore nitdoc aborted on the opening of the map file (to include in the HTML)

Retated to #891

Pull-Request: #894
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agotests: base_conflict_submodule_name now pass on all engines
Jean Privat [Mon, 10 Nov 2014 19:57:21 +0000 (14:57 -0500)]
tests: base_conflict_submodule_name now pass on all engines

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agocompiler: add and use `MModule::c_name`
Jean Privat [Mon, 10 Nov 2014 19:54:41 +0000 (14:54 -0500)]
compiler: add and use `MModule::c_name`

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: neo4j: Proof of concept for JSON serialization.
Jean Privat [Mon, 10 Nov 2014 19:28:58 +0000 (14:28 -0500)]
Merge: neo4j: Proof of concept for JSON serialization.

This a quick and dirty proof of concept for JSON serialization of graphs (see issue #853). After the refactoring of the JSON APIs and of the graph APIs (@Morriar and @xymus know what I’m talking about), there will be a cleaner way to do this. But, because the promised APIs take more time than expected to design, I implemented a working solution with what it is already there to give you at least a rough idea of the serialization logic that I have in mind.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #890
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: nitester over MPI and jenkins
Jean Privat [Mon, 10 Nov 2014 19:28:49 +0000 (14:28 -0500)]
Merge: nitester over MPI and jenkins

Add compatibility with Jenkins and some improvements to the tester.

This PR should be testable over MPI on Jenkins.

Pull-Request: #886
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agolib/sqlite3: use `sqlite3_close` when `sqlite3_close_v2` is not available
Alexis Laferrière [Mon, 10 Nov 2014 19:00:51 +0000 (14:00 -0500)]
lib/sqlite3: use `sqlite3_close` when `sqlite3_close_v2` is not available

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agolib/jvm: inlude .h files in JAVA_HOME/inlude/linux if it exists
Alexis Laferrière [Mon, 10 Nov 2014 19:00:08 +0000 (14:00 -0500)]
lib/jvm: inlude .h files in JAVA_HOME/inlude/linux if it exists

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: nitdoc: Escape paths passed to the shell.
Jean Privat [Mon, 10 Nov 2014 16:57:30 +0000 (11:57 -0500)]
Merge:  nitdoc: Escape paths passed to the shell.

While investigating for a possible source of the recent Jenkins crashes when generating documentation, I found that Nitdoc was not escaping paths in its shell commands properly. So, this PR fix that mistake.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #893
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: Combinations on collection
Jean Privat [Mon, 10 Nov 2014 16:57:14 +0000 (11:57 -0500)]
Merge: Combinations on collection

Some addition to the library for cartesian product and other combinatoric constructions.

Memory-efficient classes are proposed, however, the current limitation over the infinite types in RTA (and in the compilation strategies in --separate et --global) reduces the usage of simple methods that could have abstracted the underlying implementation.

Pull-Request: #892
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: makefiles: do not uselessly use --global
Jean Privat [Mon, 10 Nov 2014 16:57:05 +0000 (11:57 -0500)]
Merge: makefiles: do not uselessly use --global

Pull-Request: #889
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agotests: update because line changes in lib
Jean Privat [Sat, 8 Nov 2014 15:32:10 +0000 (10:32 -0500)]
tests: update because line changes in lib

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib: add cartesian.nit a libraby for heterogenus cartesian products
Jean Privat [Sat, 8 Nov 2014 03:56:28 +0000 (22:56 -0500)]
lib: add cartesian.nit a libraby for heterogenus cartesian products

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib: add combinations.nit for combinatoric collections
Jean Privat [Sat, 8 Nov 2014 03:35:14 +0000 (22:35 -0500)]
lib: add combinations.nit for combinatoric collections

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agonitdoc: escape text in generated dot files
Jean Privat [Mon, 10 Nov 2014 15:31:58 +0000 (10:31 -0500)]
nitdoc: escape text in generated dot files

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agomakefiles: do not uselessly use --global
Jean Privat [Fri, 7 Nov 2014 18:25:32 +0000 (13:25 -0500)]
makefiles: do not uselessly use --global

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: Fix FFI global compilation on duplicated callbacks across modules
Jean Privat [Sun, 9 Nov 2014 14:21:10 +0000 (09:21 -0500)]
Merge: Fix FFI global compilation on duplicated callbacks across modules

Replaces #739.

Fixes the C++ FFI bug and also the underlying C FFI bug. Still compiles the implementation of callbacks only once, but generates the redirections and aliases for each modules.

Pull-Request: #888
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agonitdoc: Escape paths passed to the shell.
Jean-Christophe Beaupré [Sat, 8 Nov 2014 04:28:12 +0000 (23:28 -0500)]
nitdoc: Escape paths passed to the shell.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agostring: Add escaping for the POSIX Shell.
Jean-Christophe Beaupré [Sat, 8 Nov 2014 04:24:08 +0000 (23:24 -0500)]
string: Add escaping for the POSIX Shell.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agolib: add Int::factorial
Jean Privat [Sat, 8 Nov 2014 03:34:17 +0000 (22:34 -0500)]
lib: add Int::factorial

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib: add Int::** for power
Jean Privat [Sat, 8 Nov 2014 01:34:43 +0000 (20:34 -0500)]
lib: add Int::** for power

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib: add Array::* for repetitions
Jean Privat [Sat, 8 Nov 2014 01:33:55 +0000 (20:33 -0500)]
lib: add Array::* for repetitions

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoneo4j: Add a library to store graphs in JSON.
Jean-Christophe Beaupré [Fri, 7 Nov 2014 20:11:42 +0000 (15:11 -0500)]
neo4j: Add a library to store graphs in JSON.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo4j: Remove ambiguous `to_json` methods.
Jean-Christophe Beaupré [Fri, 7 Nov 2014 20:10:10 +0000 (15:10 -0500)]
neo4j: Remove ambiguous `to_json` methods.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agotests: modify ai::puzzle, nitmetrics and nitunit to not print outdir dependant strings
Alexis Laferrière [Fri, 7 Nov 2014 14:03:52 +0000 (09:03 -0500)]
tests: modify ai::puzzle, nitmetrics and nitunit to not print outdir dependant strings

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agojenkins: add the nitester-wrapper script
Alexis Laferrière [Fri, 7 Nov 2014 01:38:04 +0000 (20:38 -0500)]
jenkins: add the nitester-wrapper script

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitg/ffi: fix global compilation errors and warning on duplicated callbacks
Alexis Laferrière [Fri, 7 Nov 2014 18:02:04 +0000 (13:02 -0500)]
nitg/ffi: fix global compilation errors and warning on duplicated callbacks

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agotests: test the global compilation bug in FFI on duplicated callbacks
Alexis Laferrière [Fri, 7 Nov 2014 18:08:18 +0000 (13:08 -0500)]
tests: test the global compilation bug in FFI on duplicated callbacks

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agotests: add C++ FFI test to detect bug #737
Alexis Laferrière [Fri, 7 Nov 2014 15:40:32 +0000 (10:40 -0500)]
tests: add C++ FFI test to detect bug #737

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitester: use a hashed filename for produced xml files to avoid conflicts
Alexis Laferrière [Fri, 7 Nov 2014 00:54:39 +0000 (19:54 -0500)]
nitester: use a hashed filename for produced xml files to avoid conflicts

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitester: fix bug where nodes worked on one more task per packet
Alexis Laferrière [Fri, 7 Nov 2014 00:53:12 +0000 (19:53 -0500)]
nitester: fix bug where nodes worked on one more task per packet

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitester: support todo and skip exec test results
Alexis Laferrière [Fri, 7 Nov 2014 00:51:03 +0000 (19:51 -0500)]
nitester: support todo and skip exec test results

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitester: order tasks per test before engine for a better distribution
Alexis Laferrière [Fri, 7 Nov 2014 00:48:49 +0000 (19:48 -0500)]
nitester: order tasks per test before engine for a better distribution

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitester: set packet size to a single test
Alexis Laferrière [Fri, 7 Nov 2014 00:46:45 +0000 (19:46 -0500)]
nitester: set packet size to a single test

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitester: do not use nit copy dir, it doesn't affect performance
Alexis Laferrière [Wed, 5 Nov 2014 21:56:50 +0000 (16:56 -0500)]
nitester: do not use nit copy dir, it doesn't affect performance

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitester: do not use -j1 because it is not recognised by niti
Alexis Laferrière [Fri, 7 Nov 2014 01:10:45 +0000 (20:10 -0500)]
nitester: do not use -j1 because it is not recognised by niti

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitester: keep Jenkin's xml files in a common directory
Alexis Laferrière [Fri, 24 Oct 2014 11:32:30 +0000 (07:32 -0400)]
nitester: keep Jenkin's xml files in a common directory

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agotests: reorder listfull.sh to begin with longer tests
Alexis Laferrière [Fri, 7 Nov 2014 00:45:28 +0000 (19:45 -0500)]
tests: reorder listfull.sh to begin with longer tests

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agounitrun: fix use of time command
Alexis Laferrière [Fri, 24 Oct 2014 11:31:26 +0000 (07:31 -0400)]
unitrun: fix use of time command

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: Method dispatch in nitvm
Jean Privat [Fri, 7 Nov 2014 03:37:40 +0000 (22:37 -0500)]
Merge: Method dispatch in nitvm

The method dispatch in the nitvm is now functionnal with perfect hashing.

The dispatch is made by using the virtual table of the class.

Signed-off-by: Julien Pagès <julien.projet@gmail.com>

Pull-Request: #851
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Useful Java services
Jean Privat [Fri, 7 Nov 2014 03:37:11 +0000 (22:37 -0500)]
Merge: Useful Java services

redef `JavaObject::to_s` and intro `JavaObject::is_java_null` with doc

Pull-Request: #821
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agoMerge: Ropes
Jean Privat [Thu, 6 Nov 2014 23:00:22 +0000 (18:00 -0500)]
Merge: Ropes

Here they are, after a few months hiding in the fiery depths of the dumpster™, they return, once more.

The Ropes are back, and they're looking for trouble.

On a more serious note, they look a lot more performing than before, thanks to a wrapper-less structure.

The code is also simpler to read and understand (and there's lots more of documentation, I figured @Morriar would like that).

Finally, you can use Strings in a transparent way, never to create Ropes on your own, now the library does it for you.

Furthermore, `RopeBuffer` pridefully returns with the promises of crushing the `FlatBuffer` when concatenating stuff and resisting a bit more to longer strings.
(NDLR: Single-character modifications will be slow.)

Pull-Request: #829
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: nitdoc: Fix name mangling for graphs.
Jean Privat [Thu, 6 Nov 2014 22:59:07 +0000 (17:59 -0500)]
Merge: nitdoc: Fix name mangling for graphs.

Fix #881.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #883
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: lib/poset: split `show_dot` in two methods
Jean Privat [Thu, 6 Nov 2014 22:59:03 +0000 (17:59 -0500)]
Merge: lib/poset: split `show_dot` in two methods

And escape the strings!

Pull-Request: #884
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agonitdoc: Change uses of FlatBuffer to RopeBuffer in nitdoc
Lucas Bajolet [Tue, 28 Oct 2014 15:51:00 +0000 (11:51 -0400)]
nitdoc: Change uses of FlatBuffer to RopeBuffer in nitdoc

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agobenchmarks/strings: Adapted for new Ropes.
Lucas Bajolet [Mon, 8 Sep 2014 14:16:14 +0000 (10:16 -0400)]
benchmarks/strings: Adapted for new Ropes.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agolib/standard: Re-activate ropes in standard
Lucas Bajolet [Wed, 15 Oct 2014 14:43:28 +0000 (10:43 -0400)]
lib/standard: Re-activate ropes in standard

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agotests: Updated tests for new Ropes
Lucas Bajolet [Tue, 4 Nov 2014 20:48:16 +0000 (15:48 -0500)]
tests: Updated tests for new Ropes

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agolib: Updated lib for compliance with the new ropes
Lucas Bajolet [Tue, 14 Oct 2014 16:46:06 +0000 (12:46 -0400)]
lib: Updated lib for compliance with the new ropes

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agolib/standard/ropes: Introducing RopeBuffer, a mutable `Rope` optimized for concatenat...
Lucas Bajolet [Thu, 23 Oct 2014 17:19:00 +0000 (13:19 -0400)]
lib/standard/ropes: Introducing RopeBuffer, a mutable `Rope` optimized for concatenations.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agolib/ropes: Added buffered variant of Ropes.
Lucas Bajolet [Tue, 21 Oct 2014 14:29:44 +0000 (10:29 -0400)]
lib/ropes: Added buffered variant of Ropes.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agonitdoc: Fix name mangling for graphs.
Jean-Christophe Beaupré [Wed, 5 Nov 2014 21:19:17 +0000 (16:19 -0500)]
nitdoc: Fix name mangling for graphs.

Fix #881.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agonitvm: Method dispatch is functionnal with perfect hashing
Julien Pagès [Mon, 27 Oct 2014 15:30:48 +0000 (16:30 +0100)]
nitvm: Method dispatch is functionnal with perfect hashing

Signed-off-by: Julien Pagès <julien.projet@gmail.com>

9 years agolib/poset: split `show_dot` in two methods
Jean Privat [Thu, 6 Nov 2014 14:56:14 +0000 (09:56 -0500)]
lib/poset: split `show_dot` in two methods

And escape the strings!

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: Java FFI global compilation fix
Jean Privat [Thu, 6 Nov 2014 01:03:20 +0000 (20:03 -0500)]
Merge: Java FFI global compilation fix

Fixes:
* Undefined references on unused callbacks with nitg-g
* Duplicated functions on callbacks present in 2 modules

Pull-Request: #879
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agoMerge: More manual
Jean Privat [Thu, 6 Nov 2014 01:02:52 +0000 (20:02 -0500)]
Merge: More manual

This improves the documentation of the other nit tools.

It could be better to read them on the http://nitlanguage.org/tools/ since this PR also enable the synchronization of the manpage on the website.

Documentation of `nit` is copied from http://nitlanguage.org/debugger/
Documentation of `nitunit` is copied from https://github.com/privat/nit/blob/master/src/testing/README

Note: a lot of options are common to the tools because they share the same frontend.
Usually, to simplify the manpages, I only indicated the options specific to the tool.

I am not fond to copy-paste each common options among all the tools, especially when the tool has only one or two original option but more than 30 *inherited* options.
Maybe creatie a `nitcli(7)` manpage that regroup common options and conventions among our tools. (à la `gitcli(7)`) ?

Pull-Request: #880
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Use new constructors
Jean Privat [Thu, 6 Nov 2014 01:02:17 +0000 (20:02 -0500)]
Merge: Use new constructors

Since c_src is regenerated, new-style-constructors are available in lib and tools.

Most of the job was to just to remove useless `init` and sometime adding a `noinit` or a default value to attributes.

Pull-Request: #866
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitg/ffi: fix indirect function declaration in C++ FFI
Alexis Laferrière [Wed, 5 Nov 2014 19:56:32 +0000 (14:56 -0500)]
nitg/ffi: fix indirect function declaration in C++ FFI

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agotests:update because of line changes in lib
Jean Privat [Mon, 3 Nov 2014 07:33:13 +0000 (02:33 -0500)]
tests:update because of line changes in lib

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agocontrib: update clients of lib
Jean Privat [Mon, 3 Nov 2014 07:22:56 +0000 (02:22 -0500)]
contrib: update clients of lib

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agosrc: update most tools to new constructors
Jean Privat [Wed, 5 Nov 2014 19:52:53 +0000 (14:52 -0500)]
src: update most tools to new constructors

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoman: rewrite the documentation of the other tools
Jean Privat [Wed, 5 Nov 2014 16:00:52 +0000 (11:00 -0500)]
man: rewrite the documentation of the other tools

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoman: update nitg because of #873
Jean Privat [Tue, 4 Nov 2014 20:00:03 +0000 (15:00 -0500)]
man: update nitg because of #873

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoman: add .gitignore
Jean Privat [Wed, 5 Nov 2014 02:21:03 +0000 (21:21 -0500)]
man: add .gitignore

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoman: Makefile produce mdwn for ikiwiki
Jean Privat [Tue, 4 Nov 2014 16:00:43 +0000 (11:00 -0500)]
man: Makefile produce mdwn for ikiwiki

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: No auto super in new
Jean Privat [Wed, 5 Nov 2014 02:17:05 +0000 (21:17 -0500)]
Merge: No auto super in new

Close #877

Pull-Request: #878
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agotests: update other tests related the error message on new
Jean Privat [Wed, 5 Nov 2014 00:53:21 +0000 (19:53 -0500)]
tests: update other tests related the error message on new

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: add a test for Java FFI support in global compilation
Alexis Laferrière [Tue, 4 Nov 2014 21:45:05 +0000 (16:45 -0500)]
tests: add a test for Java FFI support in global compilation

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitg/ffi: local functions in C are `static`
Alexis Laferrière [Tue, 4 Nov 2014 21:39:31 +0000 (16:39 -0500)]
nitg/ffi: local functions in C are `static`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitg/ffi: fix Java FFI support in nitg-g
Alexis Laferrière [Tue, 4 Nov 2014 21:41:15 +0000 (16:41 -0500)]
nitg/ffi: fix Java FFI support in nitg-g

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agostd: Bug fix in perfect_hashing and delete whitespaces
Julien Pagès [Tue, 4 Nov 2014 20:37:58 +0000 (21:37 +0100)]
std: Bug fix in perfect_hashing and delete whitespaces

Signed-off-by: Julien Pagès <julien.projet@gmail.com>

9 years agolib/standard/ropes: Rewrote ropes base block.
Lucas Bajolet [Tue, 21 Oct 2014 14:25:41 +0000 (10:25 -0400)]
lib/standard/ropes: Rewrote ropes base block.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agolib/standard/ropes: Removed ropes.nit from standard library
Lucas Bajolet [Wed, 3 Sep 2014 14:18:48 +0000 (10:18 -0400)]
lib/standard/ropes: Removed ropes.nit from standard library

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agolib/standard/string: Added redef for substrings in String
Lucas Bajolet [Tue, 4 Nov 2014 15:54:11 +0000 (10:54 -0500)]
lib/standard/string: Added redef for substrings in String

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agolib/standard/string: Fixed bug in to_s implementations in NativeString
Lucas Bajolet [Tue, 4 Nov 2014 20:43:18 +0000 (15:43 -0500)]
lib/standard/string: Fixed bug in to_s implementations in NativeString

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agotests: update base_new to prevent #877
Jean Privat [Tue, 4 Nov 2014 20:25:26 +0000 (15:25 -0500)]
tests: update base_new to prevent #877

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotyping: prefix instantiation error with `Type Error`
Jean Privat [Tue, 4 Nov 2014 20:24:45 +0000 (15:24 -0500)]
typing: prefix instantiation error with `Type Error`

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agosemantize: do not auto_super_init `new`-factories
Jean Privat [Tue, 4 Nov 2014 20:23:27 +0000 (15:23 -0500)]
semantize: do not auto_super_init `new`-factories

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: neo_doxygen: Introduce a tool to import a Doxygen model.
Jean Privat [Tue, 4 Nov 2014 20:11:20 +0000 (15:11 -0500)]
Merge: neo_doxygen: Introduce a tool to import a Doxygen model.

This tool converts the XML output generated by Doxygen to a Neo4j graph suitable for `neo.nit`.

In summary, the following is imported:
* Namespaces
* Files, generating one module for each file-namespace pair
* Classes, with inheritances
* Members, with signatures and redefinition relationships (when Doxygen provide them)
* Documentation (without formatting for the moment)

Concerning language-specific support, only some Java keywords are correctly interpreted at this point.

Note: `/contrib/neo_doxygen/gen-all.sh` and `/contrib/neo_doxygen/gen-once.sh` call `nx`, so they require PR #744.

Note2: the merge commit updates `neo.nit` to correctly merge with #872

Pull-Request: #867
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: Pkgconfig
Jean Privat [Tue, 4 Nov 2014 20:08:20 +0000 (15:08 -0500)]
Merge: Pkgconfig

Generalize the usage of pkg-config so that this command is executed by the Makefile and not the nitg compiler.

This will improve the portability of programs when the .nit_compile directory is distributed.
And thus, the initial bootstrap with `c_src`.

This is a first step toward the resolution of #864.

Pull-Request: #874
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>