187 points · by open-source-ux · 10y ago · 327 comments
The language may have unique or novel features, it may be a language with a passionate and dedicated band of programmers. But one thing the language does not have is much 'mindshare' amongst programmers: its time in the spotlight has passed. It may still be in active development, or it may be moribund.
Examples of 'unfashionable' languages include: Cobol, Snobol, Icon, Unicon, Forth, Pascal, Eiffel, D, Smalltalk, Basic etc.(Note, I realize this is subjective to a degree.)
If you use an 'unfashionable' language, what keeps you using it? It is a unique feature? Is it familiarity or comfort? Is it speed or performance or some other quality? What do you think we could learn from that language when developing programming languages today?
He's not a teacher, nor a hobbyist.
He writes bank software. In BASIC. For forty years. At the same company. UBS, Bank of China, and other names all run this massive million(s)-line BASIC codebase, that he almost singlehandedly wrote, on minicomputers[1] powered by OpenVMS. With it, according to my father, they process billion dollars worth of transactions and other facets of their business. Every day. Surprisingly for enterprise software, his customers love it. They are only being forced to move to a completely new system since HP went and deprecated their entire minicomputer line.
Given this and other parts of the story-- perhaps better saved for a blog post-- I've always seen him as my 10x engineer.
[1] https://en.wikipedia.org/wiki/Minicomputer, just so we're all on the same page.
Please do write it, and submit it to HN! This is the sort of material nearly all of us would love to read.
I will have to talk to my father about this... and explain why folks on the internet must hear his stories.
In the interim, would anyone happen to have an example of a good secondhand account of a software project? A basis or, at the least, an inspiration for how to proceed.
There's The Mythical Man-Month: http://www.amazon.com/The-Mythical-Man-Month-Engineering-Ann...
Showstopper, the book about the development of Windows NT, is great: http://www.amazon.com/Show-Stopper-Breakneck-Generation-Micr...
https://www.reddit.com/user/36055512/submitted
Start oldest first, bottom of the list, and go upwards for chronological order (identical titles are to different subs, so only comments will be different).
Last I heard a book was in the works. I'm not yet sure if it's surfaced yet, but these posts make for a good few hours' reading. They're great.
The secondary suggestion here is that finding a forum that will appreciate the posts and give feedback - note the upvotes and sheer quantity of gold - can be incredibly encouraging. This format also benefits from the fact that there are so many posts on a daily basis all the readers have plenty to keep busy with while they wait, so each writer can establish a lazy pace of writing and submitting that isn't pressured or hectic.
As for continued inspiration, https://www.reddit.com/r/talesfromtechsupport features some great technical writing. Sort by top/week or top/month to find quality examples and the latest top authors (top/all is also awesome, but changes there are months apart) - just try not to drown in the firehose of cringe-inducing idiocy reporting! xD
The idea here would be that the subreddit's sentiment is grokked, inspiration happens, and a new writer appears :D
(Stop by Reddit's TOS and overview, and do NOT skip installing Reddit Enhancement Suite if you decide you like this particular site.)
Wherever the content ends up - a subreddit like TFTS, another messageboard or forum, or a blog - definitely please do link it. :D
The Soul of A New Machine
by Tracy Kidder.
About the race to build a new minicomputer, by a team at Data General.
https://en.m.wikipedia.org/wiki/The_Soul_of_a_New_Machine
Prize winning book.
It has all of the optimal features:
1) You pretty much have to TDD, but it isn't hard to because you can start by writing tests that the old software passes as your "spec".
2) It actually matters if it works. As a junior dev, one of the hardest parts about giving a shit was that the tasks I was given often didn't matter.
The quality of my code when I was younger scaled exponentially with the challenge and meaningfulness. As is true with many immature youths, I only acted like it mattered when it mattered.
3) A senior engineer would likely enjoy refactoring/rewriting something like this. Focus on getting it right, take time to craft elegant solutions, etc. Plus you get to teach someone
4) Large company with resources and domain to take a long-term outlook on the problem. UBS isn't going anywhere (I hope), so they are incentivized to take longer to write a solution that lasts another few decades. They can also take the time to train a junior developer without worrying that they'll miss their metrics for the next funding round.
Honestly it sounds like a blast. Sign me up!
> Large company with resources and domain to take a long-term outlook on the problem.
My father works for company X that sold this system to banks; UBS and the other big ones didn't have a hand in the development other than testing and specifications.
Additionally, company X and their clients suffer from enterprise-levels of political dysfunction and mismanagement, e.g., "let's fire our internal QA team and replace them with underpaid contractors from <insert third world country>. what could go wrong?", "the new system being developed by our new college hire employees in <another insert third world country> is 10 times slower than the old one? Well we'll just run it on 10 times more expensive hardware!"
I could go on and on about the general shortsightedness, perhaps in a blog post[1]. Suffice it is to say: probably not the best idea to get signed on at the moment :-)
[1] The perhaps is saving me from commitment.
That sponsor typically signs on because they really believe thing needs to get done and/or expect that if thing succeeds then they will look good.
Rewriting working code is a hard project to find a sponsor for, unless you're lucky to have software engineers high up in the hierarchy with clout.
Anyway -- the problem with developing tests for the old software is that there is no unit testing framework. You'd have to develop that too and unless you really invested in it you would not have stats like code coverage. Mocking out parts of the system would likely also be difficult because the code in such systems is normally spaghetti and not well abstracted.
If you're lucky they have some standard test data that can be used to run through system tests -- but that's at a much higher level than TDD would ideally want. And I know the shop I worked at had nothing like that back in the day. Everything was tested by hand.
Main problem is not the lack of frameworks, it's a whole different culture of how to test...
Unfortunately, for the banks, they've not managed to maintain their withering infrastructure for a lot of reasons, and are just now realizing the threath from 'Fintechs' that are run by people that actually understands software development.
There are new Itanium servers with support added last year, another (final) generation is planned, and — in preparation for the end of Itanium — an OpenVMS port to x86-64 is presently underway, and there's a new OpenVMS release (for Itanium) is scheduled to arrive this March.
I would have gone insane :)
And yet he's more sane than me. He's a funny fellow.
If only there were a drifting entrepreneur nearby interested in a doting customer base of Swiss banks wrapped up in a bow....
...but it also gives me access to great symbolic manipulation tools, which more than makes up for it.
I started with Turbo Pascal 3.0, went through several versions of Borland Pascal (DOS and Windows), several versions of Delphi, and am now using FreePascal. I do most of my work on Linux nowadays. Pascal still gets everything done and after 20+ years I am really fluent in it.
Did a little bit of Javascript with Node.js, also looked at Golang. While I did like some aspects of them, there was always the downside of having to learn a whole new ecosystem. Didn't like the dynamic typing of Javascript. Golang looked better for what I do. But in the end I just wrote a small Pascal library to emulate Golang's channels which I really liked, and that was the end of Golang for me.
My main project in Pascal is a search-engine: https://deusu.org
Sourcecode for that is on GitHub: https://github.com/MichaelSchoebel/DeuSu
So yes, you can (still) do actual stuff in Pascal. Even pretty cutting-edge stuff.
I really like obscure search engines, because their (comparatively :P) tiny indexes mean they'll return significantly different data to what say Google or Bing would return.
If there's one thing I would definitely vote for with projects like this, it would be... an API. In a world where virtually every search engine is built around the idea of controlled, non-open access, a predictable, documented, free-access API would be a breath of fresh air, and you'd get people seriously interested in this even though it's small. (You'd definitely need rate limiting though because there are always the hangers-on with the low IQs. >.>)
You may (or may not, no idea) also be interested in the Common Crawl corpus - http://commoncrawl.org/the-data/get-started/ - which contains a few PB of data collected over the past few years (sorted by date). Access via HTTP is only moderately involved: read the line immediately above "Data Format."
Of potentially much less interest is a 2012 80TB snapshot Archive.org are (or at least were) offering; they seeded their indexer off the Alexa top 1m and boxed up whatever came back. https://blog.archive.org/2012/10/26/80-terabytes-of-archived... It's apparently only available on request (I expect a search engine would definitely qualify, especially considering the data is 4 years old now - although I definitely want to see what's in it if you do decide to chase this - serious :P).
Finally, search for "cheetah project" - the 2nd top-level result is messed up, apparently the Chinese (Unicode) got scrambled. Just a note; you may already be aware.
The Archive.org crawl is way too old to be of any use. And the Common Crawl corpus is only marginally bigger than what I crawl myself. There are currently just over a billion pages in my search-index and I can recrawl those about every 45 days. Crawling right now at about 650 URLs/s and 200mbit/s. Only about 60% of URLs crawled end up in the index. The rest are errors, timeouts, redirections, etc.
I have been thinking about adding an API. Rate-limiting is a must as you have correctly said. I'm already in a constant fight against SEOs who try to scrape the search-results and who apparently don't see anything wrong in making 10+ queries/second.
The API would definitly not be a free-for-all, but sort of like "send me an email and describe what you want to do with it, and if I like it I'll give you an API-key".Together with a primer on what not to do of course. :) If people do more than a certain amount of queries/month, then it would also have to be paid.
I figured old data was uninteresting, but TIL that crawling data yourself is not impossible. I mean you have to come from a thousand IPs, browser UAs and cookie states to find everything thanks to the sad state of things, but wow, I didn't realize 200Mbps could do so much. :D
As for the errors et al, that makes me think, I wonder what would happen if you saved that data and folded it into the seed list (with maybe 3 or 4 URLs up the chain leading to that link) for next run.
Agh... so you already have leeches :( all I can suggest is maybe mixing up your HTML, or maybe putting your site behind CloudFlare and, if there's an option(?), setting the attack detection sensitivity all the way up. I have no idea if they can do this.
10 queries/sec... that's... not going to be too great on the hardware :( I mean these people can just crawl the info themselves and get more up-to-date content >.< wow
By "free" API, I don't mean free-for-all "here, have at my bandwidth/hardware" xD - I mean more in the sense that curious shy CompSci types can maybe autogenerate themselves a basic-level API key to experiment with ultra-low-rate data requests here and there, and request a threshold upgrade on their key if they think they have an interesting/justifiable use for the data.
And it would be great if this could be a revenue stream! Have you ever featured the site on HN?
PS. Constructive criticism on design: I would personally alter the page styles a little; it currently looks nothing like what I associate "search engine homepage" with based on what I've learned to expect, and the page style, while very nice, makes me feel like the site is a blog, not a dynamic search engine.
Interesting blog post from last year on someone's experiences developing an application in Object Pascal: http://ziotom78.blogspot.com/2015/01/lfi-data-analysis-with-...
Free Pascal itself: http://www.freepascal.org/
It has all the benefits of a modern language -- strong typing, generics, operator overloading, objects, metaclasses, dynamic arrays, interfaces, RTTI, dynamic dispatch, method pointers, type helpers, true modules, fast compile times, preprocessor directives, pretty large set of libraries from the community, etc -- and all the benefits of a compiled language -- compiles to pretty small binaries, small memory footprint at runtime, tight control over memory allocation and layout, trivial ability to shell out to assembler when necessary, etc. It builds to pretty much every platform under the sun -- Mac, Windows, Linux, Android, iOS, MSDOS, OS/2, BeOS, Netware, you name it.
Some of its features are features I've rarely seen in 'fashionable' languages. For example the way classes and metaclasses work in FreePascal is great. You can pass classes around by value, constructors can be virtual, even static methods can be virtual.
In many ways it's really a better C++. For example, what I just said about metaclasses. It has native support for strings. The declaration part of a module (unit interface) is separate from its implementation, so it's easy to get an overview of what is exported from a module, but it's in the same file and is a first-class-citizen of the language, unlike C++ header files. The syntax also makes a lot more sense than C-like languages. For example, there's an explicit keyword to introduce a function, and constructors are named rather than using the type name. (These don't sound like interesting features until you're trying to navigate the source and you find that searching for a method becomes far easier, or you're trying to copy/paste a class and you find you don't have to worry about renaming constructors, stuff like that.) It doesn't even have to link in a libc, it has its own RTL. (It can link in a libc if you want to use some C or C++ libraries with it though.)
There's aspects of it that are a bit crufty from having decades of legacy, but it's probably still better than C++ in that regard.
I don't really know why Pascal derivatives haven't taken off more.
At work I use Dart, which has many of the benefits I listed above, but in the form of a GC'ed VM-hosted language. Dart's a much newer language, though, so regardless of its usage it's probably too early to know if it will end up in the "unfashionable" category. Dart has all kinds of cool features like the ".." operator for chaining, the "??=" operator for assignment-if-null, the "with" feature for doing composition rather than inheritance, etc. Also very readable.
I use it because it has features that are still not (really) included in more "modern" languages, because it is actively used in niche markets, and because I've used it for 34 years, so I have a lot of experience in it and tools written in it.
It is incredibly terse, which allows for use in tight memory situations, and it is high-level enough that the implementor can optimize persistent storage to get speed gains that other languages can only meet by including very low-level code. It has built-in concurrency, again at a high level which allows the implementor a lot of leeway in making things more efficient.
As a niche language, it has specialized uses in Medical Computing and in Financial Computing. Its sparse data structures organized around strings of character is very suited to dynamic data (as a NOSQL datastore) and its handling of transaction processing and concurrency allows retractable computation as well as ACID data storage.
I am proud to call myself a MUMPSter.
Spent 4 years using Fortran on a similar application. I sure missed MUMPS when having to compile programs and having errors caused by moving too many spaces into a variable!
I've also dinked around with Forth and Icon/Unicon, which I used to create small programs, one which created Valentine bingo cards and another which I used to transform COBOL screen descriptions from mainframe COBOL to a version which ran on PC's.
Sometimes I do wish for a change, but overall I've enjoyed my career.
Perhaps someone in the future will feel sorry for those who now work with C++/C#/Python/Ruby/etc.
It's provided for me for a long time. Can't complain. And provided me a way to solve problems and get paid for it.
MUMPS was a kinda cool language - I liked it a lot better than VB6 which the GUI was written in. Every line had to start with a command like 'set' or 'do', which was abbreviated as 's' or 'd' which looked pretty gnarly. The `for` loop syntax there was a difference between 1 or 2 spaces which after the 'f(or)' :o There was a max file size and filename and function limit of like 6 characters, so things were named pretty cryptically. It had a built in object database and basic array and hash datastructures which were neat though.
I think the only reasonable alternative would be something like erlang at this time.
I see M as still used because it is without fail very predictable in resource usage and behavior, and with certain patterns, not prone to fail or crash. It also can be updated in runtime without having users have to restart or reconnect for most cases.
I suggest Erlang, because it has the similar desired behavior for error isolation and predictability.
He's been building these kinds of devices for almost 35 years; he basically built his business (and supported our family) on the back of Motorola 6800-series microprocessors, and now uses the Freescale S08 series, which is descended directly from the 6800 (8-bit, von Neumann architecture).
To this day, he codes everything in Motorola/Freescale assembly language.
In his mind, it's the only way to keep his code adequately lean, efficient and maintainable. He's never been interested in C, as he thinks (from observing younger engineers using it) it just gets in the way.
And while the coding and debugging process seems very painstaking, the results are excellent. His devices sit out in the field taking hourly readings for months or years at a time, never failing and going for over 12 months per battery change.
Initially I thought he was just stuck in the past and that his refusal to embrace more modern hardware platforms and higher-level languages was a disadvantage.
But now I see how reliably and efficiently his devices work, and how inexpensive the components are (the microprocessors we use cost just a few dollars each), I see it as a huge advantage over our competitors, whose products are much more costly to manufacture, much more power-hungry and less reliable.
So you're right, but not only for the reason that you think you're right :-)
Part of the reason is that it's still the standard in chemical engineering and atmospheric science for large-scale simulation where speed is an issue. There has been a long history of compiler optimization and numerical precision before standardized by ANSI C, and because of the simpler language (than C) it's easier for scientists to code up fast programs. Also because of its 1-indexing and array notation, it's easier to translate math to Fortran code.
With the recent module system there is a feature like Python's 'from module import *' ('use module') which when people use will make the code hard to follow, but when invoked with 'use module, only: var1, var2, foo, bar', you can make what's imported more explicit.
Other than that, I just find it very aesthetically pleasing and makes me very happy to code in it. I have heard they have string processing "as good as C" now, but I haven't used it much.
http://arstechnica.com/science/2014/05/scientific-computings...
That's exactly how I think high performance numerical code should be structured like. Unfortunately this thinking hasn't quite arrived in the Fortran world yet where most don't really think about a two-language-approach.
> not having to deal with pointers
There are pointers in Fortran, though. It's the absence of things like pointer arithmetic that makes them much safer to use.
99% of our codebase is GOTOs, GOSUBs, and PERFORMs. It's a mess to deal with.
But at the same time, the language has a database layer built in that (while slow) works well enough for our uses, it has a GUI toolkit that works cross platform, and you can run the same GUI panel via a web browser through a shim that the company created.
That's the one thing i've never seen anywhere else. I can make a program and GUI, and have it run on windows, linux, osx, and the web without any changes. And the "native" programs can run entirely client side, or they can behave as a "thin client" to a server somewhere, again without any changes.
We haven't moved away because moving away would basically mean replacing every single line of code ever written here... But we are slowly replacing it with more modern languages and systems.
Xojo - http://www.xojo.com
Originally known as RealBasic it has the ability to output native, cross platform apps from a single codebase. Interesting history.
you should check out electron https://github.com/atom/electron
There is still the database, the "server side" code, and unless we are going with isometric javascript, the client side code separate from the server side.
It's just taking some adjustments from a truly monolithic codebase where everything is in one language, one codebase, one "environment", to splitting it up into smaller parts and API-ifying everything to allow an easier separation.
It sounds silly, but even choosing an editor is a task, as providex includes their own IDE! (i'm rooting for atom!)
Common Lisp: many, many great things about lisp have been incorporated into modern languages, but CL still has a few unique things, and the whole is greater than the sum of the parts. It's less compelling than it was 10 years ago but some problems are expressed more wonderfully in CL than in other languages.
Prolog: when prolog is the right tool then you really can't beat it. You can substitute another logic language if you like, but I'm not aware of major borrowing by modern languages (the odd library doesn't really count).
Things I'm meaning to look into but haven't really used yet:
Forth: I poke at forth every couple of years but always leave off to go do something else. I'm pretty sure I don't want to embrace the whole forth philosophy thing (real forth people are, uh, different), and doing a deep dive to see what I can take with me is something I just haven't made time for.
Snobol: I'm not really interested in Snobol wholesale at this point, but I want to explore how PEGs are used. There are PEG libraries available for other languages and I'd like to see how much benefit there is to be had from working in a modern language with a PEG library.
I'd be very curious to know what technique you used here.
I sort of stumbled on Forth recently, and while I'm not sure if I'll do anything with it, I like the philosophy behind it more than any other language I've yet found.
It's main strength is also it's main weakness: the whole everything is a string concept, even code. It makes the language both very simple to grasp at first and then also very powerful. It makes lisp-like macros and meta-programming possible. However, it quickly seems to turn into a big ball of mud.
Lack of first-class functions or OO is a major pain point, too. Objects have to be emulated by procs (ie functions), and procs are always in the global scope (there is namespacing but it's quite unwieldy). I wouldn't care that much, except the App's API is an object model, which means even a small script turns into 50 lines of only handle-getting and releasing. Make a small error and forget to release a handle (ie a proc name) and now you have to restart the interpreter (or write a lot of error handling script, which once again for small scripts is a pain). Also, you can't pass objects around by value as they are procs, only by name, which is also a pain.
[1] Numerical method often used by engineers to solve various physical problems modelled by boundary-value PDEs. https://en.wikipedia.org/wiki/Finite_element_method
I was surprised to find out my temporary solution was still running without a hiccup 5 years after I left. Yes, I was younger then and hadn't learn to appreciate the life expectancy of temporary solutions.
"emulating objects with procs" sounds like you're not taking advantage of any of the previous OO extensions (snit, itcl, xotcl ...), which has to be making life harder than it should be :(.
And, to be entirely honest, most of the gripes above are likely more due to the poorly designed API than to the language itself.
I've also been known to write Perl (5) and Tcl programs, but significantly less often nowadays.
I've only used GAWK's network support a few times, mostly to write data collection on a set of boxes and then ship them to a central box for data presentation.
For text data processing it's really hard to beat AWK.
https://www.gnu.org/software/gawk/manual/gawkinet/gawkinet.h...
(If you want it to fully function you'll need bits of code starting here -- https://www.gnu.org/software/gawk/manual/gawkinet/gawkinet.h...)
The general procedure for using a Gawk socket is just building a string of the form `/inet/tcp/0/example.com/80` (example.com, port 80) and redirecting to/from it as a coprocess with `|&`.
1. Historically it is what has been used at my firm. We have a lot of code already written in MATLAB, interfaces to internal apis, external data providers etc. Everyone at the firm understands MATLAB code.
2. It really is very good for numerical work - both in terms of speed, and clarity of the code (much better than Python and R for clarity - probably on a par with Julia).
I also used KDB+/Q very heavily in a previous job. It is blazing fast in its domain (financial time series) and enables extremely rapid prototyping. The fact that it is a combined query language / programming language is very appealing for data-focused research. I wouldn't want to write a production system in it though (though I know people who have done!)
When I was studying for my PhD I wrote a lot of Fortran 77 and IDL. Essentially because my supervisor used IDL and had a lot of code written in it, and because we were using an external tool which consumed Fortran 77 files as input.
I've always found that a great deal of the MATLAB syntax does not gel with my expectations. "./" vs. "./" for instance, or using parenthesis to address array elements.
I would much prefer a truely OO capable language, as well.
I'd consider switching to numpy (ignoring organizational issues) if it didn't take 10 times as many characters to describe all the operations. If you're spending you're day doing algorithm development having least squares and every linear algebra operation you can think of as first class citizens is a huge plus for readability and code cleanliness.
Although it started its life as a standalone (C based) web application server and the CFML language, it was rewritten to run on the JVM when Macromedia acquired Allaire, and these days owned by Adobe. Essentially its a glorified JSP tag library. The CFML language itself looks like XML and offers a "script" alternative syntax which until recently didn't even support all the functionality of the tag based syntax. What as good about it was the ability to hook to a database and perform queries very easily. At later versions it even received OOP features. Fancy that.
Oh, that was the other crappy angle for ColdFusion I forgot to mention in my post - the $1500-and-up license fees.
I would attribute that to the passionate community and open source version, Lucee.
You may wish to look at CF on Wheels - it may be a good on-ramp to Rails.
I even had the luck to be able to use it on my last job (VisualWorks), but unfortunately I no longer have that job :(
I had several Smalltalk jobs (VisualWorks, Squeak), before going back into more mainstream stuff. Still use it for personal projects, though.
Personally, Smalltalk rocks!
1. The (basically mandatory) UI was keyboard unfriendly
2. They removed multiple inheritance from the language. That's not still Smalltalk, is it?
Which Smalltalk did you try exactly? There are huge differences between the UIs, and e.g. GNU Smalltalk doesn't have a UI at all.
I'll grant you that Kay coined the term (at least AFAIK)
Simula invented objects and added them as an option to a procedural language; Smalltalk took them and built a language out of them and thus coined the term Object Oriented.
Wiki link: https://en.wikipedia.org/wiki/Clarion_(programming_language)
The language itself is an amalgamation of COBOL, Pascal and C. But for me, the biggest advantage was the development environment. It was the first IDE that I came across back then that allowed a separation of the back end database from the actual front end code. I loved how easy it was to build applications using dBase, SQL, Btrieve etc. as the back end data store.
Also loved how the business logic was defined in a 'dictionary' so that validation rules etc. could be centrally controlled. Still haven't seen a modern day framework that allowed this much control and flexibility.
Clarion has had its ups and downs, but I think I will be still writing code in it until I retire...
I wonder how many Bernoulli cartridges are still kicking around with that old code...
Unfortunately there's no one thing that I can point to that makes Delphi the best, its a lot of little things - the IDE and screen painter, the way you can use pointers, deployment is so easy with a single exe, RAD. The one language I prefer to delphi is typescript, it is Delphi with a lot of functional sugar, but since its written by the same guy probably not a surprise.
And coreutils.
And often moreutils, or various others.
I love making these, because they can be edited and iterated directly from the terminal prompt, and you can just paste them from the clipboard to see if you like them and want to keep them.
For example, the URL this oneliner spits out is actually real. The technique works almost nowhere now thanks to HTTPS (it's one of my poorest oneliners), but it's hilarious to show people who don't know about networking.
$ echo http://google.com/trends | (E=echo\ ;S=sed\ ;read a;x=($($E "$a"|$S's,^\([^:]\+://\)*\([^/]\+\)/\(.*\)$,\1 \2 \3,'));$E"${x[0]}$(i=32;o=0;for x in $(ping -c1 "${x[1]}"|$S's/[^(]\+(//;s/).*//;;s/\./ /g;q');do((o+=(x*(2**(i-=8)))));done;$E$o)/$(for((i=0;i<${#x[2]};i++));do printf "%%%x" "'${x[2]:i:1}";done)")
http://3627736174/%74%72%65%6e%64%73
If you use VT100's alternate character sets you might like this character map which shows all the character mappings at once (man console_codes for the idea behind B0UK) (((r=255/((${COLUMNS:-$(tput cols)}-16)/18)));C="\e[38;5";Z="\e[0m";A="\e(";for((i=-1;i<r;i++));do X=;for((j=0;c=20,(v=j*r+i),v<256;j++));do((v>r-(\!(i+1)+1)))&&X="$X$C;177m |";((\!(i+1)))&&X="$X$Z 0UKB ddd/ooo/hh"||{(((v>32&&v<127)||v>160))&&printf -v c %x $v;printf -v X "$X $C;160m${A}0\x$c${A}U\x$c${A}K\x$c${A}B\x$c $C;120m%3d$Z/$C;214m%03o$Z/$C;33m%02x" $v $v $v;X=${X//\%/%%};} done;printf "$X\n";done)
Then there's this one I won't tell you about, which #bash suggested I put in the channel bot (!! wow) when I showed them... run it in a 256-color terminal. :P E=echo\ ;P=printf\ ;M=$'\e[0m';a(){ $P"\e[38;5;2${z}5;48;5;${1}m %4d $M" $1;};Z=$E$M;for i in 16 93 160;do ((r=(n=\!n)*2-1));for((x=0;x<6;x++,i+=r)) do for((j=0;L=(i+(R=(j/6?17-j:j))*6),z=(R%6>1?3:5),j<12;j++))do a $L;done;$E;done;done;z=5;for i in {0..23};do a $[i+232];((i==11))&&$Z;done;for i in {0..15};do ((i==8||\!i))&&$P'\n%*s' 12;a $i;done;$EI keep expecting the performance to be terrible but it's surprisingly efficient.
I really like the simplicity of the syntax and the stability of the language standard/specification. There will be no "Today we released v2, all your v1 code will be invalid"
Getting a job here, where I would program in CL is nearly impossible. So in the next years I'll probably stay in the academic world and then try to do my own startup or freelance stuff with the language(s) I like.
My scripting language is Open Object Rexx, and a version of it, Kexx, is the macro language of my favorite editor, KEdit. I have about 150 scripts in Rexx. I do nearly all my typing into KEdit and have about 150 macros in Kexx. Some fine day I may move to Microsoft's PowerShell -- if they write better documentation, then I will move sooner.
If I have some optimization (mathematical programming) to do, then I will use the IBM Optimization Subroutine Library in object files ready for Fortran from the Waterloo Fortran compiler. So, I'll use Waterloo Fortran.
For more in programming languages, I still like a lot that is in PL/I, especially the ideas around tasks, memory management, exceptional condition handling, and scope of names -- all of those deeply interact in nice ways. And I'm totally in love with PL/I structures, much more efficient than objects, a little easier to think about, and nearly as powerful.
For more, I want more on a programming language that (1)admits some automatic transformations that improve some properties and preserve others, (2) can report on some of what is going on in the code, and (3) helps with documentation. For (3), IMHO the documentation is more important than the code but in programming language design is treated just as meaningless gibberish and an after thought. Yes, Knuth's literate programming was a step forward but that lesson seems to have been forgotten for other languages.
Everything in Tcl is a string. This is just one example of the idiocy of this language.
And as a former Tcl dabbler, that's also definitely not the first thing I'd pick on. `upvar` is a far more egregious violator of sanity, and I seem to recall that parsing optional arguments to a function is quite the adventure.
Perhaps not a terribly interesting addition to your list, since the reason is obvious: I keep using it because it's the language the game is written in. That said, I'll play along and discuss what I like about the language:
One of the fun things about working on an LDMud or in LPC is that the game driver (written in C, compiled) gets loaded and serves as the virtual machine for your game, and the parser/compiler for your game's LPC code; this means that once the game is up and running, as long as you aren't editing some really foundational game objects, you can create/load/destroy/update/unload most of what you use inside the game environment without a recompile/restart of the game. There's very little friction when you can quickly play with the new objects/npcs/environments you're creating as you iterate.
You can see the age/heritage of the game as a glass half full, or half empty. You can be frustrated that some relatively modern concept/module/support doesn't exist, but you also have the opportunity to learn from writing it (and not just as an exercise; for production!) Because it's got such a long legacy, you get plenty of chances to rub up against old code and reason about what constraints may have shaped it, and whether it is worth refactoring. Chances to become conscious of the extent to which decisions you make in the present will someday look as curious and smell as musty as the legacy code you're griping about.
It's very OO, and code re-use is a big deal. There are some really complex inheritance trees, and while a lot of issues you'll run into are the sorts of problems you'd expect, I feel like it's pretty good training for breaking down and reasoning about complexity of any sort. This gets ratcheted up by the interesting concept of allowing a certain kind of object to "shadow" another object at any time. A shadow object will intercept calls to the object it is shadowing, giving it the opportunity to modify how the shadowed object will behave. So, for example, most classes, subclasses, boosts/buffs/curses/etc. are implemented as shadows you apply to a player object, or to some piece of their equipment.
Edit: of course it's not just the language, it's the whole Delphi environment with a variety of components and libraries and the development community.
TCL is a language that has its problems, but has some really interesting use-cases. TCL is the LUA-before-LUA that is particularly great for constructing REPLs and DSLs. It has a forward-polish notation that can make it easy to construct a shell-like DSL or for processing other forward-polish notation languages and formats (URLs are FPN!)
I find bash shell to be the most enjoyable language that I work with. It's actually possible to write good, readable software in shell, but it's absolutely a skill that developers choose not to hone. Shell is something that many find necessarily and few developers really understand. This leads to a lot of bad software and, consequently, a culture against the language. Objectively, there are good reasons why shell might not be good for large applications, but those arguments could be made for more popular languages as well. However, due to the biases against it and the fact that many developers know "just enough to be dangerous", it's not a good language for teams.
Still, it's a loosely-typed (except when it isn't) language that exists in two forms - tag-based and Algol-ish (within <CFSCRIPT> tags) - and it carries a lot of Java-derived complexity in is API while not being as flexible as even JavaScript.
Lately, I've been using Python and Flask to build sites in, which is far nicer.
Could you share a little more feedback about what using the language was like? Did you like it overall? If you've used Standard ML or OCaml (OCaml-Java), how would you say it compares?
I haven't used SML nor OCaml. [Though I seem to believe I prefer SML over OCaml in terms of visual appeal/readability, FWIW.] I wanted to code for Android, and OCaml-Java requires too new a JVM (from what I understand, Android is stuck with JVM 1.4 [or 1.5?]) IIUC. Before I found Yeti, I tried to use Kawa (a Scheme/LISP for JVM), but it worked too flakily for me, unfortunately. Then I found Yeti; I stumbled into one bug at some point, but the author quickly fixed it, and I didn't have any problems since then! And it's typed, so a plus vs. Scheme.
edit: you can view my code at: https://github.com/akavel/bookshelf/tree/main/src/com/akavel -- but please note I didn't care to make it pretty or documented!
edit 2: also, I liked Yeti's manual & documentation very much.
Funny that you mention Kawa: I've been meaning to try it out along with Yeti. That you had problems with it does not sound very encouraging, but then, it has had a major version release since.
When it comes to ML, I prefer SML to OCaml. I think Yeti, Standard ML and Scheme appeal to the same "small core language" mentality. If you decide to give SML a go, I'd recommend SML/NJ for development and as your REPL — especially while you are getting used to the language since it has better error messages — and MLton for production binaries.
We still use it because a core application has been developed in it for the last 20 years, and replacing it with something else is currently unfeasible.
It's a sort of PL/SQL for a non-relational DBMS. It recently (last 5 years?) got OO extension - the product is still used/mantained/extended.
To be honest, I doubt that "we could learn" much from it. I mean "RDBMS were not just a fad, after all" is not something we need to learn, right? (and no, it's not part of the NOSQL family, it is just old and odd). Some other lessons we don't really need to learn now are, off the top of my head:
- I think we don't really need foreign keys, folks
- What about something like a virtual table that only exists in memory but which allows you to optionally revert any changes on it by doing a rollback? (except that if you do that you also rollback any changes to the real tables, of course)
- Views are just a passing fad, also, foreign keys are for sissies - data integrity is done in your application.
- You know what? we could do query optimization at compile time instead of at runtime, it will be easier for us to write the query planner, even if this also mean that if you add an index later you have to recompile everything.
- You keep harping on this concept of foreign keys. Listen, just use a strict name convention for fields and things will sort fall in piec... I mean in place by themselves.
- Function/Procedure signatures are not really hard enforced so... if you have a function with 23 parameters and you call it with 22 (or 24) it will bomb at runtime because the compiler will not warn you.
- Speaking of signatures... we all know that dates are really an epoch plus a real, no? So I think it's sorta ok if you pass a number to a procedure that has a date as input parameter...
Some of the points mentioned above might have been mitigated in the more current version (or will be in the next one) except for the foreign indexes because those will stay like that forever (officially declared in their roadmap 2 months ago).
I'm not sure if this is so much old or unfashionable, as Apex is pretty similar to java 6, but it is just not what I would call a "fun" language.
Was pretty fun but making separate applications is often the better idea.
PL/SQL is definitely not sexy, but it's undoubtedly the best way to interact with an Oracle DB and the raw power is amazing. I have accomplished some incredible things with it, but I can't help but feel like everything I do is already out of date and needs to be replaced with something better. Any tips for making my experience a little more pleasant?
Check out steve fuerenstein's books and websites for more modern ways of working with pl/sql http://www.stevenfeuerstein.com/
I've normally worked with pl/sql developer which has some great tools-lint, beautifier,templates,import export data generation etc. There are a few good open source libraries eg pl/json but you have to look around.
You can always easily call out to java or c if you want to work with other libraries.
Oh, and you can specify subroutine names with a pattern (and of course, one subroutine whose name matches is picked at random).
The same works for GOTO as well. It's a very non-deterministic language. And it's so moribund that I think only two commercial programs (Racter is one, I think I've come across another) were written in it.
I also help maintain some web applications built with VB.NET interfacing with IBM AS-400 and iSeries midrange servers. Which means some RPG coding as well. Can't say I enjoy that too much, pretty dull, but RPG is straightforward enough.
Basically, I work with VB.NET because it's not my code and there would be little advantage to converting it to be in C#. Very much a "if it ain't broke, don't fix it" situation since the clients depend on uninterrupted service.
I mostly work with—and prefer to use—C# and JavaScript these days.
I picked up Awk for some random 15-123 assignment in sophomore year. I still use it for automating/shell scripting anything that I need to. I could use Python or something hip. But I haven't quite grown out of my fondness for Awk.
I'd add Lisp to the list, but you can't call it unfashionable, unless you also call Beetles unfashionable.
I don't use it because of familiarity or comfort (I'm actually quite uncomfortable with it because I know it's easy to fall into traps of horrible practices). The simple answer is that as a kid I loved PHP browser game and envisioned the project I wanted to make for 10 years as a PHP project. I've experimented with using different languages for it, but go back to PHP simply for the sake of nostalgia. I realize this is normally a horrible reason to pick a certain language for a project, but considering it's a pretty quirky long term passion project with no goal of monetization (or even full completion), I think it's reason enough.
However, for all back-end tasks, I now use Python. It has so many features that I wish were in PHP and it works well for long-running tasks.
Most long-running PHP tasks that I've tried to build, leak random memory. The dev list also scares me and some of the features that have been added to the latest versions are highly questionable.
Seriously, Bash is fucking beautiful once you really dig into it. Pipes are unbelievably elegant.
And here I thought everyone wanted ALGOL-like syntax...
All the job listings seem to require a decade's worth of experience and lists expertise requirements in technologies that are proprietary and only available on a mainframe. COBOL on its own is not very hard to pick up, but I'm lost as to how to learn about the ancillary technologies. I'm not sure it's so much that nobody wants to learn, but that nobody knows where to learn it.
Sure they'd prefer someone with a decade or five of experience, but seriously: COBOL coders are literally dying off at this point. 17 years ago was the last great hurrah for hiring & training COBOL developers, averting the "Y2K crisis" before calendars ticked over to the year 2000; we've got kids born after that who are entering the software workforce now. About 5 years ago I had someone speak in my C++ class begging students to consider a career in "mainframe" technologies; there was virtually no interest shown, and methinks most of the students didn't even know what he was talking about.
But...the need remains. Those systems are so large & profitable they're not going anywhere, and employers must be quite willing to take on new coders willing to learn, directing & funding their education as needed. If you're interested, contact a hiring company directly and ask - even if you have 0 of 10 years required experience.
There's a lot of smoke and noise made about how companies are desperate for COBOL developers because the old ones are retiring or dying blah blah blah, but I've never seen actual good salaries to back it up. And to add insult to injury, you're unlikely to be able to take the skills you've learned to your next job when you inevitably change jobs.
I've read that most of the companies still using COBOL are banks, insurance companies, etc. They seem like the companies, if any, that could provide really compelling salaries for something with allegedly high demand and increasingly small supply.
You're better off going towards other enterprise technology stacks with more action and rewards.
A lot of people say this, but all the COBOL jobs I see advertised (not many) offer a very average salary. Demand can't be that high if COBOL jobs are paying less than the typical "frontend developer" jobs.
Why do I still use it? That's broken into two parts. I started using it because it was the language of choice for web apps circa 1999. I kept using it until recent years because of a large code base I was maintaining.
I continue to use it today because Perl Dancer 2 is a kick-ass framework. It has an extendable DSL, and it really makes short work out of writing web apps.
I have a Windows XP Virtual machine with Visual BASIC 6.0 on it and IIS with ASP 3.0 on it.
I wrote a few sample programs in VB 6.0 and ASP 3.0 but I don't have any clients to develop for it. I call it legacy programming to write for older languages.
The problem is the people and businesses using the older technology cannot afford to upgrade to the latest technology and cannot afford to hire a programmer to write software for them.
I also heard that NASA uses older computers like old 8088/8086 PC clones because of the legacy software they have that runs on it that won't run on modern systems. They buy them from eBay because they aren't made anymore.
Ironic that they could use a virtual machine with DOS on it emulating an 8088 to run the software, but I guess they need access to the serial and parallel ports that don't exist on modern systems since USB replaced them.
https://en.wikipedia.org/wiki/Forte_4GL
It's basically an earlier version of Java, so I don't think there's much to learn from it.
To make things worse, the developers of the system in their infinite wisdom developed a custom scripting language that looks like an ill-conceived assembler.
It's apparently cheaper to have some developers support this monster than to rewrite it from scratch or buy an off-the-shelf product (which, to be fair, are horrendously expensive and consultant fees are ridiculous).
I learned the language through mentoring and reading the online documentation. You really get to value communities and stuff like StackOverflow or Github when you don't have them :)
The Powerbuilder IDE rebuilds the object you're working on whenever you save, so if there are any errors you can't save the file from within the IDE. You can't view or edit a script and its ancestor at the same time. When source control is switched on, you can't save a file without checking it out first - but you can't check it out without closing it and discarding any changes you made. I usually have Notepad++ open alongside PowerBuilder at all times.
I find the type system to be easy to work with (unlike C, C++, Java) and I'm finally seeing the virtues of a static typed language. Also, having to specify types while defining functions forces me to think more in a good way. It's a far more methodical approach than I'm used to in Ruby for example.
Please add more. The analogies are manifold.
I really like modern re-implementations of well proven languages (Clojure <- Lisp, Factor <- Forth, ...)
* Enormous reach: access to both Java and Javascript ecosystems. (If you count ClojureScript. I don't know how Clojure CLR for .NET).
* Immutability by default. When you want state, its primitives help with concurrency.
* A good set of basic data structures, including lazy sequences.
VFP had a slick little way of letting you indirectly address variables and pop them into a SQL statement or other VFP code, and they would evaluate at runtime. Later when I was learning Java & Javascript I was quite annoyed that I was not able to do this.
You can literally feel the disdain from others when I talk about it.
It's still a solid language, but there just isn't the ecosystem that Rails (and others) have, which is where I'm mostly parked these days.
It took about 5 minutes to chug through 3 months of sales data and produce a list of content -> content pairings & weights.
Then I discovered Python, cursed my manager, and the same algorithm ran in <1s on the same data.
The biggest reason is the performance, portability and the code already written some time ago.
After one year only writing in ASP I started learning VB.NET and all the things I learned from ASP helped me pick it up really easy.
But it still haunts my dreams.
Design Patterns (aka Institutionalized Use and Multiplication of Boilerplate Code) anyone?
But, we make a profitable and well-loved product with thousands of happy users. Too bad that isn't sexy anymore.
Depending on what you're doing datalog might work for your needs, which has implementations/libraries in a multitude of languages
Though maybe designed primarily to help teach kids programming / logic etc., Logo is actually at least moderately powerful, since it is a variant of Lisp.
Where is Ruby, D,go, Rust, Objective C, swift, ASP & Node?
Edit Go too.
I happen to work in the systems management space, which was long dominated by Perl (Python ate into that space starting a decade or so ago, and Go is now making significant inroads, but Perl is still pretty common), so the libraries are very strong. I may end up writing the prototype in Perl just to get it launched, and then rewrite the parallel parts in Go. It is an embarrassingly parallelizable problem, so Go or another language very good at concurrency would be reasonable. But, I find that learning a new language and tackling a new problem space at the same time is challenging. The front end will always be JavaScript, though. Probably with React.
And, I've been working in PHP a bunch lately, because our website runs on Drupal. I would never use PHP except to get access to the massive piles of existing functionality out there already in PHP. But, nonetheless that makes a pretty compelling case for using PHP. And, maybe PHP is still popular enough to not fall into this category. Heck it may even be growing, given the popularity of WordPress, I dunno.
https://www.reddit.com/r/lolphp/comments/41fqib/it_is_so_sim...
SQL databases. All of the above applies. Stored procedures when the database supports them. I do not use an ORM.
I try to use command-line utilites whenever I need to manipulate data. sed, awk, grep, etc. I rarely need to drop into a scripting language for these tasks.
This sounds like other similar language will not get the job done. The truth is that there are much better alternatives which are a lot more pleasant to use and will get the job done in a much better way.
> it's easy to use
This is a myth. Php is not easy to use. May be, It is easy to start. But you need to know a lot of useless stuff (outside the context of Php), to get anything to work any where near reliably. Also, be prepared to write a lot more automated tests if you want to keep it that way.
That's not what they're saying. If someone knows a tool and it works for them, then it's more immediately useful than another tool which they don't yet know how to use, or how well it works.
> The truth is that there are much better alternatives which are a lot more pleasant to use and will get the job done in a much better way.
Quantify "better". PHP has its flaws (quite a lot of them), but it also has its advantages. It's a very popular language, so if you want to do something with it, almost certainly someone else has tried to do the same thing, so there will be libraries for it, guides, people who you can ask for help if you have trouble. It has a shared-nothing architecture, which aids scalability. It has extensive documentation. It has a large selection of battle-tested frameworks. There is an almost infinite selection of hosting providers.
> This is a myth. Php is not easy to use. May be, It is easy to start.
PHP's flaws can make it an occasional pain, but it is not really harder to use than any other ALGOL-like language. It is sometimes easier as it tends to expose simple interfaces to things, rather than requiring the user deal with a lot of complexity.
> But you need to know a lot of useless stuff (outside the context of Php), to get anything to work any where near reliably.
This is, to some extent, true for other languages as well. But yes, I'd agree with you here that PHP has more baggage than its contemporaries.
> Also, be prepared to write a lot more automated tests if you want to keep it that way.
This is true of dynamic languages generally. Though PHP has (limited, runtime) type-checking, which can reduce the burden here somewhat.
Better as in more correct. The endless gotchas in the language makes it harder to write correct programs that works as intended by the programmer.
>so if you want to do something with it, almost certainly someone else has tried to do the same thing, so there will be libraries for it, guides, people who you can ask for help if you have trouble.
That is more or less true for the alternatives as well (Python, Ruby, Javascript...)
>This is true of dynamic languages generally.
Yes. that is why I emphasized "a lot more"...
There is a whole lot of action at a distance.
Consider this code, taken from the PHP docs somewhere.
There is a whole lot of action at a distance.
Consider this code, taken from the PHP docs somewhere:
@fopen('http://example.com/not-existing-file', 'r');
What will it do?
If PHP was compiled with --disable-url-fopen-wrapper, it won’t work.
(Docs don’t say what “won’t work” means; returns null, throws exception?)
Note that this flag was removed in PHP 5.2.5.
If allow_url_fopen is disabled in php.ini, this still won’t work.
(How? No idea.)
Because of the @, the warning about the non-existent file won’t be printed.
But it will be printed if scream.enabled is set in php.ini.
Or if scream.enabled is set manually with ini_set.
But not if the right error_reporting level isn’t set.
If it is printed, exactly where it goes depends on display_errors, again in php.ini. Or ini_set.
etc. :) (Perhaps this particular issue is obsolete now, still it's emblematic of problems underlying the language, the ones I had to encounter when I worked with PHP few years back. Talk about "easy to use")If you don't like PHP, don't use PHP. It's that simple.
What can you learn? That a poorly thought out language will become incredibly popular if it is the only thing integrated with an extremely popular application. Make the language ubiquitous by tying it to an application.
PHP is the dynamic language cousin of C/C++. PHP7 and HHVM are both great and fast.
Wow. You make a lot of assumptions. I have been using Php until quite recently. I left it at 5.6. I know about 7. But that it is getting additions does not compensate for the fact that the core remains rotten, and is still as dangerous and weird as ever.
It does not get much worse than this
https://www.reddit.com/r/lolphp/comments/41fqib/it_is_so_sim...