Programming for fun

I have created an interpreter for a scripting language that I use to perform various operations. See if it is sufficiently obscure and fun (search nikkNizz Dunocode). I did not put the source code of the interpreter because I wrote it badly with parts in Italian, and it is not very readable
 


I am currently getting up to speed in Lua and dusting my C so I can tinker a bit with a PlayDate my wife got me for christmas.

I always enjoyed programming and I try to code games off work for the fun of learning. It's not something I can do every so often --last time it was a clone of tetris I made with Python and PyGame back in 2016.
 
Why not embedded ?
Programming for embedded devices is fun and productive only if you have the hardware.
Most people will code on their desktop PC.
 
Hi,

my programming language is not obscure but i try to code(@ home not @ work) all things with bash. Also desktop apps and so on this is a little bit special.
I've been doing a lot of scripting with sh (busybox ash) in the last few years and have written a few apps as shell scripts that would have been better served by other programming languages... but where would be the fun in that?

Now I find myself, once in a long while, wanting graphical elements to use in my scripts. Yes, of course, there are such things - but at that point I'm basically saying, "This script is never going to run in a console but always in a graphical environment," so then why not just write a graphical application using one of the well known graphical toolkits (fltk, gtk, etc)? The answer horrifies me: It's because, even though I've been programming pretty much forever, I've never actually written a graphical application. I guess it's time.
 
Why not embedded ?
For starter : https://www.reichelt.com/de/en/shop...-219361?country=de&CCTYPE=private&LANGUAGE=en

Imagine, it is possible, to control the MCU directly.

Common in use, "c", but for embedded, primitive as possible, easy to learn.

Its only a hint, if someone does not program.
My very first job as a -professional- geek consultant was to "update a software design document" for the controller in a medical device. I essentially was tasked with reverse engineering the C source code to determine in what function each of a couple thousand software requirements was met. I learned a lot about embedded programming, though I have no idea what MCU the device had in it.

One thing that amused me during that project was that the control code for the device's little built in LCD display had been downloaded from somewhere on the internet (this was in 1997) and the code was well commented by the guys (my client's guys) who had downloaded it... well enough commented to demonstrate that they had no idea how it actually worked. But it -did- work and I was documenting the code not the comments.

In more modern times, if you hook up some rudimentary hardware - blinkenlights, little motors, and/or some sensors or detectors to the GPIO pins of an Arduino or a Raspberry Pi and make then do something then Voyla! embedded programming... now make it mow your lawn. :) One of my all time favorite computers was a Z80 board intended for embedded control purposes. It was in an EBX form factor - just the right size to bolt i to the bottom of a 5.25" disk drive, so it also made a -really- nice little CP/M PC. I think of it as sort of a Raspberry Pi but three decades earlier.
 
Programming for embedded devices is fun and productive only if you have the hardware.
Most people will code on their desktop PC.
When Radio Shack was going out of business, I spent about three hundred dollars on a bunch of discrete electronic components and a handful of Arduino UNO boards, some of the stuff on 95% discount, before the local store closed. The idea was to get my kids interested in such things (it's a home schooler thing), but only one of them really did get interested so I still have a big box of toys.
 
Against embedded ;
To buy a testboard (the given example see above of Reichelt : 15.- € (But surely you will find something like that on an internet platform for model railway, airplane.).
It is very important that a c-compiler, flashing SW for the respective MCU/Testboard will be reliable.
Pro embedded :
To write your own Operating-system.
It can be a simple endless loop to rd/wr some I/Os or a real time system, that use an timer interrupt,
to set e.g.: I/Os for a defined time.
Or it can also be a layer differentiated OS to control the "Christmas lights" ...
But it is also possible, if you have a very old 32-system in your cellar, install the respective linux, and configure e.g. the monitor settings, please have in mind, your thumb should be near by the switch, to turn off the monitor.
But it is also programming, provided by linux.
 
Last edited:
Perhaps someone like Fortran77 : http://physik.uibk.ac.at/hephy/praktikum/fortran_manual.pdf
To install a F77 compiler :

Code:
sudo apt install gfortran  # version 4:13.2.0-2ubuntu1, or
sudo apt install fort77    # version 1.15-12

E.g.: goto will be possible, but it is a must : All declared variables, functions must be used.
A control variable in a for-loop : The first character must be "i,j,k,l,m, or n" (as in mathematics used for an index). ...
 
Last edited:
...Nim...

Nim is a very nice language. Was my favourite for some time. The compilation speed wasn't great (Nim translates to C and then uses C compile to generate final binaries), but the syntax and the speed of produced executables are fantastic.
 
I'm no programmer, but the most obscure programming languages I know of, are:

Brain*uck:

A Hello World program looks like this:

Code:
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++
..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.

Also theres Terry A Davis "Holy C". The language TempleOS is written in


Code:
U0 Main()
{
  U8 *message = "hello world";
  "%s\n",message;
}
Main;
 
Last edited by a moderator:
Also, we should probably (and I know it's a 'proper noun') call it 'Brainf*ck' just to not annoy people or offend parents when they see their kids on this site.

That's only going to be partially effective as it will still be in links. Maybe we don't need to link to it and people can search for it on their own. After all, they'll be able to figure out the missing vowel and know how to use a search engine.

So, maybe we could consider fixing that up to be more 'child appropriate'. Yes, we have kids who visit. We don't have a lot of kids, but we do have them. We don't need them to see the f-word while their parent looks over their shoulder (which they should do from time to time). Said parent might tell them that this site is then off-limits, which would suck.
 
Also, we should probably (and I know it's a 'proper noun') call it 'Brainf*ck' just to not annoy people or offend parents when they see their kids on this site.

That's only going to be partially effective as it will still be in links. Maybe we don't need to link to it and people can search for it on their own. After all, they'll be able to figure out the missing vowel and know how to use a search engine.

So, maybe we could consider fixing that up to be more 'child appropriate'. Yes, we have kids who visit. We don't have a lot of kids, but we do have them. We don't need them to see the f-word while their parent looks over their shoulder (which they should do from time to time). Said parent might tell them that this site is then off-limits, which would suck.
better?
 

Absolutely. I think there's another post that mentions it, so I'll clean that up as well. I did remove the URL. It's 'unfurled' which shows the name. Thanks!

I know it's a noun but we should err on the side of caution. Personally, I love a well-placed swear. I spent a long time in the Marines, after all.
 
I'm no programmer, but the most obscure programming languages I know of, are:
I seem to recall one named "whitespace" where all of your code consists of white space characters and any text you can actually -see- is a comment. I'd show a code example, but... how do you know I didn't? :D
 


Members online


Top