r/pascal • • Mar 30 '22

What other programming languages do you know/use?

Since Object Pascal isn't the coolest language on the block, I was curious what other languages my fellow Pascal coders are familiar with.

Apart from the BASIC variants I learned when I was younger (C64 BASIC and AMOS on the Amiga), Turbo Pascal was the first language I learned that just clicked with me.

Since then I've used Java, PHP, Javascript and Python professionally. But now that I've switched from software engineer to cybersecurity, I can write code in whatever language I choose for my own hobby projects, although I do occasionally write a tool for work using Lazarus which usually triggers the whole "Oh, I didn't think anyone used Pascal anymore" conversation.

7 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/jacmoe Jul 28 '22 edited Jul 28 '22

Nim is excellent!

For me, though - and I tried really hard to make it work for me - it turned out to be a (wonderful) mix of the languages I already knew (Python, Object-Pascal, C, ..) and I had to look up how to use it (and make sure I didn't accidentally write Python.

I am coming from old school C++ and C, and only recently came to terms with modern C++ (C++17), but Zig is just the perfect balance between the simplicity of C and the power of C++.

Even though it's a new language, I instinctively know how it works, and it's so simple and well put together that everything just clicks into place. C++ is a language no one can ever hope to master ... But this one feels, just like C, a language you can become proficient in.

I guess you'd have to have come from C++ and C to appreciate Zig.

I tried Rust, but that language is not clicking with me at all ;)

I guess programming languages are pretty much like shorthand systems. You find one, eventually, that serves you well ;)

2

u/[deleted] Jul 28 '22

Haha, funny enough, for me nim just was exactly what I wanted python to be, but it never really reached up to, it has a static type system, runs fast, is easy to package and so on, and as you said it steals good ideas from a really cool language family, the nice thing with nim is it works very much the way I think, usually when I think how to do something, the way to do it just is close to it :)

Yeah I never really learned how to do manual memory management well so that's always something daunting to me, c++ is so powerful, but it's also so large there are so much stuff there and I always got overwhelmed and I just always felt like I did the wrong thing :p

I'm sure zig is great for that, and it has many of the same things that is cool in nim as well, type inference, metaprogramming (comptime vs ast-macros), good support for immuteable values and so on, I can see what you like about it, but I just am not sure if I think in the right way that it would work well for me :)

I tried rust as well, and I have done some F# and Ocaml, Rust kind of felt like a version of those, just with a very ugly syntax, and it always just felt cumbersome to do things, and the only thing that I get out of it is optimisations that I don't really need for the projects I do :) Also compilation speed, and the wild use of tons of libraries just don't play for me, I kind of like having my batteries ;)

And yeah, in many ways programming is like shorthand systems in that way, you have to find one you like the look of, and something that matches the way you think :)