nit.git
9 years agocompiler: resolve types when doing new NativeArray
Jean Privat [Wed, 19 Nov 2014 02:08:03 +0000 (21:08 -0500)]
compiler: resolve types when doing new NativeArray

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

9 years agoexamples/rosettacode: update ab to not crash on tests
Jean Privat [Wed, 19 Nov 2014 02:05:21 +0000 (21:05 -0500)]
examples/rosettacode: update ab to not crash on tests

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

9 years agolib/hash: HashCollection::N become a virtual type
Jean Privat [Tue, 18 Nov 2014 21:24:22 +0000 (16:24 -0500)]
lib/hash: HashCollection::N become a virtual type

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

9 years agolib: remove class StringCapable
Jean Privat [Tue, 18 Nov 2014 18:37:19 +0000 (13:37 -0500)]
lib: remove class StringCapable

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

9 years agolib: kill the class ArrayCapable
Jean Privat [Tue, 18 Nov 2014 17:10:31 +0000 (12:10 -0500)]
lib: kill the class ArrayCapable

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

9 years agoMerge: Srand by default
Jean Privat [Mon, 17 Nov 2014 22:55:32 +0000 (17:55 -0500)]
Merge: Srand by default

Some people found that it is not KISS nor POLA to have `rand` that is not random by default.

So let's just call `srand` during the init of Sys.

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

9 years agoMerge: Misc fixes and improvements from WBTW
Jean Privat [Mon, 17 Nov 2014 22:55:29 +0000 (17:55 -0500)]
Merge: Misc fixes and improvements from WBTW

Pull-Request: #915
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: Force standard as public
Jean Privat [Mon, 17 Nov 2014 22:55:25 +0000 (17:55 -0500)]
Merge: Force standard as public

Standard me become privately imported when importing only modules privately.
Thus, some sub-modules cannot see standard.

This PR force standard to be always public if it is imported.

Close #909

Pull-Request: #913
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Improve docunits
Jean Privat [Mon, 17 Nov 2014 22:55:18 +0000 (17:55 -0500)]
Merge: Improve docunits

This PR change a little the behavior of docunits.

First, blocks respect more the markdown specification where empty lines are authorized in code blocks

So this make a single code block and not two:

~~~~
# bla bla
#
#    var a = 1
#
#    assert a == 1
~~~~

Pull-Request: #908
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoshoot: headless run forces a `srand_from(0)`
Jean Privat [Mon, 17 Nov 2014 18:45:51 +0000 (13:45 -0500)]
shoot: headless run forces a `srand_from(0)`

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

9 years agolib/mnit: injected_input forces a srand_from(0)
Jean Privat [Mon, 17 Nov 2014 18:45:27 +0000 (13:45 -0500)]
lib/mnit: injected_input forces a srand_from(0)

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

9 years agocontrib/friendz: update to use new type of `TileSetFont::hspace`
Alexis Laferrière [Mon, 17 Nov 2014 17:40:20 +0000 (12:40 -0500)]
contrib/friendz: update to use new type of `TileSetFont::hspace`

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

9 years agolib/math: documents `srand` and `srand_from`
Jean Privat [Mon, 17 Nov 2014 16:20:38 +0000 (11:20 -0500)]
lib/math: documents `srand` and `srand_from`

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

9 years agolib/string: allocate enough memory for '\0' in `String::native_int_to_s`
Alexis Laferrière [Mon, 17 Nov 2014 13:59:16 +0000 (08:59 -0500)]
lib/string: allocate enough memory for '\0' in `String::native_int_to_s`

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

9 years agolib/jvm: fix returns from C implementations
Alexis Laferrière [Wed, 12 Nov 2014 04:53:55 +0000 (23:53 -0500)]
lib/jvm: fix returns from C implementations

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

9 years agoandroid_mnit: free textures from main memory after loading in GPU memory
Alexis Laferrière [Sun, 16 Nov 2014 22:38:39 +0000 (17:38 -0500)]
android_mnit: free textures from main memory after loading in GPU memory

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

9 years agolib/standard: call srand by default
Jean Privat [Mon, 17 Nov 2014 16:09:32 +0000 (11:09 -0500)]
lib/standard: call srand by default

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

9 years agointerpreter: implements srand
Jean Privat [Mon, 17 Nov 2014 16:09:07 +0000 (11:09 -0500)]
interpreter: implements srand

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

9 years agoMerge: lib: Enhanced DisjointSet data structure
Jean Privat [Mon, 17 Nov 2014 15:54:17 +0000 (10:54 -0500)]
Merge: lib: Enhanced DisjointSet data structure

It is now possible to retrieve the number of subsets in the partition by
using the 'number_of_subsets' property. It is useful for intsance when
one wants to know if the partition is a singleton, or if is trivial
(every element is alone in its subset).

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

9 years agoandroid_mnit: standardize gray PNG files as RGB to please OpenGL ES 1.0
Alexis Laferrière [Sun, 16 Nov 2014 22:38:10 +0000 (17:38 -0500)]
android_mnit: standardize gray PNG files as RGB to please OpenGL ES 1.0

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

9 years agoandroid_mnit: support more PNG color formats
Alexis Laferrière [Sun, 16 Nov 2014 20:56:01 +0000 (15:56 -0500)]
android_mnit: support more PNG color formats

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

9 years agoa_star: remove debug options (even unused, they take to much work)
Alexis Laferrière [Sun, 16 Nov 2014 01:27:25 +0000 (20:27 -0500)]
a_star: remove debug options (even unused, they take to much work)

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

9 years agolib/bucketed_game: fix error in cache optimization
Alexis Laferrière [Mon, 13 Oct 2014 17:02:03 +0000 (13:02 -0400)]
lib/bucketed_game: fix error in cache optimization

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

9 years agotests: update and improve tests for nitunit
Jean Privat [Mon, 17 Nov 2014 15:45:42 +0000 (10:45 -0500)]
tests: update and improve tests for nitunit

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

9 years agolib/tileset: use Numerics for `hspace` and `vspace`
Alexis Laferrière [Mon, 10 Nov 2014 21:04:15 +0000 (16:04 -0500)]
lib/tileset: use Numerics for `hspace` and `vspace`

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

9 years agotests: add base_import_standard*.nit
Jean Privat [Mon, 17 Nov 2014 14:43:20 +0000 (09:43 -0500)]
tests: add base_import_standard*.nit

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

9 years agomodelbuilder: force `standard` to be imported
Jean Privat [Mon, 17 Nov 2014 14:42:30 +0000 (09:42 -0500)]
modelbuilder: force `standard` to be imported

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

9 years agonitunit: protect generated files name a little to avoid name conflicts.
Jean Privat [Thu, 13 Nov 2014 18:20:35 +0000 (13:20 -0500)]
nitunit: protect generated files name a little to avoid name conflicts.

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

9 years agonitunit: test only block of code
Jean Privat [Thu, 13 Nov 2014 18:14:08 +0000 (13:14 -0500)]
nitunit: test only block of code

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

9 years agodocdowm: empty lines are included in blocks
Jean Privat [Thu, 13 Nov 2014 05:06:28 +0000 (00:06 -0500)]
docdowm: empty lines are included in blocks

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

9 years agolib: Enhanced DisjointSet data structure
Alexandre Blondin Massé [Sun, 16 Nov 2014 03:40:56 +0000 (22:40 -0500)]
lib: Enhanced DisjointSet data structure

It is now possible to retrieve the number of subsets in the partition by
using the 'number_of_subsets' property. It is useful for instance when
one wants to know if the partition is a singleton, or if it is trivial
(every element is alone in its subset).

Signed-off-by: Alexandre Blondin Massé <alexandre.blondin.masse@gmail.com>

9 years agoMerge: More escaping
Jean Privat [Thu, 13 Nov 2014 05:10:39 +0000 (00:10 -0500)]
Merge: More escaping

compiler is more robust.

The only issue seems to be the Makefile since there is no way to have an arbitrary named goal.

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

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 agotests: also robustize `search_tests.sh`
Jean Privat [Wed, 12 Nov 2014 14:32:31 +0000 (09:32 -0500)]
tests: also robustize `search_tests.sh`

Signed-off-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 agotests: add "--base_very bad name@1&$|;:.ext'\"<>{}`~!#^*()_=+[]\\,?.nit"
Jean Privat [Tue, 11 Nov 2014 15:29:36 +0000 (10:29 -0500)]
tests: add "--base_very bad name@1&$|;:.ext'\"<>{}`~!#^*()_=+[]\\,?.nit"

That is a module with a very bad name

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

9 years agotests: add `xmlesc` to escape XML in generated XML reports.
Jean Privat [Tue, 11 Nov 2014 16:43:11 +0000 (11:43 -0500)]
tests: add `xmlesc` to escape XML in generated XML reports.

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

9 years agocompiler: copy the binary if the outpath is crazy and cannot used in Makefile
Jean Privat [Tue, 11 Nov 2014 15:24:30 +0000 (10:24 -0500)]
compiler: copy the binary if the outpath is crazy and cannot used in Makefile

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

9 years agotests: make tests.sh more robust
Jean Privat [Tue, 11 Nov 2014 14:17:56 +0000 (09:17 -0500)]
tests: make tests.sh more robust

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

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 agocompiler: global compiler escape the module name
Jean Privat [Mon, 10 Nov 2014 21:27:02 +0000 (16:27 -0500)]
compiler: global compiler escape the module name

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

9 years agocompiler: escape function names in `c_functions_hash.c`
Jean Privat [Mon, 10 Nov 2014 21:26:25 +0000 (16:26 -0500)]
compiler: escape function names in `c_functions_hash.c`

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

9 years agocompiler: escape the binary name in generated Makefile
Jean Privat [Mon, 10 Nov 2014 21:25:25 +0000 (16:25 -0500)]
compiler: escape the binary name in generated Makefile

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

9 years agolib/string: add `Text::escape_to_mk` to escape to Makefiles
Jean Privat [Mon, 10 Nov 2014 21:24:43 +0000 (16:24 -0500)]
lib/string: add `Text::escape_to_mk` to escape to Makefiles

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>