Traveller Store CotI Features New Posts Mark Forums Read Register


Go Back TravellerRPG.com > Citizens of the Imperium > General Traveller Discussions > Software Solutions

Software Solutions Discussions on Traveller related software.

View Poll Results: What Programming Languages do you currently code in?
C/C++ 28 38.36%
Go 5 6.85%
Windows Based (C#, .Net, etc) 24 32.88%
Python 28 38.36%
Perl 17 23.29%
Java 14 19.18%
Ruby 4 5.48%
PHP 9 12.33%
Shell 18 24.66%
Other(please post) 23 31.51%
JavaScript/ECMAScript 20 27.40%
SQL 24 32.88%
Multiple Choice Poll. Voters: 73. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #171  
Old June 21st, 2019, 08:31 PM
whartung whartung is offline
Citizen: SOC-14
 
Join Date: Nov 2004
Posts: 2,576
Gallery : 0
whartung Citizen+whartung Citizen+whartung Citizen+
Default

Quote:
Originally Posted by Leitz View Post
And what is a stack based language?
In most languages, a stack is used for many things, notably parameter passing, but also things like local storage allocation.

However, these stacks are implementation details and not a first class construct within the language itself.

In Forth, and other stack based languages, the stack is, indeed, front and center of the system.

The most common example is RPN math, made most popular by Hewlett Packard calculators.

In RPN and simple equation like:

1 + 2 * 3

Becomes

1 2 3 * +

The arguments to the operations/functions are put (pushed) on to an argument stack, and then the operations remove (pull) them from the stack, and then push their results back on.

So, in the second example, we push 1, 2, and 3 on the stack. We then evaluate the * operator, which pops the 3 and 2, multiplies them together, and then pushes the result, 6, back on to the stack. Then, the + operator pulls two arguments off the stack, the 6 (result of the *) and the 1, and then adds them together. Leaving the result 7 on the stack.

If these were functions, it would look like:

+(1, *(2, 3))

Note that we did:

1 2 3 * +

and not

1 2 + 3 *

That's because algebraically, the * has precedence over the +, so it needs to be evaluated first.

1 2 3 * + == 7

while

1 2 + 3 * == 9

Different answer.

The Java JVM is a modern implementation of a virtual stack machine, but it's internal and not manifest in the Java Language itself.

Stack machines have been around for quite some time.
Reply With Quote
  #172  
Old June 21st, 2019, 10:38 PM
ShawnDriscoll's Avatar
ShawnDriscoll ShawnDriscoll is offline
Citizen: SOC-13
 
Join Date: Apr 2017
Posts: 885
Gallery : 0
ShawnDriscoll Citizen+ShawnDriscoll Citizen+
Default

Quote:
Originally Posted by Leitz View Post
Of the 153 jobs on Dice.com that reference Forth, not all seem to mean the programming language. Of course, that's still more than TCL, Elixir, or Haskell.
Ha! APL and PL/I are up there on the popular languages to not use as well.
Reply With Quote
  #173  
Old June 22nd, 2019, 02:16 AM
aramis's Avatar
aramis aramis is offline
Administrator
 
Join Date: May 2001
Location: Anchorage, AK, USofA
Posts: 29,416
Gallery : 56
Visit aramis's Blog
aramis has disabled reputation
Send a message via ICQ to aramis Send a message via AIM to aramis Send a message via Yahoo to aramis
Default

Quote:
Originally Posted by whartung View Post
To be pedantic, there's probably more Postscript source code out in the world, buried within PDF files, than any other language (JavaScript would give it a good run for its money, for sure). Sure, it's machine generated. Like I said, pedantic.
Javascript probably does outdo PS... but that's because it's embedded in much of the web, not just a large fraction of PDFs...
__________________
~ Aramis
aramis.hostman.us /trav
Smith & Wesson: The Original Point and Click interface!

Archduke of Sylea (CORE 2118)
Duke of the Third Imperium (SPIN 0534)
Count Terra (SOLO 1827)
Count Gorod (REFT 1302)
Count of the Third Imperium (SPIN 2232)
Viscount of Adabicci (SPIN 1824)
Marquis of the Solomani Rim (SOLO 0606)
Marquis of the Third Imperium (SPIN 2410)
Baron of the Third Imperium (SPIN 2231)
Knight of the Iridium Throne (CORE 1434)
Sir William Hostman (OLDE 0512)
Sir William Hostman (DAGU 0622)
Knight of Deneb (REFT 2239)
Knight of Deneb (Spin 2532)
SEH w/Diamonds for Extreme Heroism - Battle of Boughene
MCG - Battle of Boughene
TAS: William Hostman (CORR 2506)
TAS: Bearer (DAIB 1326)
IMTU ct+ tm++ tne tg-- tt+ tmo+ t4- t20+ to ru+ ge+ 3i+ c+ jt au ls pi+ ta he+ st+
Wil Hostman 0602 C539857-9 S A724
OTU: 95% 3i an+ au+ br- cpu± dt± f+ fs++ ge± ih- inf± j± jf+ jm+ jt+ ls- n= nc+ pi+ pp-- tp+ tr+ tv- vi-- xb+-
Unless there is bold red text, presume my posts to be my personal material only.
Reply With Quote
  #174  
Old June 24th, 2019, 03:56 PM
wbuthod wbuthod is offline
Citizen: SOC-12
 
Join Date: Sep 2017
Location: Tulsa
Posts: 175
Gallery : 0
wbuthod Citizen
Default

Quote:
Originally Posted by ShawnDriscoll View Post
Ha! APL and PL/I are up there on the popular languages to not use as well.
Aw, and here I got all excited with this week's release of GNU APL 1.8, with baked-in FFT, regular expressions, and GTK GUI capability. Now, where did I put my Greek keyboard...
Reply With Quote
  #175  
Old June 24th, 2019, 10:59 PM
ShawnDriscoll's Avatar
ShawnDriscoll ShawnDriscoll is offline
Citizen: SOC-13
 
Join Date: Apr 2017
Posts: 885
Gallery : 0
ShawnDriscoll Citizen+ShawnDriscoll Citizen+
Default

Quote:
Originally Posted by wbuthod View Post
Aw, and here I got all excited with this week's release of GNU APL 1.8, with baked-in FFT, regular expressions, and GTK GUI capability. Now, where did I put my Greek keyboard...
APL's vector capabilities for Python programmers probably nudged it up from .00255 to .0027 on the grinder.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Programming Language(s)? Vargas Software Solutions 82 November 27th, 2016 07:25 PM
Vilani Programming robject Software Solutions 14 June 6th, 2014 01:55 AM
LBB2 Ship Programming Idears jawillroy Classic Traveller 13 June 6th, 2008 12:36 PM
languages sid6.7 Contact! 4 June 13th, 2006 12:52 AM
[Semi-OT] What programming language should I learn? Golan2072 Software Solutions 60 June 9th, 2006 11:17 AM

This website and its contents are copyright ©2010- Far Future Enterprises. All rights reserved. Traveller is a registered trademark of Far Future Enterprises .
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2010-2013, Far Future Enterprises. All Rights Reserved.