Jean Privat [Mon, 26 Oct 2015 13:55:10 +0000 (09:55 -0400)]
Merge: benitlux: produce better reports
This PR adds customizable width to the graph generated by the benitlux report tool and displays short lived beer batches. Previously, some beers could not appear if they lasted less than a week on the menu.
Pull-Request: #1786
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 26 Oct 2015 13:55:07 +0000 (09:55 -0400)]
Merge: Update readme
Just a refresh on the README content as it is what is shown in github
Pull-Request: #1785
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Mon, 26 Oct 2015 13:55:04 +0000 (09:55 -0400)]
Merge: Opportunity: intro ∇ ratio
Add the ∇ ratio to Opportunity with a customizable multiplier. It assigns weight to the choices of participants so that someone who select all possible answers puts less weight on each answer, and someone who choses a single answer puts her full weight on it.
It can be used to count the number of pizzas to order (with a multiplier of 0.4) and to give more importances to the available times of busy people when scheduling a meeting.
Pull-Request: #1783
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Thu, 24 Sep 2015 21:47:05 +0000 (17:47 -0400)]
contrib/benitlux: select the width of the report with an argument
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 23 Oct 2015 15:45:59 +0000 (11:45 -0400)]
contrib/benitlux: report shows beers available between sample days
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 23 Oct 2015 16:29:58 +0000 (12:29 -0400)]
lib: intro Collection::has_any
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Thu, 22 Oct 2015 18:15:12 +0000 (14:15 -0400)]
Merge: Less null warnings in src/
Some small warning reductions while wandering in the source code of src/
Pull-Request: #1782
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Thu, 22 Oct 2015 18:15:10 +0000 (14:15 -0400)]
Merge: More lib/html optimizations
Lazily create structures for attributes and children as most HTML nodes do not have them.
User time for `time ./nitlight ../lib -d out`:
* before 0m8.196s
* after 0m6.940s (-15%)
Pull-Request: #1780
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Thu, 22 Oct 2015 12:55:33 +0000 (08:55 -0400)]
Deprecate the Changelog.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 22 Oct 2015 12:52:14 +0000 (08:52 -0400)]
update root README
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 22 Oct 2015 00:45:44 +0000 (20:45 -0400)]
Merge: Generalize `MModule::is_fictive` to any entity
Extends #1776 (so first commits include them)
Pull-Request: #1781
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Thu, 22 Oct 2015 00:45:40 +0000 (20:45 -0400)]
Merge: Cleanup and synchronize options in manpages
A tedious work to detect and fix undocumented options in the manpages of tools.
This also synchronizse the description of `--help` and the text in manpages (when there is a diversion, the best one if often selected).
Cherry on the cake: a new script `check_manpage` can automatically check that new options of tools are documented in the man. Close #1772
Pull-Request: #1778
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Thu, 22 Oct 2015 00:45:37 +0000 (20:45 -0400)]
Merge: Introduce model_visitor
As requested, this is a basic visitor framework on models.
Services names are inspired from those in the AST visitor.
Fell free to comment the API or suggest ideas.
Pull-Request: #1776
Reviewed-by: Romain Chanoir <romain.chanoir@viacesi.fr>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 22 Oct 2015 00:34:01 +0000 (20:34 -0400)]
modelviz: make the LinexComparator more robust by getting the model from a non-nullable object
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 22 Oct 2015 00:33:05 +0000 (20:33 -0400)]
model_viz: handle groups without filepaths.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 22 Oct 2015 00:32:30 +0000 (20:32 -0400)]
model: hint the semantize phases that `exit` does not return
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 22 Oct 2015 00:31:37 +0000 (20:31 -0400)]
niti: protect some NPE errors
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 22 Oct 2015 00:31:01 +0000 (20:31 -0400)]
global_compiler: remove a useless local variable
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 22 Oct 2015 00:30:33 +0000 (20:30 -0400)]
src: remove some `call on nullable` warning with a non-null local variable
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Wed, 21 Oct 2015 22:33:52 +0000 (18:33 -0400)]
opportunity: intro pizza ratio
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 21 Oct 2015 19:47:47 +0000 (15:47 -0400)]
oppurtunity: focus on #new_name
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 21 Oct 2015 17:23:36 +0000 (13:23 -0400)]
opportunity: count entries in JavaScript on load
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 21 Oct 2015 21:52:26 +0000 (17:52 -0400)]
Merge: remove some unwanted files
Pull-Request: #1779
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Romain Chanoir <romain.chanoir@viacesi.fr>
Jean Privat [Wed, 21 Oct 2015 21:52:23 +0000 (17:52 -0400)]
Merge: Fix `-e` and `-n` on nit
These options where broken, and nobody complained.
Now they works again.
Pull-Request: #1777
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Romain Chanoir <romain.chanoir@viacesi.fr>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Wed, 21 Oct 2015 20:30:08 +0000 (16:30 -0400)]
model_visitor: skip fictive entities by default
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 20:29:19 +0000 (16:29 -0400)]
modelize: special lazy attribute is tagged fictive
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 20:20:40 +0000 (16:20 -0400)]
model: move-up `is_fictive` from MModule to MEntity
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 23:48:04 +0000 (19:48 -0400)]
tests: skip test_model_visitor on nitc --global
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 22:24:36 +0000 (18:24 -0400)]
src/nituml: fix `Model::tpl_*` since it is now a MEntity
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 18:13:46 +0000 (14:13 -0400)]
src: add test_model_visitor
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 18:10:48 +0000 (14:10 -0400)]
model_visitor: can filter on visibility
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 18:10:08 +0000 (14:10 -0400)]
model: introduce `model_visitor` as a basic model visiting framework.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 12:58:50 +0000 (08:58 -0400)]
tests: update sav/test_toolcontext_args2.res with new descriptions of options
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 12:57:01 +0000 (08:57 -0400)]
nitdoc: cleanup and synchronize nitdoc options from #1771
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 12:50:42 +0000 (08:50 -0400)]
nitx: rename option `--query` to `--command`
`-q` conflicts with `--quiet` from toolcontext.
Moreover, the documentation talks about commands, not queries,
so this unify the vocabulary.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:39:22 +0000 (22:39 -0400)]
jenkins: add a script to check options in manpages
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 14:57:41 +0000 (10:57 -0400)]
lib/html: make `children` lazy
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 14:57:16 +0000 (10:57 -0400)]
lib/html: make `attrs`, `classes` and `css_props` lazy.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 13:03:23 +0000 (09:03 -0400)]
Merge: lib/serialization: fix deserialization constructor calling the default init
Restore previous behavior of the deserialization init which should not call the default init. This caused problems on default inits that accessed not yet deserialized attributes.
This also fixes WBTW troubles with game saving and multiplayer.
Pull-Request: #1766
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Wed, 21 Oct 2015 02:36:02 +0000 (22:36 -0400)]
nitpick: hide `--vim-autocomplete` from the help
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:34:41 +0000 (22:34 -0400)]
other tools: cleanup and synchronize options with the manpage
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:31:40 +0000 (22:31 -0400)]
nitc: cleanup and synchronize options with the manpage
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:29:32 +0000 (22:29 -0400)]
nitx: add the missing options `--no-attributes` and `--private`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:28:44 +0000 (22:28 -0400)]
man/nitserial.md: add mission option `--depth`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:28:11 +0000 (22:28 -0400)]
man/nitpretty.md: add missing options `-line-width` and `--no-inline`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:27:35 +0000 (22:27 -0400)]
man/nitpick.md: add missing option `--vim-autocomplete`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:27:08 +0000 (22:27 -0400)]
man/nitmetrics.md: add missing `--detect-covariance`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:26:29 +0000 (22:26 -0400)]
nitls: rename `--path` to `--path-only` to avoid conflict with `-I`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:24:54 +0000 (22:24 -0400)]
man/nitc.md: add missing options
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:56:50 +0000 (22:56 -0400)]
rm lib/core/collection/m.dot that was wrongly commited in
39fcf4a75aae
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 02:51:00 +0000 (22:51 -0400)]
remove .hgignore that is deprecated since eons
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 Oct 2015 01:10:06 +0000 (21:10 -0400)]
Merge: lib/core: Optimized `html_escape` for FlatText variants
As @privat requested, a byte-oriented optimized version of `FlatText` for `FlatString` as it is the most common case, like `escape_to_c`, it works at the byte level to accelerate fetching of characters.
On a short test program
~~~nit
var s = ""
for i in [0 .. 2000[ do s = "<STRING/&rt;".html_escape
~~~
Valgrind reports an old runtime of 18.208 MIr with a 8856 Ir/call to `html_escape`; the new runtime is 3.093 MIr, which translates to a 1298 Ir/call.
Pull-Request: #1775
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 21 Oct 2015 01:10:04 +0000 (21:10 -0400)]
Merge: lib/core: Added new `hexdigest` service on `Text`
Title says all, I needed this today to debug trailing zeroes in a produced string and I figured it could be PR'd
Pull-Request: #1774
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 21 Oct 2015 01:10:02 +0000 (21:10 -0400)]
Merge: loader: print error if bad files given to `scan_full` or `parse_full`
The last series (#1750 ) removed then silently.
A test is also added to avoid regression.
Pull-Request: #1773
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 21 Oct 2015 01:10:00 +0000 (21:10 -0400)]
Merge: nitdoc: opts --no-render and --test
Juste cleaning some options.
Pull-Request: #1771
Reviewed-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Wed, 21 Oct 2015 00:23:16 +0000 (20:23 -0400)]
Revert "tests: update deserializations tests with nitce because fixed autoinit fix things"
This reverts commit
61d0c58a7bc53d6086e873fb4dd7d13cc985ca66.
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Tue, 20 Oct 2015 22:08:07 +0000 (18:08 -0400)]
tests: test `-e` and `-n` for the nit interpreter
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 20:43:21 +0000 (16:43 -0400)]
lib/niti_runtime: update to reflect not-so-recent changes on eof and readline
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 20:38:07 +0000 (16:38 -0400)]
loader: add result of `load_rt_module` in the list of parsed modules
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 20:37:22 +0000 (16:37 -0400)]
loader: do not crash in `search_mmodule_by_name` if anode is null
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 18:08:57 +0000 (14:08 -0400)]
model: make `Model` a `MEntity` to enable the semi-composite design pattern.
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Tue, 20 Oct 2015 17:47:49 +0000 (13:47 -0400)]
lib/core: Optimized `html_escape` for FlatText variants
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Tue, 20 Oct 2015 15:37:47 +0000 (11:37 -0400)]
lib/core: Added new `hexdigest` service on `Text`
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Tue, 20 Oct 2015 02:32:54 +0000 (22:32 -0400)]
Merge: Optimize hash collection
Some optimization when dealing with empty hash-based collection
user time for nitc nitc.nit:
* before: 0m6.640s
* after: 0m6.344s (-4.5%)
Pull-Request: #1768
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 20 Oct 2015 00:44:25 +0000 (20:44 -0400)]
loader: print error if bad files given to `scan_full` or `parse_full`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 00:24:12 +0000 (20:24 -0400)]
Merge: lib: Introduce Stanford CoreNLP wrapper
## Stanford Core NLP
Stanford CoreNLP provides a set of natural language analysis tools which can take
raw text input and give the base forms of words, their parts of speech, whether
they are names of companies, people, etc., normalize dates, times, and numeric
quantities, and mark up the structure of sentences in terms of phrases and word
dependencies, indicate which noun phrases refer to the same entities, indicate
sentiment, etc.
This wrapper needs the Stanford CoreNLP jars that run on Java 1.8+.
See http://nlp.stanford.edu/software/corenlp.shtml.
## Usage
~~~nit
var proc = new NLPProcessor("path/to/StanfordCoreNLP/jars")
var doc = proc.process("String to analyze")
for sentence in doc.sentences do
for token in sentence.tokens do
print "{token.lemma}: {token.pos}"
end
end
~~~
Pull-Request: #1754
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Tue, 20 Oct 2015 00:23:44 +0000 (20:23 -0400)]
Merge: parser: do not allocate a reduction table for each parser
This optimize multiple Parser allocation, for instance nitunit or nitdoc that need to deal with each nitunit in the documentation.
usertime for `./nitdoc ../lib/core/`:
* before: 0m2.184s
* after: 0m1.788s (-18.1%)
Pull-Request: #1770
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 20 Oct 2015 00:23:37 +0000 (20:23 -0400)]
Merge: lib/html: implement the tag list as an hashset instead of a array.
This optimize clients of lib/html like highlight.
usertime for `./test_highlight ../lib/core/`:
* before: 0m2.416s
* after: 0m2.328s (-3.64%)
Pull-Request: #1769
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 20 Oct 2015 00:21:26 +0000 (20:21 -0400)]
hash_debug: monitor calls to `enlarge`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 00:19:12 +0000 (20:19 -0400)]
core::hash_collection: simplify `enlarge`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 00:04:52 +0000 (20:04 -0400)]
core::hash_collection: native array storage is no more nullable
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 Oct 2015 00:04:11 +0000 (20:04 -0400)]
core::hash_collection: do not allocate the storage, wait for the first `store`.
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Mon, 19 Oct 2015 23:01:20 +0000 (19:01 -0400)]
src/doc: move the testing option to its own doc_phase.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 19 Oct 2015 22:57:57 +0000 (18:57 -0400)]
src/doc: introduce option --no-render in HTML phase.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 16 Oct 2015 14:12:35 +0000 (10:12 -0400)]
lib/nlp: add package metadata and readme
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 15 Oct 2015 19:28:35 +0000 (15:28 -0400)]
lib/nlp: introduce nitnlp bin as a client example for lib/nlp.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 15 Oct 2015 19:11:08 +0000 (15:11 -0400)]
lib/nlp: introduce NLPDocument to NLPVector translation
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 16 Oct 2015 14:11:05 +0000 (10:11 -0400)]
lib/nlp: introduce Vector Space Model with NLPVectors
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 16 Oct 2015 14:08:35 +0000 (10:08 -0400)]
lib/nlp: introduce StanfordNLP wrapper
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Mon, 19 Oct 2015 20:02:41 +0000 (16:02 -0400)]
core::hash_collection: shortcut some methods on empty collections
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 19 Oct 2015 19:56:48 +0000 (15:56 -0400)]
parser: do not allocate a reduction table for each parser
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 19 Oct 2015 19:48:22 +0000 (15:48 -0400)]
lib/html: implement the tag list as an hashset instead of a array.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 19 Oct 2015 17:43:06 +0000 (13:43 -0400)]
Merge: contrib/opportunity: store local participant's name in a cookie
So we don't have to write our own name every single time we participate to an event.
Already deployed on xymus.net, you can test it here: http://xymus.net/opportunity/?meetup_id=
5E8F7A00589D5F567FFB07EA09A8630A8A2BA048
Pull-Request: #1765
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Mon, 19 Oct 2015 12:50:35 +0000 (08:50 -0400)]
Merge: Improve highlight
highlight and nitlight need love.
The series fix some long issues. The main change is the improvement of the method `HightlightVisitor::enter_visit` that does only highlight the given node instead of the whole file.
Moreover, two new flags can be used to indicate how to deal with the context around the node given to highlight.
Note: A lot more love is needed, but this should really improve the current status of these modules.
Pull-Request: #1763
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Mon, 19 Oct 2015 12:50:29 +0000 (08:50 -0400)]
Merge: Kill pseudo toplevel methods
Move some methods from Object to the top-level (Sys) as they do not rely on `self` and are intended to be called from everywhere.
Beside documentation improvement, this should slightly reduce the size of tables as methods introduced in Object are inherited by all classes.
Pull-Request: #1758
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 19 Oct 2015 12:50:24 +0000 (08:50 -0400)]
Merge: Loader refactor
A big refactorization of the loader
This include cleanup, renaming and documentation of the existing code.
The major change is the removal of `ModulePath` used to designate an identified module that is not yet loaded. This caused major issues since once the module was loaded, the MModule object has to be used instead.
Now, genuine `MModule` are used to also represent modules identified in the file system but not yet loaded.
This simplify the code of the loader, nitls and nitcatalog.
By the way, the option `-d` (and `-M`) of nitls that was broken by the previous changes in the loader is now fixed.
Another change is the introduction of `scan_full` that is a high-level method to be used by clients like nitls or nitcatalog that just need to identify packages, groups and modules in the filesystem without loading them.
By the way, nitcalatog works on directories of projects now. eg. `nitcatalog ../lib)
Note, because this PR introduces a lot of interrelated changes, It was hard to come up with nice commits. The alternative was to have a single big commit.
Pull-Request: #1750
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Sun, 18 Oct 2015 14:31:03 +0000 (10:31 -0400)]
contrib/opportunity: store local participant's name in a cookie
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Sat, 17 Oct 2015 19:24:17 +0000 (15:24 -0400)]
src: new program `test_highlight`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 17 Oct 2015 14:24:48 +0000 (10:24 -0400)]
tests: update sav/ because of new loader
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 17 Oct 2015 00:33:57 +0000 (20:33 -0400)]
loader: sort files in scanning to force determinism
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 13 Oct 2015 15:47:20 +0000 (11:47 -0400)]
online_ide: update to the new API of the loader
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 9 Oct 2015 19:47:03 +0000 (15:47 -0400)]
model/model_viz: use OrderedTree[MConcern]
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 9 Oct 2015 19:46:30 +0000 (15:46 -0400)]
tests: improve nitls tests
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 9 Oct 2015 19:46:06 +0000 (15:46 -0400)]
nitls: use alpha_comparator
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 9 Oct 2015 19:45:50 +0000 (15:45 -0400)]
nitls: use OrderedTree[MConcern]
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 9 Oct 2015 19:38:20 +0000 (15:38 -0400)]
nitls: adapt to new loader API
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 9 Oct 2015 19:37:26 +0000 (15:37 -0400)]
nitcatalog: use MConcen to generalize MGroup and MModule
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 9 Oct 2015 19:36:31 +0000 (15:36 -0400)]
nitcatalog: adapt to new loader API
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 9 Oct 2015 19:35:19 +0000 (15:35 -0400)]
loader: improve documentation
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 9 Oct 2015 19:34:44 +0000 (15:34 -0400)]
loader: conditional_importations have only MModule now
Signed-off-by: Jean Privat <jean@pryen.org>