Jean Privat [Wed, 17 Jul 2013 14:57:54 +0000 (10:57 -0400)]
tests: add base_covar_int.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 17 Jul 2013 14:51:52 +0000 (10:51 -0400)]
new bug: nitg do not perform covariance cast because of type adaptation
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 15 Jul 2013 18:22:54 +0000 (14:22 -0400)]
Merge branch 'benches'
Jean Privat [Wed, 5 Jun 2013 03:15:59 +0000 (23:15 -0400)]
benchs: add pep8analisis bench program
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Thu, 30 May 2013 19:04:21 +0000 (15:04 -0400)]
nitg-s: Desactivated BM and PH property layouts
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 11 Mar 2013 21:41:19 +0000 (17:41 -0400)]
layout_builders: Added comments & documentation
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 11 Mar 2013 21:29:51 +0000 (17:29 -0400)]
layout_builders: Removed useless property layout (use std Layout instead)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 11 Mar 2013 21:23:49 +0000 (17:23 -0400)]
nitg-s/u: Renamed retieve_live_partial_types in retrieve_partial_types
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 30 May 2013 18:58:31 +0000 (14:58 -0400)]
layout_builders: Added perfect hashing for mproperties
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Mon, 27 May 2013 16:56:31 +0000 (12:56 -0400)]
benchs: no not bench --phmod-typing
Jean Privat [Mon, 27 May 2013 16:56:08 +0000 (12:56 -0400)]
benchs: use nitmetrics instead of nitstats
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 26 Apr 2013 03:01:22 +0000 (23:01 -0400)]
benchs/lang: increase timout to 5min
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 26 Apr 2013 03:01:02 +0000 (23:01 -0400)]
benchs/lang: reactivate ugly loop
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 26 Apr 2013 02:57:07 +0000 (22:57 -0400)]
benchs/lang: factorize language functions
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 23 Apr 2013 17:12:20 +0000 (13:12 -0400)]
bench/lang: add covar/depthnot and fts_nesting
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Apr 2013 19:22:44 +0000 (15:22 -0400)]
bench/lang: force covariance in scala&csharp
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Apr 2013 19:20:08 +0000 (15:20 -0400)]
bench/lang: add bench_base
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Apr 2013 12:31:47 +0000 (08:31 -0400)]
bench/lang: simplify signature of the test function
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 13 Apr 2013 00:46:10 +0000 (20:46 -0400)]
bench/lang: less tests for bench_typetest_depth
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 12 Apr 2013 14:13:35 +0000 (10:13 -0400)]
bench/lang: improve bench_typetest_depth
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 12 Apr 2013 14:12:52 +0000 (10:12 -0400)]
bench/lang: add nitg-s-*typing
Jean Privat [Fri, 12 Apr 2013 14:12:16 +0000 (10:12 -0400)]
bench/lang: add gcj
Jean Privat [Fri, 12 Apr 2013 14:12:06 +0000 (10:12 -0400)]
benchs/lang: add timeout
Alexandre Terrasa [Mon, 15 Jul 2013 18:17:45 +0000 (14:17 -0400)]
benches: moved bench in its own directory at project root
* bench_plot provides plot facilities
* bench_engines provides nit* engines benchmarks
* bench_languages provides language comparison on generic subtyping test performances
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Thu, 11 Jul 2013 08:21:45 +0000 (10:21 +0200)]
Merge remote-tracking branch 'alexandre/libhtml'
Jean Privat [Thu, 11 Jul 2013 08:21:39 +0000 (10:21 +0200)]
tests: fix base_virtual_type3 for new model
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 10 Jul 2013 22:11:23 +0000 (00:11 +0200)]
Merge branch 'nitg-s'
Jean Privat [Tue, 9 Jul 2013 22:30:09 +0000 (00:30 +0200)]
test_parser: do not crash on syntax error
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 5 Jul 2013 06:42:43 +0000 (08:42 +0200)]
poset: remove attribute `nodes`, use `elements.keys` instead
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 5 Jul 2013 04:52:21 +0000 (06:52 +0200)]
poset: move the transitions in the nodes
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 4 Jul 2013 09:41:23 +0000 (11:41 +0200)]
nitg: move the GC stuff in a runtime C libray `gc_chooser`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 10 Jul 2013 13:57:56 +0000 (15:57 +0200)]
Merge remote-tracking branch 'lucas/strings-fix'
Jean Privat [Thu, 4 Jul 2013 09:39:07 +0000 (11:39 +0200)]
nitg: add the possibility to have runtime library written in C
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 4 Jul 2013 09:35:38 +0000 (11:35 +0200)]
nitg: add the possibility to have specific CFLAGS for extern C bodies
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Jul 2013 10:37:55 +0000 (12:37 +0200)]
nitg: add --cc-paths & cc_paths
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Jul 2013 04:13:43 +0000 (06:13 +0200)]
nitg-s: cache *RuntimeFunction in the MMethodDef
Also does not instantiate them directly
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Jul 2013 03:58:50 +0000 (05:58 +0200)]
nitg-s: VIRTUAL_ method just call the non-virtual one
No need to compile the same method twice.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Jul 2013 03:57:23 +0000 (05:57 +0200)]
nitg-s: fix method comment on 'self' parameter
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 1 Jul 2013 10:09:31 +0000 (12:09 +0200)]
Merge branch 'sepcomp'
Jean Privat [Fri, 21 Jun 2013 09:03:10 +0000 (11:03 +0200)]
nitg: use`*_declaration` to include extern #incudes once
And only in files that request them.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 08:42:16 +0000 (10:42 +0200)]
nitg: new `provide_declaration` and `require_declaration`
They allows a more separated C compilation since C-compiled modules only
depends on what they use. Therefore modifying unrelated thing in
super-modules should not triggers a new C-compilation of client modules.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 05:45:19 +0000 (07:45 +0200)]
nitg: name of the header file is specific for each engine
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 05:43:23 +0000 (07:43 +0200)]
nitg: the header writer is a full-declaration header file
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 05:38:37 +0000 (07:38 +0200)]
nitg: global compiler do not write definition in the header
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 05:37:12 +0000 (07:37 +0200)]
nitg: separate compiler writes class-related colors in the *.class.c files
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 1 Jul 2013 10:07:00 +0000 (12:07 +0200)]
nitg: write_and_make skips empty writers
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Mon, 10 Jun 2013 16:19:20 +0000 (12:19 -0400)]
stdlib : AbstractString/String, Added trim function and unit test
Signed-off-by: Lucas Bajolet <lucas.bajolet@hotmail.com>
Alexandre Terrasa [Sat, 22 Jun 2013 03:14:42 +0000 (23:14 -0400)]
lib: added 'slice' method to List
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Sat, 22 Jun 2013 02:58:48 +0000 (22:58 -0400)]
lib: added init.from in array and hashset
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 14 Jun 2013 23:23:24 +0000 (01:23 +0200)]
nitg-s&e: remove many structs and some casts
In separated compilation, the module knows that a given class or
type will exist but the associated C struct cannot contains some global
information like a size of a table.
Thus, use abstract structs to statically type those.
The specific structs then become useless and can be removed.
Moreover, some C casts become irrelevant.
The commit also manage NativeArray instances in a specific way
in `compile_class_to_c`.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 14 Jun 2013 22:16:17 +0000 (00:16 +0200)]
nitg: move add_extern to the visitor
So add_extern could be made contextual.
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Fri, 14 Jun 2013 14:48:39 +0000 (10:48 -0400)]
lib: HTML clear children before each render to avoid duplicates
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Lucas Bajolet [Mon, 10 Jun 2013 23:48:37 +0000 (19:48 -0400)]
stdlib : String, added test for copy constructor
Signed-off-by: Lucas Bajolet <lucas.bajolet@hotmail.com>
Lucas Bajolet [Fri, 7 Jun 2013 18:46:28 +0000 (14:46 -0400)]
stdlib: Strings, added function to avoid passing refs with a NativeString (can cause bugs if auto/manually deallocated with FFI).
Signed-off-by: Lucas Bajolet <lucas.bajolet@hotmail.com>
Lucas Bajolet [Thu, 13 Jun 2013 15:26:31 +0000 (11:26 -0400)]
stdlib : Cleaned the code for the Strings, renamed attributes to be compliant with Nit's naming policy.
Also added more comments for a better lisibility.
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 13 Jun 2013 12:08:25 +0000 (14:08 +0200)]
ngall.sh: accepts options
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 13 Jun 2013 12:08:13 +0000 (14:08 +0200)]
nitg: compile extern files separately
file names does not depends on the program name.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 13 Jun 2013 11:49:58 +0000 (13:49 +0200)]
tests: save html.res and html_page.res
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Sat, 8 Jun 2013 04:53:55 +0000 (00:53 -0400)]
examples: html lib example
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 11 Jun 2013 21:45:39 +0000 (17:45 -0400)]
lib: Introduced new html lib
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 11 Jun 2013 02:36:17 +0000 (04:36 +0200)]
lib: add for_abuse.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 7 Jun 2013 03:16:21 +0000 (23:16 -0400)]
nitg: new class CodeFile to regroup CodeWriter into autonomous files
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 7 Jun 2013 02:45:09 +0000 (22:45 -0400)]
nitg: add class CodeWriter
thus extract the parts of files from the visitors
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 6 Jun 2013 18:38:59 +0000 (14:38 -0400)]
lib: fix string comparaison
commit
27602007 broke the implementation of < when comparing strings
of different lengths.
Signed-off-by: Jean Privat <privat@ciara.pryen.org>
Jean Privat [Thu, 6 Jun 2013 02:37:31 +0000 (22:37 -0400)]
Merge branch 'nitg-fixes' into next
Jean Privat [Thu, 6 Jun 2013 02:29:30 +0000 (22:29 -0400)]
src: add ngall.sh to bootstrap nitg
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 6 Jun 2013 02:28:02 +0000 (22:28 -0400)]
nitg: create .nit_compile before creating file inside
This solves the crash if missing .nit_compile problem.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 28 May 2013 22:42:37 +0000 (18:42 -0400)]
Merge remote-tracking branch 'stefan/nitdoc' into next
Stefan Lage [Tue, 28 May 2013 20:43:59 +0000 (16:43 -0400)]
nitdoc: Fix bug: problem when getting function information
There was a 'bug' when we tried to commit, we didn't get the right
informations about the function which was editing, we get somes chars
which causes somes troubles in commit query. Because of the
adding of a tag in the last commit.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 20:40:25 +0000 (16:40 -0400)]
nitdoc: Inform if a comment was already modify
Adding a function in 'edit mode' which inform if the comment the
customer if the function which he is editing was already modify, it
allow to show this update to compare it with the original comment
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 21:42:15 +0000 (17:42 -0400)]
nitdoc: Added function to resize textbox
Adding a function which resize a textbox in terms of its content
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 22:12:01 +0000 (18:12 -0400)]
nitdoc: Added Signed-Off management
Adding a Signed-Off field in the 'Sign In' form which allow to
'generate' its own signed-off for commits.
Addign a checkbox in commit form to obliged the customer to sign his
commit
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Mon, 27 May 2013 02:51:21 +0000 (22:51 -0400)]
nitdoc: Set all data type to JSON in Ajax queries
Change data type to JSON because there was somes troubles in commit
process
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 20:38:33 +0000 (16:38 -0400)]
nitdoc: Added some field to github form
Adding a title field to its form, and a field to inform about which
repository was selected when the user signed in.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 20:34:46 +0000 (16:34 -0400)]
nitdoc: Added best way to check authentification
Adding a function to check if credentials informed are correct, if they
are or not a message is displaying to inform us.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Sun, 26 May 2013 22:31:44 +0000 (18:31 -0400)]
nitdoc: Correcting message box
Correcting error message displaying when we try to sing in without
informed user/password fields.
Adding a better way to center the message box in terms of the screen
size
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Jean Privat [Tue, 28 May 2013 15:15:23 +0000 (11:15 -0400)]
tests: add sav/json.res
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 28 May 2013 15:13:07 +0000 (11:13 -0400)]
Merge remote-tracking branch 'alexis/libs/json' into next
Conflicts:
tests/nitg-e.skip
tests/nitg-s.skip
tests/nitg.skip
tests/niti.skip
Alexis Laferrière [Tue, 28 May 2013 15:04:39 +0000 (11:04 -0400)]
lib/json: removes spaces in test for retro-compatibility
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 28 May 2013 14:52:22 +0000 (10:52 -0400)]
lib/json: fix const char* errors
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 27 May 2013 20:12:33 +0000 (16:12 -0400)]
parser: add a Package to the nit grammar
So the eclipse plugin will be happy.
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Mon, 27 May 2013 18:16:15 +0000 (14:16 -0400)]
lib/json: also check for null in Sequence
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 27 May 2013 17:49:02 +0000 (13:49 -0400)]
doc: be more clever to guess existing libraries
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 27 May 2013 17:26:48 +0000 (13:26 -0400)]
Merge remote-tracking branch 'alexis/libs/realtime' into next
Alexis Laferrière [Mon, 27 May 2013 17:07:54 +0000 (13:07 -0400)]
libs/json: duplicate null check for retro-compatibility
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 31 May 2012 00:09:36 +0000 (20:09 -0400)]
lib: adds the realtime module to keep time of real time flow
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 27 May 2013 16:30:01 +0000 (12:30 -0400)]
Merge remote-tracking branch 'alexis/ieee-example' into next
Alexis Laferrière [Mon, 27 May 2013 15:11:12 +0000 (11:11 -0400)]
examples: add the draw_operation example from the IEEE competition
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Sat, 25 May 2013 17:19:44 +0000 (13:19 -0400)]
Merge branch 'nitdoc' into next
Jean Privat [Sat, 25 May 2013 17:18:49 +0000 (13:18 -0400)]
doc: update Makefile to run nitdoc with extended options
add also a doc/newmodel/index.html rule
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 25 May 2013 15:11:07 +0000 (11:11 -0400)]
tests: add more tests of libs
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 25 May 2013 13:34:47 +0000 (09:34 -0400)]
tests: update sav/nitdoc
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 25 May 2013 09:46:24 +0000 (05:46 -0400)]
test: add testfull.sh
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 25 May 2013 09:05:41 +0000 (05:05 -0400)]
tests: remove # in args, this break TAP
Signed-off-by: Jean Privat <jean@pryen.org>
Stefan Lage [Thu, 23 May 2013 23:19:13 +0000 (19:19 -0400)]
nitdoc: Adding automatic commit message
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 23 May 2013 20:26:19 +0000 (16:26 -0400)]
nitdoc: Correcting cursor style hover a comment
When the cursor is hover a comment, it is update to a hand only on edit mode
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 01:02:08 +0000 (21:02 -0400)]
nitdoc: Fix bug when signing in
Before creating the session, we check if the repository and the branch
informed are existing, whose causing some bugs when one of these do not
exist. If the repository does not exist then we stop the process. If
the branch does not exist we ask to the customer if he wants to create
it.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 16 May 2013 14:25:54 +0000 (10:25 -0400)]
nitdoc: Fix bug : Generating the documentation.
One closure tag 'div' was in excess which caused the appearance of the
button 'Sign In' on the index page.
A missing part of tag 'div' closure causing a bug in the style on each
module pages.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Wed, 8 May 2013 20:38:23 +0000 (16:38 -0400)]
nitdoc: Add a hover behavior to the mouse
When the cursor is hover a comment it display a 'hand' and disable it
when it is not hover.
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 01:01:16 +0000 (21:01 -0400)]
nitdoc: Fix bug: Add a function to close comments
Adding function which close all comments which are being edit when we close the session
signed-off by: Stefan Lage <lagestfan@gmail.com>