Jean Privat [Wed, 16 Dec 2015 04:22:37 +0000 (23:22 -0500)]
parser: regenerate (with qclassid)
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 16 Dec 2015 04:22:07 +0000 (23:22 -0500)]
parser: use qualified class ids in the AST (changes API)
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 16 Dec 2015 04:21:17 +0000 (23:21 -0500)]
parser: expose qualified class id (qclassid)
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Wed, 16 Dec 2015 01:33:21 +0000 (20:33 -0500)]
model: fix some warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Tue, 15 Dec 2015 23:18:04 +0000 (18:18 -0500)]
contrib/asteronits: fix dependency on inkscape_tools
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexandre Terrasa [Tue, 15 Dec 2015 01:58:49 +0000 (20:58 -0500)]
nitrpg: avoid race conditions in tests that imply database
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 15 Dec 2015 22:28:32 +0000 (17:28 -0500)]
test: add test_intern_extern.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Dec 2015 22:24:25 +0000 (17:24 -0500)]
interpreter: a method can be extern and intern, extern is used as a fallback
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Dec 2015 22:22:34 +0000 (17:22 -0500)]
nitni: can mangle all formal type, not just virtual ones
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Dec 2015 22:07:06 +0000 (17:07 -0500)]
compiler: a method can be extern and intern, extern is used as a fallback
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Tue, 15 Dec 2015 22:04:23 +0000 (17:04 -0500)]
nitunit: always call before/after methods
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 15 Dec 2015 22:04:02 +0000 (17:04 -0500)]
nitunit: add a test to show how non-local redefinition of before/after methods should work
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 15 Dec 2015 21:59:38 +0000 (16:59 -0500)]
compiler: intern methods on NativeArray can fallback instead of no-op
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Tue, 15 Dec 2015 21:56:43 +0000 (16:56 -0500)]
nitunit: clean warnings for testing_suite
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 15 Dec 2015 19:19:47 +0000 (14:19 -0500)]
Merge: nitweb: nitcorn based API to access model and source code
Description from man page:
# NAME
nitweb - provide a web API to nit model and source code.
# SYNOPSIS
nitweb [*options*] FILE...
# DESCRIPTION
`nitweb` use `nitcorn` actions to provide an API to loaded model and source code.
Usage:
~~~sh
nitweb --host localhost --port 3000 lib/core/
~~~
### `GET /` HOME
Show the home page of the webserver.
Display all the loaded model entities in a tree.
### `GET /search/:namespace` SEARCH BY NAMESPACE
Search all model entities matching `namespace`.
It is possible to retrieve the result as a JsonArray instead of raw html
using the uri param `json=true` (default `false`).
### `GET /code/:namespace` SHOW SOURCE CODE
Display the source code of the entity matching `namespace`.
### `GET /doc/:namespace` DOCUMENTATION PAGE
Display a short documentation page about the entity matching `namespace`.
### `GET /random/` RANDOM LIST
Display a random list of entities found in the model.
The list is parametrable with the following uri params:
* `n=10` size of the list (default `10`)
* `k=modules` kind of entities in the list (default `modules`)
It is possible to retrieve the result as a JsonArray instead of raw html
using the uri param `json=true` (default `false`).
# OPTIONS
### `--host`
The host to bind the web server on.
### `--port`
Port number to use
### `-h`, `-?`, `--help`
Show Help (the list of options).
Pull-Request: #1889
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 15 Dec 2015 18:42:10 +0000 (13:42 -0500)]
Merge: Add simple proxy action
For now anything proxied using this action is blocking.
close #1845
Pull-Request: #1858
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Thu, 10 Dec 2015 20:47:27 +0000 (15:47 -0500)]
benchmarks: Added benchmarks for C, Go, Ruby, Python and Nit
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Tue, 15 Dec 2015 14:31:27 +0000 (09:31 -0500)]
Merge: Make all Sets cloneable
Since there is no reason to forbid it (or I have not seen one at the very least), here's a simple `clone` method that should work on any `Set`
Pull-Request: #1893
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 15 Dec 2015 13:09:12 +0000 (08:09 -0500)]
contrib/asteronits: fix check rule
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 14 Dec 2015 20:04:06 +0000 (15:04 -0500)]
lib/gamnit: fix not executing gamnit programs when testing
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 14 Dec 2015 17:46:18 +0000 (12:46 -0500)]
contrib: move lib/gamnit/examples/asteronits to contrib/
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Lucas Bajolet [Thu, 10 Dec 2015 15:40:57 +0000 (10:40 -0500)]
benchs: Added submodule reference to ujson4c
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Mon, 14 Dec 2015 16:46:08 +0000 (11:46 -0500)]
lib/gamnit: tweak the world_camera to support devices with small depth buffer
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 14 Dec 2015 16:44:56 +0000 (11:44 -0500)]
lib/gamnit: make controls larger in asteronits
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 13 Dec 2015 18:29:02 +0000 (13:29 -0500)]
lib/gamnit: intro README.md
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 12 Dec 2015 00:19:06 +0000 (19:19 -0500)]
lib/gamnit: intro the asteronit example
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 10 Dec 2015 22:10:34 +0000 (17:10 -0500)]
lib/gamnit: intro `accept_events` and other input related services
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 26 Sep 2015 18:40:14 +0000 (14:40 -0400)]
lib/gamnit: intro `simple_2d` and API for easy 2D games programming
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 13 Dec 2015 17:25:00 +0000 (12:25 -0500)]
lib/gamnit: intro `EulerCamera::reset_to_fit`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 12 Dec 2015 00:25:28 +0000 (19:25 -0500)]
lib/gamnit: intro `UICamera`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 12 Dec 2015 16:16:38 +0000 (11:16 -0500)]
lib/gamnit: add a non-null display argument to frame_core
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 12 Dec 2015 04:48:18 +0000 (23:48 -0500)]
lib/gamnit: make `all_root_textures` public
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 12 Dec 2015 00:26:08 +0000 (19:26 -0500)]
lib/gamnit: fix offsets in textures to be lazy
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 12 Dec 2015 16:28:03 +0000 (11:28 -0500)]
lib/android: fix `AndroidKeyEvent::to_c` to return a `nullable Char`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 10 Dec 2015 22:10:24 +0000 (17:10 -0500)]
lib/mnit: update doc and style of the `input` module
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 13 Dec 2015 01:22:48 +0000 (20:22 -0500)]
lib/mnit & implementations: move up `is_move` from Android to abstract
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Lucas Bajolet [Sun, 13 Dec 2015 17:06:56 +0000 (12:06 -0500)]
tests: Updated error message (different line) in sav
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Sat, 12 Dec 2015 18:39:19 +0000 (13:39 -0500)]
lib/core: Make all `Set` cloneable
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Sat, 12 Dec 2015 02:17:53 +0000 (21:17 -0500)]
contrib/inkscape_tools: update support for gamnit
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 11 Dec 2015 23:24:56 +0000 (18:24 -0500)]
lib/opts: `OptionContext::parse` use `args` by default
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexandre Terrasa [Wed, 9 Dec 2015 20:14:57 +0000 (15:14 -0500)]
nitweb: add man page
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 9 Dec 2015 20:02:59 +0000 (15:02 -0500)]
tests: add nitweb
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 9 Dec 2015 06:54:46 +0000 (01:54 -0500)]
nitweb: introduce nitweb binary
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 9 Dec 2015 06:54:32 +0000 (01:54 -0500)]
nitweb: introduce web actions
Basic services for now.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 9 Dec 2015 06:53:53 +0000 (01:53 -0500)]
nitweb: introduce views used to render information
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 9 Dec 2015 06:53:15 +0000 (01:53 -0500)]
nitweb: render model entities to html
Actually move up common html templates from
doc::html_templates::html_model.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 9 Dec 2015 06:52:24 +0000 (01:52 -0500)]
src: introduce a new tool called nitweb
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 11 Dec 2015 19:05:24 +0000 (14:05 -0500)]
modelize: introduce ModelBuilder::mentity2node method
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Philippe Pepos Petitclerc [Sat, 28 Nov 2015 23:59:58 +0000 (18:59 -0500)]
Add simple proxy action
Signed-off-by: Philippe Pepos Petitclerc <ppeposp@gmail.com>
Jean Privat [Fri, 11 Dec 2015 00:32:20 +0000 (19:32 -0500)]
Merge: gamnit: intro textures, programs, camera and the globe example
Intro 3 core modules for gamnit with a lot of features:
* textures: Provices portable services to load textures. Textures are organized as trees where only the roots have the pixels data and subtextures relay load calls to the root. This structure should remain as is but more features need to be implemented, namely automating the use of offsets in the subtexture, auto reloading textures when invalidated and services to unload the textures.
* programs: Structures to organize GL programs and shaders and to facilitate access to shader variables. The main advantages of this API are static types on shader variables and the gamnit programs that can be specialized.
I'm not 100% satisfied with the structure of GamnitProgram and GamnitProgramFromSource, but I don't have a better idea on how to organize it. Also I will probably review the implementation of how `GamnitProgram::attributes` and `uniforms` are populated, but it shouldn't change the API much.
* cameras: Add an abstract Camera class and a simple EulerCamera based on euler angles, perfect for FPS type games or top-down strategy games. These camera main feature is to produce the MVP matrix.
More camera should be implemented, they should also be considered objects attachable to a scene when we have scenes. The EulerCamera lacks some feature, like the usual `look_at`.
These services are independent, it's clean but maybe it's not the best idea. We can't pass a camera to a mat4 shader variable, we have to manually extract the MVP matrix from the camera and pass it to the shader. Also to assign a texture to a sampler2d shader variable, we have to load the texture, assign its GL id to a texture unit and assign the unit's index as the shader variable value. This last issue could be simplified by more code in gamnit itself, but it will add coupling, it will be for a next PR.
The globe examples should replace the triangle example as the "minimal" example for gamnit. However I plan on updating it as I integrate more code into gamnit services allowing me to remove custom calls to OpenGL ES 2.0 from the example.
Pull-Request: #1890
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 11 Dec 2015 00:32:17 +0000 (19:32 -0500)]
Merge: engine: handle the compilation/interpretation of multiple varargs
While working on new constructors #1800, it appeared that the compilation of signatures with more than one vararg was broken.
The current engines never compile execute such a signature; signatures with multiple varargs only exists in the model to validate the arguments of the `new` syntax. The bug cannot be exhibited (so no specific tests).
Most of the changes are the same pattern: ask each parameter if it is a vararg instead of waiting a specific one.
Pull-Request: #1891
Jean Privat [Fri, 11 Dec 2015 00:31:31 +0000 (19:31 -0500)]
Merge: check_contrib: filter-out contrib/nitc when checking Makefile of projects
src/Makefile is already executed at the begin of the tests, so a double execution is mostly useless and time-expensive.
Pull-Request: #1888
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Thu, 10 Dec 2015 21:32:51 +0000 (16:32 -0500)]
engine: handle the compilation/interpretation of multiple varargs
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Sun, 6 Dec 2015 01:07:31 +0000 (20:07 -0500)]
lib/gamnit: intro the globe examples
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 30 Sep 2015 01:10:13 +0000 (21:10 -0400)]
lib/gamnit: intro graphic programs abstraction layer
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 30 Sep 2015 01:09:41 +0000 (21:09 -0400)]
lib/gamnit: intro the cameras module
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Sep 2015 13:47:47 +0000 (09:47 -0400)]
lib/gamnit: intro texture support
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 6 Dec 2015 01:05:17 +0000 (20:05 -0500)]
lib/gamnit: do not execute gamnit clients when testing
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 29 Sep 2015 20:49:40 +0000 (16:49 -0400)]
lib/gamnit: intro `GamnitDisplay::aspect_ratio`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 7 Dec 2015 04:13:21 +0000 (23:13 -0500)]
lib/android: demultiply pixel data from alpha value on request only
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 6 Dec 2015 01:04:03 +0000 (20:04 -0500)]
lib/c: intro CUInt16Array
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 6 Dec 2015 17:00:02 +0000 (12:00 -0500)]
lib/glesv2: intro glGet* and GL_MAX_* macros
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexandre Terrasa [Wed, 9 Dec 2015 06:53:01 +0000 (01:53 -0500)]
model_collect: allow collect by full namespace
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Wed, 9 Dec 2015 03:51:14 +0000 (22:51 -0500)]
Merge: Cleanup auto_super_init
Constructors have a long history of attempted specifications, therefore a lot of complex cases and code was still present to avoid breaking thing.
Here, we simplify the code of `auto_super_init` that deal with injecting implicit call to various semantic of `super` in a constructor.
Now, there is only two remaining cases:
* the constructor is a redefinition, then a genuine call to `super` (polymorphic and linearized) injected
* the constructor is the introduction of a named constructor, then a call to the auto `init` is injected iff there is no conflict and no arguments.
Pull-Request: #1883
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 9 Dec 2015 03:51:04 +0000 (22:51 -0500)]
Merge: Inline binops
This PR re-introduces several binary operations implemented as intern to avoid indirection through FFI in some specific cases to improve performance notably in `core/text/native`
Also a style change for `abs` which could easily be inlined and burned by eyes when I saw it, I can remove the commit if someone objects to the modification
Pull-Request: #1881
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 9 Dec 2015 03:50:20 +0000 (22:50 -0500)]
Merge: gamnit: use the same code to limit fps than mnit and fix errors
Fixed a few bugs in `mnit::mnit_fps`, a typo invalidated the value of `current_fps` and the use of long Ints were broken probably since they are tagged. Using floats should fix this last issue.
Finally, the goal of this PR is to copy the module `mnit::mnit_fps` to `gamnit::limit_fps` and adapt it to the gamnit framework. There is some code duplication, but the mnit version should be deleted with the engine when gamnit is completed.
Pull-Request: #1879
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 8 Dec 2015 21:19:58 +0000 (16:19 -0500)]
Merge: Added new `is_hexdigit` service on `Char`
Simple addition to the services of `Char`, might be useful
Pull-Request: #1884
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 8 Dec 2015 21:18:56 +0000 (16:18 -0500)]
Merge: Removed useless `buffered_ropes` package
Since the package was experimental and did not bring anything but woes to the maintainer of the `text` package, I'd suggest we remove it
Pull-Request: #1882
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Tue, 8 Dec 2015 21:18:48 +0000 (16:18 -0500)]
Merge: Use `as` casts to implicitly type class attributes
Until now, implicit types for class attributes are defined by literal types or new calls. This PR extends the support to `as` casts. So when an expression setting an attribute ends with a cast such as `.as(String)`, we can safely define the type of the attribute as `String`.
~~~
class A
# Before
var s: String = data_store["s"].as(String)
# After
var s = data_store["s"].as(String)
end
~~~
I did not modify the error messages by choice, to avoid making more complex the already long error messages with a rare use case. Also since `as` casts are unsafe by definition, I would not recommend to abuse this feature.
This does not apply to `as(not null)`.
Pull-Request: #1880
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 8 Dec 2015 21:18:45 +0000 (16:18 -0500)]
Merge: nitcorn server for nitiwiki
This PR contains the initial work of @ablondin and integrates it further with nitiwiki.
Intro a simple nitcorn server to publish the static files generated by nitiwiki and allow modifications from a web form. It is already applied on http://xymus.net/ to manage the main page.
The server reads the `config.ini` of the target to find the path to the public files. It writes the new markdown to the source folder and regenerates the wiki on each modification. The modification forms apply the template of the current wiki. (with some imperfections)
I've added a basic password authentication system using a list of hashed passwords in a simple text file. It should be enough for simple deployment of the server and this file can be ignored by git.
Limitations:
* Not integrated with all configuration of a nitiwiki server.
* Creating new files is supported by manually changing the path in the URI, but creating parent folders of a file is not supported.
* Some paths configuration may cause problems, the `edit/` page must be at the root of the server and other similar restrictions were not fully tested.
* There's no integration with git.
Closes #1832
Pull-Request: #1877
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 8 Dec 2015 20:49:31 +0000 (15:49 -0500)]
check_contrib: filter-out contrib/nitc when checking projects.
It was already executed.
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Tue, 8 Dec 2015 17:31:04 +0000 (12:31 -0500)]
examples: update users of `mnit::mnit_fps`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Tue, 8 Dec 2015 17:34:17 +0000 (12:34 -0500)]
tests: update *init* related tests
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 25 Nov 2015 16:47:12 +0000 (11:47 -0500)]
autosuper: remove most historic heuristics on implicitly injected `super`-call in constructors.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 25 Nov 2015 14:30:41 +0000 (09:30 -0500)]
autosuper: remove heuristic where a homonymous named constructor is implicitly called
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 8 Dec 2015 17:34:07 +0000 (12:34 -0500)]
code: various update to clean declaration or usage of constructors
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 25 Nov 2015 16:54:06 +0000 (11:54 -0500)]
code: explicitly call init in some named constructors
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Tue, 8 Dec 2015 19:19:25 +0000 (14:19 -0500)]
tests: Update with introduction of new methods in `kernel`
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Tue, 8 Dec 2015 19:15:37 +0000 (14:15 -0500)]
lib/core: Added new `is_hexdigit` service on `Char`
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Tue, 8 Dec 2015 17:07:07 +0000 (12:07 -0500)]
lib: Removed useless `buffered_ropes` package
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Tue, 8 Dec 2015 17:10:07 +0000 (12:10 -0500)]
lib/core: Inlined implementation of `abs`
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Tue, 8 Dec 2015 17:09:38 +0000 (12:09 -0500)]
lib/core: Re-implemented some frequently used binops for primitive types as intern with a FFI fallback
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Mon, 7 Dec 2015 00:38:38 +0000 (19:38 -0500)]
src: as casts define the type of class attributes
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 6 Dec 2015 22:47:37 +0000 (17:47 -0500)]
lib/gamnit: copy and update `mnit::mnit_fps` as `gamnit::limit_fps`
This duplication could probably be avoided as only the name of the method
`frame_full` changes. But the doal is also to fully replace `mnit` so
the old module should be removed soon...
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 8 Dec 2015 15:54:32 +0000 (10:54 -0500)]
lib/mnit: use floats to count fps to avoid long size problems
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 6 Dec 2015 22:47:04 +0000 (17:47 -0500)]
lib/mnit: fix broken `mnit_fps::App::current_fps`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 21 Nov 2015 21:57:58 +0000 (16:57 -0500)]
lib/core: intro `Float::sleep`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 8 Dec 2015 15:09:34 +0000 (10:09 -0500)]
lib/core: fix segfaults in `String::realpath` and remove fixed FIXME
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 8 Dec 2015 13:28:48 +0000 (08:28 -0500)]
contrib/nitiwiki: use absolute paths to detect access outside the source dir
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Tue, 8 Dec 2015 02:28:57 +0000 (21:28 -0500)]
Merge: glesv2: new services for uniforms, query info and glDrawElements! also update the API
As usual, the new features and changes aim to follow as closely as possible the C API.
With this PR, we have pretty much all the OpenGL ES 2.0 features needed for mineit and for a first version of gamnit.
Pull-Request: #1878
Reviewed-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Thu, 1 Oct 2015 03:12:04 +0000 (23:12 -0400)]
lib/glesv2 & gamnit: update examples
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 6 Dec 2015 17:00:59 +0000 (12:00 -0500)]
lib/glesv2: intro glDrawElements
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 6 Dec 2015 16:59:11 +0000 (11:59 -0500)]
lib/glesv2: allocate native strings with the GC instead of malloc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 6 Dec 2015 16:58:11 +0000 (11:58 -0500)]
lib/glesv2: add missing uniform functions
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 6 Dec 2015 16:56:57 +0000 (11:56 -0500)]
lib/glesv2: revamp the API to get logs
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 5 Oct 2015 17:31:29 +0000 (13:31 -0400)]
lib/glesv2: flatten hierarchy and update API style of GLDataTypes
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Sep 2015 01:11:22 +0000 (21:11 -0400)]
lib/glesv2: intro glGetProgramiv and glGetShaderiv, and clean related services
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 5 Dec 2015 13:48:27 +0000 (08:48 -0500)]
xymus.net: reorder top-menu elements
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 5 Dec 2015 03:58:58 +0000 (22:58 -0500)]
lib/nitcorn: add a wiki modification form to xymus.net
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 4 Dec 2015 22:32:04 +0000 (17:32 -0500)]
contrib/nitiwiki: add doc about nitiwiki_server to the README
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>