DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

View Poll Results: favorite programming language?
Asm 19 11.80%
C 59 36.65%
C++ 33 20.50%
C# 8 4.97%
Java 14 8.70%
Javascript 5 3.11%
Perl 29 18.01%
PHP 31 19.25%
Ruby 12 7.45%
Python 37 22.98%
Shell 31 19.25%
Awk 14 8.70%
Others: Tcl, Erlang, Haskell, Ocaml, D, Forth ... 22 13.66%
Multiple Choice Poll. Voters: 161. You may not vote on this poll

Reply
 
Thread Tools Display Modes
Old 2nd March 2015
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 143
Default

I'm thinking of trying to learn to use Perl - though I'm only going to do it for no other reason than to try & keep my old grey cells alive & active.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
Old 2nd March 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by hanzer View Post

I'm surprised the OpenBSD community [seemingly] has no interest in Ada.
Could you please explain it a bit? I personally always great deal of interest in strongly typed languages.
Reply With Quote
Old 3rd March 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 267
Default

Quote:
Originally Posted by Oko View Post
Could you please explain it a bit? I personally always great deal of interest in strongly typed languages.
Video - Ada, Past Present and Future
Book - Ada Distilled

Gnat, GCC's Ada frontend, is available /usr/ports/lang/gcc but I haven't tested it extensively. The gcc-aux compiler is [unfortunately] not in the ports tree and it looks like it is no longer built/maintained for OpenBSD.
Reply With Quote
Old 3rd March 2015
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,277
Default

Quote:
Originally Posted by Oko View Post
Could you please explain it a bit? I personally always great deal of interest in strongly typed languages.
Ada is the result of an effort to standardize the programming language used for all DoD (Department of Defense) projects back in the 1970's. With very large-scale goals, Ada compilers were huge, & required official validation -- meaning that they could not be officially be called Ada compilers without passing an official battery of tests. The intent was that Ada code successfully compiled on one validated compiler should compile & run with the same behavior on any other platform using an equally validated compiler.

However, these goals were not completely realized. The defense industry didn't readily accept Ada, & while there were a number of projects successfully using the language, use of other languages perpetuated -- partially because Ada compilers, having to be validly support all aspects of the language specification were large -- impractically so for nominal hardware platforms.

Secondly, Ada was intended for programming in the large. While Ada sports many of the features found in other languages today, it wasn't fully object-oriented (using today's accepted definition...) until Ada95. While many might consider this of marginal importance, it put Ada behind other popular languages at the time.

Not speaking for the OpenBSD community, but in my opinion, the overhead of compiler validation & compiler size lessened the attractiveness of the language in comparison to what could be found in other readily available alternatives.

Otherwise, Ada is not a bad language; it has some interesting checks. It still fills the niche of a number of projects which are usually government related.

More information can be found on Wikipedia:

http://en.wikipedia.org/wiki/Ada_%28...ng_language%29

Last edited by ocicat; 3rd March 2015 at 11:28 AM. Reason: correct spelling
Reply With Quote
Old 3rd March 2015
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,503
Default

Niklaus Wirth, the father of Pascal, foresaw that Ada would be to complex. That is why he developed Modula-2 as an simpler Ada alternative.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 5th March 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 267
Default

Quote:
Originally Posted by Oko View Post
Quote:
Originally Posted by hanzer View Post
I'm surprised the OpenBSD community [seemingly] has no interest in Ada.
Could you please explain it a bit?
Hmm, I suppose that you might have been asking about the lack of interest in Ada on OpenBSD. The general BSD/Ada situation was laid out nicely a few years ago on a FreeBSD mailing list:

Improving Ada support on FreeBSD and in the ports system (2009)
Quote:
PROBLEM 1. Lack of packages (as shown above)
PROBLEM 2. No choice in the use of compiler
PROBLEM 3. Compiler version chaos and lack of architecture support
PROBLEM 4. Lack of a debugger
PROBLEM 5. Lack of a consistent policy for Ada packages
The author of that email went to work on the problems and has made tremendous progress in bringing a coherent set of Ada tools and libraries to FreeBSD, DragonFlyBSD, and NetBSD.

FreeBSD Quarterly Status Report (2013)
Quote:
At this point, it looks like FreeBSD (shared with DragonFly via DPorts) has taken the crown from Debian as the recognized best Ada development platform. The FreeBSD versions of the software are more recent and the Ports Collection has ports not available on Debian, such as LibSparkCrypto, the Matreshka library, and the Ahven unit tester.
It looks like there are 54 FreeBSD ports related to his project.

I suspect he was going to do something similar for OpenBSD but it didn't happen somehow.

Last edited by hanzer; 5th March 2015 at 09:18 PM. Reason: phrasing
Reply With Quote
Old 6th March 2015
ibara's Avatar
ibara ibara is offline
WR Slowest SNOBOL4 laptop
 
Join Date: Jan 2014
Posts: 523
Default

Quote:
Originally Posted by hanzer View Post
I suspect he was going to do something similar for OpenBSD but it didn't happen somehow.
I am unsure how you came to that conclusion.
Reply With Quote
Old 6th March 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 267
Default

Quote:
Originally Posted by ibara View Post
I am unsure how you came to that conclusion.
That's cool. John gave a talk at FOSDEM 2014 - Ada in *BSD. Page 23 might be interesting:

Quote:
At last check, GNAT builds almost perfectly on OpenBSD
with the DragonLace patches. It only fails to detect
running out of stack space.

There was never any interest shown for my version
GNAT in OpenBSD, esp. as a maintainer is required.

It would be trivial to port given two examples (ports &
pkgsrc) already exist, as well as a functional bootstrap.

In official repo, there are FSF GNAT 4.6.4 and 4.8.1 for
i386 and amd64. The results of the testsuite are
unknown; no DragonLace patches were used AFAIK.
Reply With Quote
Old 26th October 2017
demifiend's Avatar
demifiend demifiend is offline
Real Name: Matthew Graybosch
Silent Protagonist
 
Join Date: Oct 2017
Location: Harrisburg, PA
Posts: 29
Default

I like to use C# at work. Most of C# jobs I've found are relatively chill 9-5 affairs with minimal overtime. Also, C#'s LINQ is brilliant if you don't have experience with LISP or functional programming languages.

C was my first, and I still tinker with it occasionally because it keeps me humble.

However, most of my home programming is in the shell. My last two scripts took an arbitrary set of images, copied them to two directories named "originals" and "resized", resized them with ImageMagick, and adjusted their compression with jpegoptim. The other takes a directory full of Markdown and org-mode files and runs them through pandoc to build a website.
__________________
OpenBSD 6.2-RELEASE on Thinkpad T430s, ThinkCentre M92P, and Clevo W24AEU
Web | Keybase | Mastodon | GitHub
"What happens in the TARDIS stays in the TARDIS."
Reply With Quote
Old 26th October 2017
GarryR's Avatar
GarryR GarryR is offline
Real Name: Garry Ricketson
Package Pilot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 202
Default

I would be interested in seeing this script that you used/wrote for ImageMagick, if you are willing to share it.

Quote:
---is in the shell.
, But which shell, ? I use ksh , in any event it would be interesting to me
to see this script, what I have in mind is for 2 directories, Images and a sub dir, "thumnails".
If you do share it, it probably would be best in it's own topic, here in programming,
For example: Ksh , Image Magick resize script ,... or something like that.
At this time I manually make the thumbnail using the convert command, but 1 image at a time. A script that could do the entire image dir would be handy.
thanks

For me my favorites, I think I all ready said once, but any way Perl, was bash, but now ksh I like much better, qbasic, was, but that was a long time ago, it is not of much use any more.
PHP, I hate, but it is necessary to understand at least a little, after all said and done I am
not really any kind of programmer, it is all a hobby for me.
__________________
My best friends are parrots
Reply With Quote
Old 27th October 2017
demifiend's Avatar
demifiend demifiend is offline
Real Name: Matthew Graybosch
Silent Protagonist
 
Join Date: Oct 2017
Location: Harrisburg, PA
Posts: 29
Default

Quote:
Originally Posted by GarryR View Post
I would be interested in seeing this script that you used/wrote for ImageMagick, if you are willing to share it.
Here you go. You'll see that it's a bash script. I first started working on this when I still ran Linux. While it runs under ksh, I keep it under bash because I figure it's easier for BSD users to install bash from a port than for Linux users to install pdksh.
__________________
OpenBSD 6.2-RELEASE on Thinkpad T430s, ThinkCentre M92P, and Clevo W24AEU
Web | Keybase | Mastodon | GitHub
"What happens in the TARDIS stays in the TARDIS."
Reply With Quote
Old 27th October 2017
ibara's Avatar
ibara ibara is offline
WR Slowest SNOBOL4 laptop
 
Join Date: Jan 2014
Posts: 523
Default

Quote:
Originally Posted by demifiend View Post
I figure it's easier for BSD users to install bash from a port than for Linux users to install pdksh.
I've been trying to fix that:
https://github.com/ibara/oksh
Reply With Quote
Old 27th October 2017
demifiend's Avatar
demifiend demifiend is offline
Real Name: Matthew Graybosch
Silent Protagonist
 
Join Date: Oct 2017
Location: Harrisburg, PA
Posts: 29
Default

Quote:
Originally Posted by ibara View Post
I've been trying to fix that:
https://github.com/ibara/oksh
Now we just need to persuade Linux users to switch to openbsd-pdksh when zsh is all the rage.
__________________
OpenBSD 6.2-RELEASE on Thinkpad T430s, ThinkCentre M92P, and Clevo W24AEU
Web | Keybase | Mastodon | GitHub
"What happens in the TARDIS stays in the TARDIS."
Reply With Quote
Reply

Tags
programming, programming language

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
Favorite Programming Tools JMJ_coder Programming 20 19th January 2015 07:56 AM
your 3 favorite games welkin FreeBSD Ports and Packages 17 5th June 2010 08:26 PM
Best Web Application Language JMJ_coder Programming 24 25th November 2008 12:25 PM
The language here scottro Feedback and Suggestions 11 19th May 2008 11:54 PM


All times are GMT. The time now is 08:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick