''A Comparison of C, MATLAB, and Python as Teaching Languages in Engineering'' [source]
It seems that Python wins this one :)
Thursday, December 06, 2012
What language for learning programming?
By
at
19:20
0
comments
Section: Personal, Programming languages, Software
Virtual Keyboard and other cool things...
'' TYPE ANYWHERE YOU WANT: VIBRATIVE VIRTUAL KEYBOARD
Your iPhone transforms any surface in virtual keyboard. This concept uses the iPhone’s accelerometer to record the different vibrations of the fingers on a surface. Each variation corresponds to a letter so you have a full invisible keyboard in front of you! The system is currently 80% accurate but the results improve when used in conjunction with an autocorrect dictionary.'' [source]
'' KINECT-POWERED MAPPING SYSTEM FROM MIT - This device allows the user to build maps of indoor environnements in real time. '' [source]
'' Get a new screen for your iPhone with this smart case. The back of the popSLATE is an E ink screen which can display all kinds of pictures or informations, even in the brightest sunlight. The dedicated app lets you easily capture pictures and share them with your friends but you can also choose to display notifications, maps and so on. '' [source]
''WRITE LIKE IT’S 1979 WITH BLINKY '' [source]
By
at
14:07
0
comments
Sunday, July 22, 2012
Interactive videos
''Create Your Own Interactive Videos
Have you ever wanted your media to interact with your audience? We'll show you how easy it is to turn your ordinary YouTube videos into interactive experiences. ...'' [source]
In general interactive videos are considered a kind of non-linear narrative. A list of non-linear editing tools is here.
By
at
11:00
0
comments
Section: Personal, Programming languages, Software
Functional programming ... in mainstream languages
and
'' Functional Programming ... from Eloquent JavaScript'' [source]
'' Charming Python: Functional programming in Python, Part 1... [source]
And to understand monads, check out this great article (with code in javascript):
''Translation from Haskell to JavaScript of selected portions of the best introduction to monads I've ever read'' [source]
Terrific examples!
By
at
10:41
0
comments
Section: Diverse, EverGreen, Personal, Programming languages, Software
Saturday, July 21, 2012
Non-Turing-Complete languages
''Practical non-Turing-complete languages?'' [source]
''... BlooP and FlooP are simple programming languages designed by Douglas Hofstadter to illustrate a point in his book Gödel, Escher, Bach.BlooP is anon-Turing-complete programming language whose main control flow structure is a bounded loop (i.e. recursion is not permitted). All programs in the language must terminate, and this language can only express primitive recursive functions.'' [source]
Perhaps the many editor and environments to define games in a high-level fashion can also be considered non-TC languages :)
By
at
19:03
0
comments
Section: EverGreen, Personal, Programming languages, Software
Tuesday, July 03, 2012
A page with all the 1D games... so far :)
Here is a page with all the 1D games I have so far, but I'm working on a few more :)
By
at
20:15
0
comments
Section: computing 4 kids, Personal, Programming languages, Software
Monday, July 02, 2012
Bloxorz remake in 1D on its way...
This is an initial attempt to recreate a bloxorz-like game, but with only 1 dimension.
The trick here is to find a way to transpose the key elements and play dynamics of bloxorz to a poorer, 1D space. [game]
By
at
12:40
0
comments
Section: EverGreen, Personal, Programming languages, Software
Sunday, June 24, 2012
1Dminos [one-d-minos]
A game like Tetris, but with only 1 dimension [game], still retaining some of the good rotate-place-and-match-colors, that was so nice in the original Tetris :)
The game is in javascript (and still rather ugly if you are brave enough to check the source code...) and it works on Windows (Chrome and IE8) and Mac (Safari).
Anyways... still lot of stuff to improve before it's close to an actual game... any suggestion is welcome :D
By
at
22:57
0
comments
Section: computing 4 kids, Personal, Software
Friday, June 22, 2012
Tetris 1D now exists :)
I guess I wanted to challenge the idea (nicely expressed here http://www.kongregate.com/games/zigah111/tetris-1d-2-0?referrer=zigah111 ) that a 1 dimensional tetris is obviously stupid.
In the standard 2D tetris you have shapes and colors, and the feeling you have when playing is that you control the way your pieces fall, sometimes their speed, their position and rotation.
I wanted to see if some of the feeling could be kept in 1D. I think colors are clearly allowed in 1D, so I decided to use them as shapes are used in 2D, to classify the pieces.
Rotation would not make sense with simple square pieces in 1D, so I went for swapping the falling piece with the top of the pile below; I thought this might keep the impression of being in control of the falling piece during its fall. However swapping alone was too limited to make the game fun or non-trivial :)
So I (and the nice folk that suggested so many variations on facebook) explored a few other options: a good one is reversing of the pile, which to me has a kind of formal-methods, string-manipulation feeling that fits well with a single dimension. Other operations that were considered are right shift of the pile, swap of the first and second half of the pile, and randomization of the pile.
Anyways...
The current version of the game is playable with keyboard or mouse, it works at least on chrome for windows.
HERE IS THE GAME.
New features:
- audio
- experimental support for touch for android
- levels
It would be nice to have the time to clean up the code (which is so horrible that it might have been written by a bunch of visually impaired monkeys, with limited understanding of scripting), and improve the levels. I would like to be able to change few things from a level to the next:
- how many colors are possible for the blocks in that level
- speed of the falling block (a classic!)
- enable or disable special operations, like in some levels you might have the randomize button active
- mirror the game left-to-right
and more advanced things could be:
- have many pieces to fall at the same time (a very interesting suggestion from Arturas)
- bonus pieces that allow to destroy all pieces in the pile with a specific color (for example)
- pieces falling from both sides
Also adding a few special effects, like rotation of pieces when swapped or splash screens between levels.
Perhaps using a spline instead of a straight line, to align the pieces in a more creative way, also to play a bit with the fact that it is a 1D game, but the screen is 2D anyway ... :D
By
at
10:51
2
comments
Section: computing 4 kids, Personal, Programming languages, Software
Wednesday, May 16, 2012
1D games
'' What's this? A one dimensional game? Impossible!
That's how most people have reacted. Yes, a game in only one-D. Not 2D, not 3D, but 1D.
I thought about it and thought it jack. Everyone argues that having it even a single pixel wide would make it the second dimension. Some people argued that it was even, along with every game, in the fourth dimension, Time. But nay!
You see, the thing is, a game that classifies as 2D is only that because that's the depth of the imagery. Sure, on paper, if you draw an image, you call it 2D. And you know why you discard the fact it's actually 3D, that there's an actual depth to the paper itself? Because there's no change to the image through the third dimension. '' [source]
Examples:
'' In 1992, Wolfenstein 3-D revolutionized video games and created the 3D first-person shooter genre. Now, after decades of development, Wolfenstein 3-D has been converted to breathtaking, epoch-making 1-D. You can now play the game in a single, dazzling one-pixel line. '' [source]
'' 1D Game idea came up when chating with my friend. We tought that a game that can be played in just 1 dimension would be interesting. It doesnt offer fun or true gaming experience, altough it took just couple of hours to make. '' [source]
'' Ever wondered how would it be to see everything through a scanner, one line at a time?
In Eye-Scan the challenge is to discover exactly what is hidden behind the single line you can see from an object being scanned.
Hidden objects can be letters, numbers, symbols, shapes, anything you imagine! '' [source]
By
at
09:43
0
comments
Section: computing 4 kids, EverGreen, Software
Wednesday, May 09, 2012
Make my own games for Nintendo 3DS via browser
There might be a "simple" and legal way to develop free games for the Nintendo 3DS platform.
'' A coder has discovered that Nintendo's launch of a browser for the 3DS allows basic homebrew apps and games to be created in JavaScript.
... Andy Smith, who also happens to be the brains behind the excellent Spotibot, noticed that it comes with just enough functionality to get basic JavaScript apps to run. "I reckoned it was a ported browser, so lazy porters would likely just map some of the buttons to ASCII codes," Smith told Thinq. "Turns out they did. I've only got Up, Down, Left, Right, and A, but that's enough." ...
He's put together a basic tech demo for people to experiment with, which you can find here (it'll work in a regular browser as well as the 3DS's). ... '' [source]
And a javascript library to work with 3DS games is also under development [see here].
It would be great for things like e-learning, since researchers could develop games and educational programs and deploy them on the 3DS platform. (btw that's what I do in my work :D )
By
at
19:03
0
comments
Section: computing 4 kids, Personal, Programming languages, Software
Thursday, May 03, 2012
3D printing and fractals
'' ... intriguing software tool that can be used to develop incredibly cool 3D models. It's called "SUBSTANCE", from NeuroSystems. Here's NeuroSystem's tagline:
Some examples of drawings based on fractals.
By
at
22:52
0
comments
Section: EverGreen, printing 3d objects, Software
Monday, April 23, 2012
Interactive computation (part 2)
''First-order interactive programming
Interactive programming is a method for implementing programming languages that supports an interactive, exploratory style of program development and debugging. The basic idea is to reify the steps of a computation into a persistent data structure which can be explored interactively, and which reacts to changes to inputs like a spreadsheet.
Reifying the computation associates the computed value with provenance information, which is essential to effective program comprehension and debugging. Making the data structure persistent means that it can evolve incrementally, preserving existing structure where possible, allowing the programmer to apply fixes to a program in the middle of a complex debugging activity without having to restart the program and lose browsing context. Interactive programming lies at the intersection of incremental computation, software visualisation and reactive programming.'' [source, more details here] by Roly Perera.
The ideas presented in the paper above are great, and I would really like to implement some of them, via a meta-interpreter of some simple language like javascript (i.e. using an interpreter design pattern).
However many of the concepts relate to functional programming, while I would be more interested in imperative languages. BTW: I created a GUI where many of the ideas discussed by Perera are implemented, only it was very complex to model term rewriting with branching in a visual environment, so I got stuck in various occasions. The project is called FreeSketch and it is still going on... actually after reading the great work of Perera I'm more stimulated in resuming the work on FS :)
''Self-Adjusting Computation
Self-adjusting computation refers to a model of computing where computations can automatically respond to changes to their data. The basic abstractions and algorithms for self-adjusting computation were invented during my Ph.D. jointly with Guy Blelloch and Robert Harper. In subsequent work, we have extended these techniques to imperative (effectful) computations and traceable data structures, developed programming languages and systems support self-adjusting computation. ... '' [source] by Umut A. Acar.
I will read more, then whenever I have time I will try to implement a fragment of an imperative language that enables interactive programming, to show how it could be done, in a practical unoptimized way ;)
By
at
20:57
2
comments
Section: EverGreen, Personal, Programming languages, Software
Friday, April 20, 2012
Interactive computation
''A Theory of Interactive Computation (Presentation)
...
Modern computer systems are built from components that communicate and compute, while interacting with their environment.
- Web Server & Client (Server/Client Model)
- Ubiquitous computing
Traditional Model is incomplete! ...
Purpose of Interactive System ...
Not to compute some finial result
React to environment or Interact with environment
Maintain a well-defined action-reaction behavior'' [source]
''Computers today are not only the calculation tools - they are directly
(inter)acting in the physical world which itself may be conceived of as the
universal computer (Zuse, Fredkin, Wolfram, Chaitin, Lloyd). In expanding its
domains from abstract logical symbol manipulation to physical embedded and
networked devices, computing goes beyond Church-Turing limit (Copeland,
Siegelman, Burgin, Schachter).
Computational processes are distributed, reactive, interactive, agent-based and concurrent. The main criterion of success of computation is not its termination, but the adequacy of its response, its speed, generality and flexibility; adaptability, and tolerance to noise, error, faults, and damage. Interactive computing is a generalization of Turing computing, and it calls for new conceptualizations (Goldin, Wegner).
In the info-computationalist framework, with computation seen as information
processing, natural computation appears as the most suitable paradigm of
computation and information semantics requires logical pluralism.'' [source]
''Programming Languages For Interactive Computing.
...
Traditional programming languages are algorithmic: they are best suited to writing programs that acquire
all their inputs before executing and only produce a result on termination. By contrast most applications
are interactive: they maintain ongoing interactions with their environments. ...
I describe a programming model called declarative interaction which supports
interaction directly. The distinguishing feature of the model is its modal construal of state and interaction. ...
We shall rather informally understand an interactive programming language
(IPL) as follows. An IPL allows programmers to build interactive systems that conform to the declarative interaction model { that is to say systems which have a
modal notion of state, that separate stateful reactive computation from a declarative
core language, and that are incremental, concurrent, transactional and persistent {
in an \immediate" or direct way which is qualitatively di®erent both from the batch-
style edit-compile-execute cycle and from the read-eval-print loop of traditional
interactive programming environments such as Lisp. ...
An IPL is neither compiled nor
interpreted in the traditional sense: it is itself an interactive system that conforms to
the declarative interaction model, although it may not have been built using it. The
\state" at any point in time of an implementation of an IPL is a partially terminated
program in the declarative core language: \programming" is just interacting with
its state. Its initial state is just the null program; the user can edit this into any
program in the space of possible programs in the declarative core language.
...
An early experiment [...] showed how the untyped lambda calculus can be made interactive; a more recent investigation (unpublished) suggests that object-oriented languages can be treated similarly. Interactive logic and relational programming languages are presumably feasible.
''[source]
To follow some of these papers one need to know about omega languages (where strings can be infinite):
http://en.wikipedia.org/wiki/Omega_language
''... an ω-language L over Σ is a subset of Σω. ''
and omega itself comes from Cantor's transfinite numbers: nice intro here.
By
at
10:00
0
comments
Section: EverGreen, Personal, Programming languages, Software
Tuesday, April 17, 2012
Basic English
''Basic English (British American Scientific International Commercial) is a constructed (made-up) language to explain complex thoughts with 850 basic English words chosen by Charles Kay Ogden.
...
- LEARNING OGDEN's BASIC ENGLISH
Projects and References for Learners
- And here you can build sentences in Basic English:
Thursday, February 09, 2012
Wanna program a bit... and make a game without sweating too much? ;)
Check out these nice and free environments:
''Scratch 1.4.
Scratch is a programming language that makes it easy to create your own interactive stories, animations, games, music, and art -- and share your creations on the web.'' [source] 2D, very friendly to use for non-programmers
''Kodu.
Kodu is a new visual programming language made specifically for creating games. It is designed to be accessible for children and enjoyable for anyone.'' [source, download]
By
at
22:34
0
comments
Section: computing 4 kids, EverGreen, Programming languages, Software
Friday, August 19, 2011
Reactor Design Pattern
Imagine you want to have a lot of processes BUT without using threads...
How to achieve something like that?
''Reactor pattern
The reactor design pattern is an event handling pattern for handling service requests delivered concurrently to a service handler by one or more inputs.
'' [source]
''EventMachine: scalable non-blocking i/o in ruby'' [source]
An application of these ideas can be found in ''Node.js'' [source]
By
at
20:23
0
comments
OpenCV in Processing
''OpenCV and Processing'' [source]
By
at
20:20
0
comments
Section: Programming languages, Software
Monday, July 04, 2011
Analytical Engines
By
at
14:01
0
comments
Section: computing 4 kids, EverGreen, popular science, Software
