Better HN
topnewbestaskshowjobs
Log inSign up

martinfjohansen

140 karma · joined Aug 3, 2018 (8y ago) · 27 submissions

Martin Johansen is a inventor and businessman. He has created progsbase, a tool for writing timeless programs for timeless automations. Martin has a PhD and 10 years proffesional experience as a software developer.
Submissions

1.

8086's Non-Computational Instructions(progsbase.com ↗)

2 points · by martinfjohansen · 3y ago · discuss

2.

Language Features vs. Usefulness and Understandability(progsbase.com ↗)

1 points · by martinfjohansen · 6y ago · discuss

3.

Plotting Library Written the Same Way in 10 Programming Languages(github.com ↗)

5 points · by martinfjohansen · 6y ago · discuss

comment 6y ago · link · parent

I used "yEd live".

comment 6y ago · link · parent

Hi, I am the author of the article, thanks for noting an error in the exception and finally diagrams! I have fixed the error where controlflow always went to the catch block.

6.

Flowcharts of programming language constructs(progsbase.com ↗)

253 points · by martinfjohansen · 6y ago · 85 comments

7.

Global Variables – Still a Major Source of Problems in IT Projects(progsbase.com ↗)

7 points · by martinfjohansen · 6y ago · discuss

8.

Haven’t upgraded to PHP 7? You’re not alone(progsbase.com ↗)

1 points · by martinfjohansen · 7y ago · discuss

9.

Top Reasons Your Software Became Legacy(progsbase.com ↗)

1 points · by martinfjohansen · 7y ago · discuss

comment 7y ago · link · parent

Yes, the library will be expanded with functionality.

11.

A Timeless, Lightweight Barcode Component(progsbase.com ↗)

2 points · by martinfjohansen · 7y ago · 2 comments

comment 7y ago · link · parent

Those are good questions, I should have written more about that in the article! I'll give some brief answers:

Regarding the age of the converter: Even though it is new it is thought through. Check out the detailed documentation and technical articles on the website for an explanation. The converter basically deals with floating point computations carefully and in a way programmers commonly deal with them when doing scientific computations.

The reimplemented standard library are methods such as draw a line from point a to b, or draw this text at this point. Draw pixels at a certain coordinate, check if a key was pressed. So, the basic answer is that the functions were quite simple to get right. Had the library been more complicated, it would have been a different story.

Yes, you are right about the 5% edits. I should have added a section on Q&A done after the translation was done. It is of course very important to test code carefully after translation.

13.

Converting an ILS Localiser Simulator from 1980’s Turbo Basic to Java(progsbase.com ↗)

4 points · by martinfjohansen · 7y ago · 2 comments

14.

A Short Introduction to Progsbase(youtube.com ↗)

1 points · by martinfjohansen · 8y ago · discuss

15.

Quiz: You think you know Python?(progsbase.com ↗)

3 points · by martinfjohansen · 8y ago · discuss

comment 8y ago · link · parent

> You would still need the compiler to be written in progsbase too: is it?

Currently no, but the progsbase language is very simple and contains only well-known constructs. So creating a compiler is very simple, it would take only a few days. This is like the point you make about forth, except forth contains less well known constucts.

> open source

The progsbase specification is also open: https://docs.progsbase.com/

comment 8y ago · link · parent

The WMWare example is very interesting!

Let me just note that the article does not propose a solution to VMWare's problem. It only notes that when instructions are removed, code using it stops working.

comment 8y ago · link · parent

As I explained in another response, progsbase is very different from Haxe. Haxe is an independent language. If you use Haxe, then you depend on the Haxe compiler. Progsbase is completely in other languages, meaning the progsbase tools are only support tools which gives you certain benefits such as being able to translate. You code remains pure Java which you develop with Java tools.

comment 8y ago · link · parent

Haxe is an independent programming language that can be compiled to other languages. Progsbase is very different: It is a language in other languages.

comment 8y ago · link · parent

C89, C99, Python 2, 3 were only examples as the table header says.

comment 8y ago · link · parent

See the answer I gave maxxxxx above.

Further, progsbase is not a brand new language, it is (mostly) a subset of most existing languages. The selection of the subset is new, but not the contents. This is why the progsbase repository contains examples that can be translated into Java, C, C++, JavaScript, C#, PHP, Python and Visual Basic.

comment 8y ago · link · parent

The reason the name "infrastructure instruction" was coined for this article is that it includes instructions such as "int", "rdtsc", which do not deal with only input and output, but deal with more complex things inside a CPU, such as timers and CPU privilege levels.

comment 8y ago · link · parent

The argument was that a program written with proven, solid programming constructs, then it will last a long time. The example language is very simple: It contains things like: +, -, *, /, log, sin, cos, exp, functions, ifs and for loops. These things will not be unexecutable any time soon. These were basically in Charles Babbage's programming language for the Analytical Engine designed in the 1830s, two centuries old already.

comment 8y ago · link · parent

The removed instructions were binary-coded-decimal instructions, push / pop of CS/DS/ES/SS. These are minor instructions, but if your program used them, that alone means it no longer works, and that was the point.

25.

Software Rot and Classes of Rot Resistance(github.com ↗)

44 points · by martinfjohansen · 8y ago · 25 comments