Jean Privat [Wed, 30 Sep 2015 15:42:08 +0000 (11:42 -0400)]
version 0.7.8
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 28 Sep 2015 14:42:57 +0000 (10:42 -0400)]
Merge: Basename fix
Should close #1736 if performances are adequate for @privat.
This PR optimizes some methods in both `SequenceRead` and `FlatString`, on the test program exposed in #1736, the valgrind runtime has gone from 418,872,526 Ir to 136,522,095 Ir (~67.5% improvement)
Some more improvements could be observed if we could get rid of some useless Boxes in `NativeString::to_s_with_copy` because of a `is_same_instance` which boxes NativeStrings (24k allocations in total to remove).
Pull-Request: #1740
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 28 Sep 2015 14:37:02 +0000 (10:37 -0400)]
Merge: glesv2: services for textures, shaders, framebuffers, renderbuffers & more, and update API
Intro wrappers to work with textures, shaders, framebuffers and renderbuffers, synchronize with server and set clear values of buffers. Update most of the remaining enumerations and some more services to the new API style. Add a makefile to generate a wrapper stub from the local GLES2/gl2.h header file.
FYI, there's approximatly only 65 functions left to wrap, out of 141.
Pull-Request: #1743
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 28 Sep 2015 14:36:59 +0000 (10:36 -0400)]
Merge: Make stream and iterators withable
As I wanted to use the `with` statement on Iterators in order to experiment with #1735, I realized that neither them not stream are usable with `with` since they lack the required methods.
Pull-Request: #1742
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 28 Sep 2015 14:36:07 +0000 (10:36 -0400)]
Merge: Bytes is now Writable
As @xymus requested, `Bytes` is now a subclass of `Writable`
Pull-Request: #1738
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 28 Sep 2015 14:35:40 +0000 (10:35 -0400)]
Merge: Fixes for ordered trees
Some fixes related of the last changes
Pull-Request: #1741
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Mon, 28 Sep 2015 14:35:35 +0000 (10:35 -0400)]
Merge: Fix fdroid
Some fixups for apps to appears in the fdroid
Pull-Request: #1739
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 28 Sep 2015 14:35:33 +0000 (10:35 -0400)]
Merge: Faster scan in the loader
Some people experienced a slowdown in nitls and nitpick since the last changes in the loader.
The culprit where mostly expensive services on strings and filepaths. see #1736
This PR improves the current state of affairs by using less expensive services or rearrange them.
For `time nitls -pt ../contrib/ ../lib ../examples/`
Before:
* real 0m2.159s
* user 0m1.840s
* sys 0m0.288s
After:
* real 0m0.545s (-75%)
* user 0m0.352s (-81%)
* sys 0m0.172s
Pull-Request: #1737
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 28 Sep 2015 14:35:27 +0000 (10:35 -0400)]
Merge: More ini
Fix some package.ini so that there is no more `none` pseudo-tag in the catalog
Pull-Request: #1733
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Lucas Bajolet [Fri, 25 Sep 2015 20:02:04 +0000 (16:02 -0400)]
tests: Added test for basename and related methods
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Fri, 25 Sep 2015 18:25:30 +0000 (14:25 -0400)]
lib/core: Optimized generation of Boxes in to_s_with_copy
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Fri, 25 Sep 2015 18:24:57 +0000 (14:24 -0400)]
lib/core: Added specialized implementation of file_extension and basename on FlatString
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Thu, 17 Sep 2015 12:04:43 +0000 (08:04 -0400)]
lib/gamnit examples: change the background of the triangle per frame
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 27 Sep 2015 15:58:05 +0000 (11:58 -0400)]
lib/glesv2 & gamnit: update examples to the new API
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 27 Sep 2015 13:42:59 +0000 (09:42 -0400)]
lib/glesv2: intro a Makefile to automate wrapping
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 27 Sep 2015 16:41:09 +0000 (12:41 -0400)]
lib/glesv2: update more misc services
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 27 Sep 2015 16:39:04 +0000 (12:39 -0400)]
lib/glesv2: update API style of glGetError
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 27 Sep 2015 14:31:27 +0000 (10:31 -0400)]
lib/glesv2: intro services to synchronize operations on the server
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 27 Sep 2015 14:30:49 +0000 (10:30 -0400)]
lib/glesv2: intro services to set the clear values of buffers and filters
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 26 Sep 2015 18:27:22 +0000 (14:27 -0400)]
lib/glesv2: move glClearColor and glViewport to the new API style
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Sep 2015 13:47:36 +0000 (09:47 -0400)]
lib/glesv2: move more enums to the new API style
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Sep 2015 11:44:57 +0000 (07:44 -0400)]
lib/glesv2: move some program related services with the new API
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Sep 2015 01:10:37 +0000 (21:10 -0400)]
lib/glesv2: fix signature of glTexImage2D and accept any pointer to pixels data
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Sep 2015 18:38:33 +0000 (14:38 -0400)]
lib/glesv2: move shaders services to the new API style
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Sep 2015 01:10:09 +0000 (21:10 -0400)]
lib/glesv2: intro framebuffers services
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Sep 2015 01:09:39 +0000 (21:09 -0400)]
lib/glesv2: intro renderbuffer services
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 12 Sep 2015 16:15:03 +0000 (12:15 -0400)]
lib/glesv2: intro texture related services
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Sat, 26 Sep 2015 05:40:14 +0000 (01:40 -0400)]
tests: add test_with.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 26 Sep 2015 05:33:32 +0000 (01:33 -0400)]
ordered_tree: remove subs when all children are detached.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 26 Sep 2015 05:29:22 +0000 (01:29 -0400)]
ordered_tree: avoid abort if subs is empty
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Fri, 25 Sep 2015 15:00:48 +0000 (11:00 -0400)]
lib/core: Improve performances of last_index_of_from
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 24 Sep 2015 18:58:36 +0000 (14:58 -0400)]
memory: add apk link in the catalog
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 18:51:09 +0000 (14:51 -0400)]
memory: force app_namespace
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 18:50:04 +0000 (14:50 -0400)]
memory: fix fdroid metadata (it does not like superfluous spaces)
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 18:49:18 +0000 (14:49 -0400)]
memory: fix make android-release
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 18:48:19 +0000 (14:48 -0400)]
ballz: rename FDroid metadata file
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Thu, 24 Sep 2015 18:46:39 +0000 (14:46 -0400)]
lib/core: Bytes is now Writable
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 24 Sep 2015 18:22:27 +0000 (14:22 -0400)]
tests: update sav/nitls*
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 17:21:26 +0000 (13:21 -0400)]
lib/core/stream: add start/finish for Stream
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 17:18:56 +0000 (13:18 -0400)]
lib/core/collection: add start so iterators are usable with `with`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 17:09:31 +0000 (13:09 -0400)]
vim: add the keyword `with`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 15:08:27 +0000 (11:08 -0400)]
loader: scan_group does not identify file already identified as group.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 15:06:46 +0000 (11:06 -0400)]
loader: reorder some code in `get_mgroup`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 15:05:48 +0000 (11:05 -0400)]
loader: identified_files_by_path also cache the relative path
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 15:03:51 +0000 (11:03 -0400)]
loader: use `realpath` to implement `module_absolute_path`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 24 Sep 2015 15:03:11 +0000 (11:03 -0400)]
loader: use `has_suffix` instead of file_extension
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 23 Sep 2015 18:20:22 +0000 (14:20 -0400)]
Merge: Beef up OrderedTree API
This add services to the class OrderedTree
Pull-Request: #1732
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Wed, 23 Sep 2015 18:20:19 +0000 (14:20 -0400)]
Merge: Geometry
Adds a README for the geometry package.
Also adds an abstraction for polygons and an algorithm to triangulate them
Pull-Request: #1731
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Wed, 23 Sep 2015 01:47:54 +0000 (21:47 -0400)]
code: add new package.ini (and update some tags)
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 23 Sep 2015 01:45:09 +0000 (21:45 -0400)]
contrib: rename nitcc/tests/package.ini to plural
So that the `tests` directory is not identified as a package by the loader
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 23 Sep 2015 01:23:43 +0000 (21:23 -0400)]
lib/ordered_tree: add `parent`, `has` and `length`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 22 Sep 2015 14:22:30 +0000 (10:22 -0400)]
lib/ordered_tree: add `==`, `hash` and `clone`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 22 Sep 2015 19:41:37 +0000 (15:41 -0400)]
Merge: new game: memory
The code is good enough and the game complete enough I think.
Pull-Request: #1730
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Tue, 22 Sep 2015 19:41:29 +0000 (15:41 -0400)]
Merge: Migration from ascii to code_point
As complement to #1262 and #1718, this PR solves part of both issues.
One does the migration from `ascii` to `code_point` since Unicode is a bit more than ASCII, let's try to use the right vocabulary when dealing with it.
The `ascii` service is however kept alive, but its contract is changed from Int to Byte to be used directly on a `Char` without the need to have the old `'c'.ascii.to_b`, now a simple `'c'.ascii` will do the exact same.
A further PR will be submitted later to prevent the use of `ascii` on non-ASCII literal characters.
Pull-Request: #1726
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 22 Sep 2015 19:41:23 +0000 (15:41 -0400)]
Merge: nitc: fix some broken case in equal_test
The code that handle the various cases of comparison when one of the two types is primitive was broken in the specific sub-case of comparison between something tagged and something boxed.
The fact that this code date back from before tagging explain that, but the fact that the bug was discovered only now is more mysterious.
Reported-by: Lucas Bajolet <r4pass@hotmail.com>
Pull-Request: #1729
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Tue, 22 Sep 2015 19:17:42 +0000 (15:17 -0400)]
contrib: add memory, the game with shapes and colors
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 22 Sep 2015 14:21:57 +0000 (10:21 -0400)]
lib/ordered_tree: add and used `add_all`
Signed-off-by: Jean Privat <jean@pryen.org>
BlackMinou [Mon, 21 Sep 2015 03:24:47 +0000 (05:24 +0200)]
geometry/polygon: adds polygon triangulation + polygon abstraction
Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>
Lucas Bajolet [Mon, 21 Sep 2015 20:26:07 +0000 (16:26 -0400)]
lib: Update libs to use correctly ascii and code_point
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Mon, 21 Sep 2015 19:36:44 +0000 (15:36 -0400)]
lib/core: fix nitunit that should have failed earlier because of bad ==
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 21 Sep 2015 19:22:14 +0000 (15:22 -0400)]
core/math: add basic Bézier interpolations on Float
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 21 Sep 2015 17:57:39 +0000 (13:57 -0400)]
tests: add base_eq_int4*.nit for more combination of test cases
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 21 Sep 2015 17:52:42 +0000 (13:52 -0400)]
sepcomp: rewrote, fix and document `equal_test` in the c_primitive case
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 21 Sep 2015 17:51:37 +0000 (13:51 -0400)]
sepcomp: fix potential tagging issue in `is_same_type_test`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 21 Sep 2015 17:34:59 +0000 (13:34 -0400)]
sepcomp: add `MType::tag_value`
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Wed, 16 Sep 2015 17:55:08 +0000 (13:55 -0400)]
lib: Changes in the way ascii is coded and its semantics.
Old ascii method is replaced by code_point, which returns the Unicode code-point value of a Char
ascii now returns a byte and requires a <= 127 code_point to work properly
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Mon, 21 Sep 2015 17:07:49 +0000 (13:07 -0400)]
lib/core: Fix bug in StringByteView, misuse of `String::length`
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
BlackMinou [Tue, 15 Sep 2015 07:13:36 +0000 (09:13 +0200)]
geometry: Adds a README
Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>
Jean Privat [Wed, 16 Sep 2015 17:11:55 +0000 (13:11 -0400)]
Merge: Extends catalog with a *try it* and a *download apk* links
Two new package metadata are added
* `upstream.tryit` for an URL that points to a demo version or a live version of the main web service offered by the package.
* `upstream.apk` for an URL that points to a dry `apk`, or an install page on some store, for the main android application offered by the package.
Moreover, packages that have one them will be respectively tagged `tryit` and `apk`
A demo is available: http://info.uqam.ca/~privat/catalog/#tag_tryit and http://info.uqam.ca/~privat/catalog/#tag_apk
Pull-Request: #1724
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Jean Privat [Wed, 16 Sep 2015 17:11:54 +0000 (13:11 -0400)]
Merge: Some improvement of benchmarks
Some work in the benchmarks directory. The most important stuff is some `make check` to test the brokenness of specific benches.
Pull-Request: #1723
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Jean Privat [Wed, 16 Sep 2015 17:11:52 +0000 (13:11 -0400)]
Merge: Prepare FDroid deployment
Finish the job of #1710 by adding missing `make android-release`, F-Droid metadata and simplifying the check_contrib script.
ping @xymus for review
Pull-Request: #1722
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Wed, 16 Sep 2015 17:11:50 +0000 (13:11 -0400)]
Merge: android/audio: fix multiple music playing when pausing app
Asked by @privat because friendz's app played multiple musics when pausing/resuming the app
Pull-Request: #1721
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 [Wed, 16 Sep 2015 17:11:47 +0000 (13:11 -0400)]
Merge: Friendz: save states
Save the state of the sound and the levels in the data store.
If you leave a level and come back, your grid in the level is no more lost
Pull-Request: #1715
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 16 Sep 2015 13:54:21 +0000 (09:54 -0400)]
moles: cleanup Makefile
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 16 Sep 2015 13:09:44 +0000 (09:09 -0400)]
check_contrib: only make given targets.
So this avoid doing a full desktop build only when a specific build is required (eg. android-release)
A special case is made for `all` that falls back as the default,
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 18:38:25 +0000 (14:38 -0400)]
contrib: add some missing FDroid metadate files
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 18:25:29 +0000 (14:25 -0400)]
calculator: add FDroid apk description
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 18:24:10 +0000 (14:24 -0400)]
calculator: clean Makefile and add `android` and `android-release`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 16 Sep 2015 01:17:52 +0000 (21:17 -0400)]
benckmarks: git-ignore directories `logs` and `nit_compile`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 16 Sep 2015 01:04:37 +0000 (21:04 -0400)]
contrib: add `upstream.apk` to packages that have an apk
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 16 Sep 2015 01:03:47 +0000 (21:03 -0400)]
nitcatalog: new package metadata `upstream.apk`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 16 Sep 2015 01:03:16 +0000 (21:03 -0400)]
contrib: add `upstream.tryit` to packages that have a online service
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 16 Sep 2015 01:01:43 +0000 (21:01 -0400)]
nitcatalog: new package metadata `upstream.tryit`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 16 Sep 2015 01:00:34 +0000 (21:00 -0400)]
nitcatalog: refactor tags collection
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 20:53:24 +0000 (16:53 -0400)]
benchmarks/strings: add `make check`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 20:53:06 +0000 (16:53 -0400)]
benchmarks/strings: continue in case of error
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 20:16:14 +0000 (16:16 -0400)]
benchmarks/markdown: generate an html file
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 20:06:27 +0000 (16:06 -0400)]
benchmarks/polygons: check failures at the end of the script
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 20:02:47 +0000 (16:02 -0400)]
benchmarks: factorize the `die()` function into `bench_common.sh`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 13:20:44 +0000 (09:20 -0400)]
benchmarks/polygons: add make check
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 14 Sep 2015 20:49:18 +0000 (16:49 -0400)]
benchmarks/markdown: add a `make check` rule
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 14 Sep 2015 20:34:02 +0000 (16:34 -0400)]
benchmarks/markdown: make `$s` configurable
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 14 Sep 2015 20:28:54 +0000 (16:28 -0400)]
benchmarks: add a Makefile
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 14 Sep 2015 20:26:28 +0000 (16:26 -0400)]
bench_engines: add test for misc options
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 19:18:44 +0000 (15:18 -0400)]
Merge: lib: intro the matrix package
This PR intro `Matrix` to represent a matrix of floats. The main module offers only general services and the `projection` module adds services useful for 3D manipulations.
The package is oriented towards matrices of floats and was designed alongside Gamnit. As such, is a bit specialized and may not be appropriate for all usage of matrices (such as integer matrices). So if you prefer, I can move these back to Gamnit. But since this module does not have any dependencies and `Matrix` can be useful for a wide array of context, I chose to leave it in lib.
Pull-Request: #1719
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 19:18:41 +0000 (15:18 -0400)]
Merge: vim plugin: intro NitExecute to interpret the current file with `nit`
Adds the `:NitExecute` command (or `:NitE` as shortcut) to interpret the current file with `nit`.
This is very similar to the manual `:!nit %` but it saves modified buffers to a temp file to execute the content of the current buffer and not the last saved content.
This is completely up to you but I recommend mapping this to `ctrl-f` to fit between `ctrl-d -> Nitdoc` and `ctrl-g -> NitGitGrep`. Here are the required lines for `.vimrc`:
~~~
" Map the Nitdoc command to Ctrl-D
map <C-d> :Nitdoc<enter>
" Map the NitGitGrep function to Ctrl-G
map <C-g> :call NitGitGrep()<enter>
" Map the NitExecute function to Ctrl-F <------- The new one
map <C-f> :NitExecute<enter>
~~~
Pull-Request: #1717
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Sep 2015 19:18:38 +0000 (15:18 -0400)]
Merge: nitcatalog: isolate package page into a subdirectory
HTML files are generated into a `/p/` subdirectory so they will not conflict with other generated files.
One other point is to have stable and final URL for packages in the catalog. eg http://nitlanguage.org/catalog/p/nitiwiki.html
Pull-Request: #1714
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Tue, 15 Sep 2015 17:17:17 +0000 (13:17 -0400)]
lib/matrix: intro `Matrix::to_a & transposed`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 15 Sep 2015 14:40:12 +0000 (10:40 -0400)]
lib/matrix: add services for projection Matrix and 3D coord manipulation
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 19 Apr 2015 14:59:11 +0000 (10:59 -0400)]
lib/matrix: intro Matrix with general services
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>