News for hackers. Stuff that matters.
Re:22 Years of Delphi and It Still Rocks by yoodenvranx on Wednesday February 15, 2017 @08:00AM (#13651666)
Delphi is still unrivaled when it comes to rapid GUI prototyping in combination with easy deployment. It's much easier than QT/GTK and you usually get a standalone .exe with no external dependencies.

I really want to cry when I see the current alternatives... Node/Electron with dozens of MB of runtime and all that Javascript stuff? What went wrong that we end up with this?

Re:22 Years of Delphi and It Still Rocks by ptero on Wednesday February 15, 2017 @08:43AM (#13651902)
IMO Pascal is a good, clean language and Borland was a top engineering shop that built Delphi as a rapid development tool that supported Windows. At the time there was nothing comparable for Windows development. There was a huge marked for Windows consumer applications and games (Linux was not a household name yet) and very little outside of clumsy Visual Studio to write them. I recall reading at WSJ at the time that Borland CEO was the only person whom Bill Gates feared as a competitor.

That said, it was 20 years ago. Now there are IMO much better cross platform tools for RAD (Python, Tcl/Tk, ...) and Delphi is showing its age (no Linux targets?). Unless I have to live in a Pascal world there are much better tools today. My 2c.

Re:22 Years of Delphi and It Still Rocks by vintagedave on Wednesday February 15, 2017 @09:26AM (#13652179)
> no Linux targets?

Linux is coming in the next release - there will be a blog on that soon. It already has Mac, iOS, and Android on top of its Windows support.

Honestly, I do not believe that Python or Tcl/Tk count as "good" RAD cross-platform tools. Only if you've never used something like modern Delphi to compare them to. We regularly have customers give feedback about their productivity with Delphi/C++Builder, versus Python, C#, etc, and they say they get apps completed and released twice as fast or often more. "5x" is quoted often in our marketing material, and that number is not marketing, it's based on numbers people tell us.

- David (one of the PMs at Embarcadero; I work with the blog author Marco.)

Re:22 Years of Delphi and It Still Rocks by emcrazyone on Wednesday February 15, 2017 @10:55AM (#13652864)
They had a Linux port at one time. It was called Kylix https://en.wikipedia.org/wiki/Borland_Kylix

Developing on Linux desktop at that time probably wasn't ready for this.

Re:22 Years of Delphi and It Still Rocks by geoelectric on Wednesday February 15, 2017 @06:51PM (#13656678)
There were some other issues then (I worked for Borland at the time, QAing Kylix) including not really understanding the FOSS community and GPL-the-social-movement part very well.

There was a particularly big flap over them not stripping the corporate audit clause from the free Kylix Open Edition version targeted at OSS dev; and another regarding enforcing the mandatory "Made with Kylix Open Edition" splash screen that was linked into your app at the compiler level, since all the library code was technically modifiable per licensing.

I also seem to recall that they managed to standardize on Red Hat 7.2, which I think had the much maligned gcc 2.96 fork in it and possibly an older glibc, and then had problems with later kernel/glibc/something along those lines versions such that you were locked into the "bad" version of Red Hat using it.

I probably have some of the tech details jumbled 16 years later, but the TL;DR was that the development community for Linux is nothing like the development community for Windows, especially back then. There were simply different cultural expectations and a hugely diverse set of environments to target, along with a swiftly moving ecosystem to link against.

Upshot, Kylix more or less flopped and Borland switched gears to Java/JBuilder-based IDEs for C++ compilation (C++BuilderX), then back around full circle later focusing on single-platform IDEs for .NET/native Windows.

Re:22 Years of Delphi and It Still Rocks by marcosdumay on Wednesday February 15, 2017 @10:41AM (#13652720)
> Only if you've never used something like modern Delphi to compare them to.

The last time I used Delphi it was on version 5. I never used anything for desktop GUIs on Python or Tcl/Tk (or any other language) that comes even close to it. That requirement of "modern" is too outreaching.

But I'm impressed by Python's kivy (but still didn't really use it), and there are some interesting things happening on Haskell circles. I'm optimist in that Delphi's decades old title may fall soon.

Re:22 Years of Delphi and It Still Rocks by wila on Wednesday February 15, 2017 @01:20PM (#13654094)
Server only though, without GUI support it is a lot less interesting to have linux support.

It is a nice start again though.

Re:22 Years of Delphi and It Still Rocks by ptero on Thursday February 16, 2017 @09:04AM (#13659906)
David, thank you for the work on Delphi! I think my post was seen as bashing Delphi. It was not the intent; the fact that Delphi has a thriving user community willing to defend it is a proof to its usefulness.

To each his own. I work in a cross platform world with a roughly equal mix of Linux and Windows and my personal preferences are with the standard Unix toolset.

Re:22 Years of Delphi and It Still Rocks by yoodenvranx on Wednesday February 15, 2017 @09:02AM (#13652029)
> Now there are IMO much better cross platform tools for RAD (Python, Tcl/Tk, ...)

That's why I wrote "in combination with easy deployment". Yes, you can do faster RAD in Python but good luck with easy deployment.

Re:22 Years of Delphi and It Still Rocks by aidenn0 on Wednesday February 15, 2017 @02:00PM (#13654444)
Tcl/Tk is trivial to deploy; on linux and OS X, wish already exists and tclkit makes it easy to deploy in windows.
Re:22 Years of Delphi and It Still Rocks by coldtea on Wednesday February 15, 2017 @10:42AM (#13652733)
>Now there are IMO much better cross platform tools for RAD (Python, Tcl/Tk, ...) and Delphi is showing its age

Tk is the better than Delphi RAD tool?

Re:22 Years of Delphi and It Still Rocks by ptero on Wednesday February 15, 2017 @12:55PM (#13653890)
The beauty is in the eye of the beholder (and I put IMOs liberally in my post). The OP mentioned GUI prototyping and I was viewing Tk in this context. For rapid prototyping, Tk is a better solution for me, by far.

It is a very simple, script language that allows creating dynamic GUIs on the fly. I can make a simple GUI and hang calls on buttons and menus with a few lines of text. No compiling. No library mismatches to deal with. Whiteboard sketch to a working prototype often takes less than an hour, almost never more than a day.

It is cross platform and text based, so we can email prototypes around for people to try it on their Windows, Linux and Mac machines, click on buttons and report what they want to change. It is text, and does not require installing software. This is a noticeable advantage in locked-down environments, where installing Tk once and running 10 scripts is much easier than installing 10 revs of software.

Due to the language simplicity we had people who said they have no idea about it (and no plans to learn it -- they just wanted a prototype) making and sending back mods within a few days of getting the prototype. This is great -- then we know that this is what they want.

Tk is long in the tooth and has many limitations, but for rapid GUI prototyping it is one of the most useful tools for me.

Re:22 Years of Delphi and It Still Rocks by coldtea on Wednesday February 15, 2017 @01:03PM (#13653960)
>It is a very simple, script language that allows creating dynamic GUIs on the fly.

Very limited ones. And ones clients will have a shock when seeing. And still coding it all together.

With Delphi you can drag and drop great looking (and more full featured) prototypes in zero time.

It will be limited to Windows, though, I'll give you that.

Re:22 Years of Delphi and It Still Rocks by ptero on Wednesday February 15, 2017 @01:34PM (#13654207)
Clients having a shock after seeing a prototype says a lot about the author and very little about the language the code was written in.

Can you clarify "coding it all together" part. I have no idea what you meant.

Re:22 Years of Delphi and It Still Rocks by barrkel on Wednesday February 15, 2017 @02:35PM (#13654724)
Delphi GUI building is drag-and-drop - no coding.

Of course for more than trivial built-in behaviours you'll be writing code, but for a UI prototype, especially if it's just CRUD forms etc., you can get it built in a few minutes with no code. Drop a database connection component and set the connection properties, and you'll get live data and properly typed and bound controls on the form too.

Compilation takes fractions of a second, so that's not an impediment to design iteration - but you don't need to compile or run to see what it looks like since it's effectively a WYSIWYG form designer.

Re:22 Years of Delphi and It Still Rocks by dfox on Wednesday February 15, 2017 @04:32PM (#13655529)
Problem with Delphi-style RAD tools is that there is huge step in complexity between things that can be done in the designer and these that can not. And this invites particular style of "programming" that consists of searching the internet for existing components and connecting these components together with horrible hacks. It is perfectly possible to write well-structured application in Delphi, but most are not.

[Edit: hit reply too soon] Tk model of UI programming does not promote this that much, because causing stuff to happen by writing code is the default way. Also Tk-style approach of writing GUI definitions in code and letting the toolkit to deal with details like positioning (in fact, using HTML for UI is mostly similar) is more productive.

Re:22 Years of Delphi and It Still Rocks by barrkel on Thursday February 16, 2017 @10:01AM (#13660332)
I don't really want to get into a long-winded discussion, but (a) the GUI definition in Delphi is also code (specifically: there's a declarative syntax for constructing a tree of components with property values); and (b) positioning is handled by the VCL. Typically you specify things like alignments and borders in the designer, and the VCL takes care of keeping things positioned.

I really wish HTML was as easy to design with as the VCL designer. Trying to e.g. create vertically centered children is far, far easier in the VCL than in HTML + CSS.

Re:22 Years of Delphi and It Still Rocks by vintagedave on Wednesday February 15, 2017 @04:44PM (#13655632)
> It will be limited to Windows, though, I'll give you that.

Rather, it'll be limited to Windows, macOS, iOS and Android. :)

Re:22 Years of Delphi and It Still Rocks by nomel on Wednesday February 15, 2017 @12:55PM (#13653892)
I'm assuming this person hasn't actually used Delphi...or Python Tcl/Tk.

I can throw together a very nice looking GUI app in one sitting in Delphi, where laying out the elements and binding and defining events is absolutely trivial.

In Python, with Tcl/Tk, I don't. I use C#, qt, or even flask. Tcl/Tk is absolutely not appropriate for RAD GUI development, unless it's at some hello world level of complexity.

Re:22 Years of Delphi and It Still Rocks by fithisux on Wednesday February 15, 2017 @02:28PM (#13654668)
For my scientific needs, it was more than adequate, and scientists are a big part of programmers (but not necessarily professionals). However in that league eye candy does not count, instead saving lives or making our world better are of bigger priority. Tcl/TK or in its incarnations ScicolsLab/Tkinter/ Ocaml-Tk have saved the day very often.
Re:22 Years of Delphi and It Still Rocks by rkeene2 on Thursday February 16, 2017 @03:34PM (#13663339)
For Tcl/Tk, there's vTcl which resembles Visual Basic 3.0 (for Windows) as far as laying things out. It supports all three of Tk's geometry managers (grid, pack, place) and you can simply drag-and-drop your way to a GUI in seconds if you're into that kind of thing.

Further, there are several experimental projects that support running Tcl/Tk over HTTP/HTML rather than X11, Win32, SDL, the current Mac OS X/macOS GUI system.

TkWeb and WubTk are examples of this.

Re:22 Years of Delphi and It Still Rocks by ealexhudson on Wednesday February 15, 2017 @09:41AM (#13652284)
They produced Kylix not that long ago - I had an original box set once upon a time. I have no idea why that didn't take off, but it was an excellent environment really.
Re:22 Years of Delphi and It Still Rocks by pjmlp on Wednesday February 15, 2017 @10:42AM (#13652734)
> I have no idea why that didn't take off, but it was an excellent environment really.

- It was a wrapper around Qt

- Had some dependencies on Wine

- The set of available controls was small

- It was closed source

- They expected GNU/Linux developers to be willing to pay for it

Re:22 Years of Delphi and It Still Rocks by dfox on Wednesday February 15, 2017 @04:44PM (#13655626)
To clarify: dependency on wine means that the IDE was essentially windows application (stripped-down delphi) running on top of wine . Wine was not required for deployment of applications.
Re:22 Years of Delphi and It Still Rocks by squarefoot on Wednesday February 15, 2017 @06:49PM (#13656657)
Kylix was doomed from day one; I saw an official presentation (IIRC by Marco Cantù himself) ages ago and was shocked by its slugginess. At that time I was playing with Delphi2 at home and using Delphi 4 at work, and both of them literally run circles around Kylix. Today Delphi on Linux to me is called Lazarus. Some nasty bugs plaguing it are long gone since like 3 years and is very stable at the moment. You can even install it on a ARM based board (Orange PI PC here) which means it doesn't simply cross compile the code but the IDE itself runs on ARM architecture!
Re:22 Years of Delphi and It Still Rocks by barking on Wednesday February 15, 2017 @09:50AM (#13652348)
kylix came out in 2001. That's verging on medieval :)
Re:22 Years of Delphi and It Still Rocks by baq on Wednesday February 15, 2017 @09:53AM (#13652369)
yeah i remember reading about kylix in a paper magazine.
Re:22 Years of Delphi and It Still Rocks by jacmoe on Wednesday February 15, 2017 @06:58PM (#13656718)
Do you even know what RAD means?

20 years ago, RAD meant that you could drop visual components on a form, add some events, set some properties, and hit the green run button to compile and run it.

A very visual way of programming.

QtCreator with it's visual designer comes close, but then you have to suffer a more unforgiving syntax (C++), a complex macro compiler (MOC) and not at all easy cross-compilation / distribution.

Re:22 Years of Delphi and It Still Rocks by AstralStorm on Thursday February 16, 2017 @03:54AM (#13658539)
You could try Free Pascal related Lazarus instead.

Netbeans Swing support also comes close.

Re:22 Years of Delphi and It Still Rocks by jacmoe on Thursday February 16, 2017 @08:47AM (#13659805)
I have been following Lazarus / Free Pascal for years - and, as it turns out, started using it in earnest one week ago. It's great! :)
Re:22 Years of Delphi and It Still Rocks by vic20forever on Wednesday February 15, 2017 @04:36PM (#13655555)
In 1994, I was looking at languages for a Windows GUI project, and I narrowed my options down to Borland ObjectVision (a sort-of "predecessor" to Delphi) and Visual Basic 3.0. I went with VB3 because the userbase was larger, but I've always wondered how my career would have played out if I'd chosen the other path.
Re:22 Years of Delphi and It Still Rocks by atombender on Wednesday February 15, 2017 @06:48PM (#13656650)
You're probably thinking of Object Windows Library (OWL) [1], a C++ library that was available to both Turbo Pascal for Windows and Borland C++, and which was briefly available for other platforms, including several Unix variants.

Borland also had the older Turbo Vision toolkit, but that was for MS-DOS. OWL was designed a very similar class hiearchy.

[1] https://en.wikipedia.org/wiki/Object_Windows_Library

Re:22 Years of Delphi and It Still Rocks by jacmoe on Wednesday February 15, 2017 @07:04PM (#13656751)
Please search before jumping to conclusions: https://en.wikipedia.org/wiki/ObjectVision

:)

Re:22 Years of Delphi and It Still Rocks by anthk on Thursday February 16, 2017 @02:08PM (#13662624)
>Now there are IMO much better cross platform tools for RAD (Python, Tcl/Tk,

TCL/TK is about 20 years old if not more.

Re:22 Years of Delphi and It Still Rocks by klipt on Wednesday February 15, 2017 @01:16PM (#13654066)
Microsoft poached some of the top Delphi designers for C#.

As the saying goes, if you can't beat 'em...

Re:22 Years of Delphi and It Still Rocks by vram22 on Wednesday February 15, 2017 @02:12PM (#13654554)
Re:22 Years of Delphi and It Still Rocks by metachris on Wednesday February 15, 2017 @08:19AM (#13651758)
The strong point of Electron is easy _cross-platform_ application development and packaging (spits out .exe, .app and Linux binary), with no further dependencies. Ever tried packaging a QT application for Mac, Windows and Linux? I can tell you it's a painful experience, one I don't want to repeat.

Also HTML+CSS allows for extremely versatile styling and fine-grained control of appearance.

Re:22 Years of Delphi and It Still Rocks by problems on Wednesday February 15, 2017 @09:40AM (#13652270)
> Ever tried packaging a QT application for Mac, Windows and Linux? I can tell you it's a painful experience, one I don't want to repeat.

Qt guy here... Windows and Linux are a breeze, pretty much dead simple as I thought they'd be, just run winqtdeploy, make installer out of resulting directory, copy other libraries, done. On Linux, just ship it and install dependencies on target or make a package appropriately.

OS X however is a nightmare if you need other libraries beyond Qt unless you know all the voodoo of install_name_tool. But maybe that's just my experience showing.

Re:22 Years of Delphi and It Still Rocks by wtbob on Wednesday February 15, 2017 @09:14AM (#13652095)
A weak point, though, is JavaScript — quite possibly the worst popular computer language in history. I honestly think I'd rather starve than write another line of JavaScript again. Even reading JavaScript diffs from other guys on my team is a horrible, terrible experience. It's just a sad, awful, miserable, verbose, broken language.

As a compilation target from a better language, I suppose it's mostly acceptable. But on its own? Never again.

Re:22 Years of Delphi and It Still Rocks by tazjin on Wednesday February 15, 2017 @09:48AM (#13652335)
It's not just that the language is bad, it's also that the ecosystem encourages bloat and terrible implementations with layers of fixes glued on top of each other.

My current main work laptop (a pre-TouchBar generation MBP) can only barely run a "heavy" JS-application like Slack and something like IntelliJ at the same time.

Migrating Slack into an IRC client reduces the CPU & memory footprint of _sending, receiving and displaying text_ by over 90%.

Something went seriously wrong somewhere and we're only going deeper into the hole.

Re:22 Years of Delphi and It Still Rocks by matmo on Wednesday February 15, 2017 @03:52PM (#13655250)
>My current main work laptop (a pre-TouchBar generation MBP) can only barely run a "heavy" JS-application like Slack and something like IntelliJ at the same time.

Is this hyperbole? I run both of these with IntelliJ memory settings maxed out on a MPB no problem. Granted, I have 16GB of memory, so understandably YMMV.

Re:22 Years of Delphi and It Still Rocks by tazjin on Wednesday February 15, 2017 @05:13PM (#13655854)
> Is this hyperbole?

No. Just checked and this is an 8GB machine, running Slack with ~9 simultaneous networks (unfortunately lots of open source projects are moving to half-deserted Slack networks instead of IRC channels) can easily use more than half of that.

Re:22 Years of Delphi and It Still Rocks by matmo on Wednesday February 15, 2017 @07:47PM (#13656996)
Ok yeah, I suppose I haven't really pushed Slack to that limit either. Only using a team or two myself.
Re:22 Years of Delphi and It Still Rocks by dfox on Wednesday February 15, 2017 @04:46PM (#13655643)
I would say that problem is not in the language but only in the surrounding ecosystem.
Re:22 Years of Delphi and It Still Rocks by bartread on Wednesday February 15, 2017 @09:53AM (#13652373)
"Worst popular computer language in history." That's a bit strong, isn't it? It certainly has its faults, but so did VB6 (and other BASIC variants, for that matter). PHP gets widely slagged off as well. Does it deserve it? Possibly, to some extent, but people still manage to successfully build useful software with it.

With JavaScript, the problem isn't so much the language (though there are many ways to use and misuse it) as its ubiquity and ease of entry. Because it's so popular it attracts many novice programmers who write terrible code (but that's how we all start). If we're going to have any good, experienced engineers in future then we need those novices now.

If C++, Haskell, Ruby, or Scala were as popular as JavaScript - particularly if one of them were the standard for client-side web programming - there'd be just as much terrible code written in those languages; it would just be differently terrible.

Re:22 Years of Delphi and It Still Rocks by willtim on Wednesday February 15, 2017 @10:32AM (#13652661)
I disagree. Languages like Haskell are much less tolerant of terrible code, which is a large part of the reason why beginners struggle with it.

I work with other peoples Haskell code daily; and some of this code has been written by domain experts. Nevertheless, Haskell mostly forces them into line. Our competitors use Python because it is superficially "easy", I can only imagine what horrors they must be dealing with.

Re:22 Years of Delphi and It Still Rocks by bartread on Wednesday February 15, 2017 @11:22AM (#13653104)
Part of this is that with Haskell it's much more like there's one right way to do things, and that's it. JavaScript is a multi-paradigm language and so in that way it's always possible to get into more of a mess. I could say the same about, for example, C++.

Maybe beginners do struggle with Haskell but, if you want my two cents, the reason nobody really bothered with it back when I was at university - except for assignments where we had to use it - was because there was no call for it out in the world (this is going back 17 years). Most people built their projects in C, C++, or Java because those were what you needed to get a job. I'd also observe that the same people that struggled with Haskell also struggled with C, C++, and Java [1].

Again, based on the assignments where people did write Haskell I'd have to suggest that it absolutely is (or was) possible to write terrible code in Haskell. Certainly it's possible to write broken, fragile, or barely functional code that's hard to understand.

[1] This is of course anecdotal evidence based on a small sample size - maybe 40 people on the course.

Re:22 Years of Delphi and It Still Rocks by pimeys on Wednesday February 15, 2017 @12:07PM (#13653471)
Funny, because I would hire a person straight from university as a junior developer, if she chose to write all the assignments with Haskell instead of going with C/C++/Java/whateverpopularlanguage. That would be a really good sign.
Re:22 Years of Delphi and It Still Rocks by bartread on Wednesday February 15, 2017 @02:47PM (#13654820)
I think times have changed though. Functional languages just weren't big back then the way they are now. Back in those days Haskell was sloooooooow. There's 17 years of runtime and compiler optimisation, not to mention MUCH faster hardware, that's been developed in between. It's now totally realistic to use the expressive power of functional languages on real-world workloads in a way that it mostly wasn't back in Y2K.
Re:22 Years of Delphi and It Still Rocks by VLM on Wednesday February 15, 2017 @10:50AM (#13652807)
There's a continuum of restriction of style. The Python guys say the same thing about Perl. "We can handle our diversity, but the Perl guys are completely out of control so I don't know how anyone can handle that."

Imagine being a clothing designer and told to make something. The output could be anything from Beyonce's grammy dress to a famous deceased CEO who wore black turtlenecks all the time. That extreme diversity of style is both the greatest strength and the greatest weakness of allowing a wide allowable spectrum of style. On the other hand a men's business suit tailor is much more restricted in that everything kinda looks the same which makes things both very easy to muddle thru and very difficult to stand out at the same time.

Re:22 Years of Delphi and It Still Rocks by willtim on Wednesday February 15, 2017 @11:23AM (#13653112)
I'm not sure I like your clothing analogy, it implies that Haskell deliverables are somehow restricted in functionality, which isn't true. The "style" that Haskell prohibits is hiding side-effects and mutable state behind something that pretends to be a function. If you are honest and upfront about what you are doing, i.e. you fully understand what you are doing, then Haskell has no problem letting you do it.
Re:22 Years of Delphi and It Still Rocks by VLM on Wednesday February 15, 2017 @04:02PM (#13655319)
I actually agree with you and any disagreement we have is solely my fault, as that's mostly what I was trying to write.
Re:22 Years of Delphi and It Still Rocks by bigtunacan on Wednesday February 15, 2017 @09:55AM (#13652380)
Every programming language has it's warts. JavaScript is in a unique position in terms of the level of backwards compatibility it is required to maintain. It integrates some powerful features with it's lisp-y functional style and closures. It's implementation of prototypal inheritence isn't the greatest I've seen, but it's by far the most successful prototype based language and that is something I personally wouldn't mind seeing become more mainstream.

Despite thinking JavaScript itself has some really great qualities; I generally don't think Electron is a great solution for desktop applications. Executables are too large and slow compared to a good old fashioned native application.

Re:22 Years of Delphi and It Still Rocks by problems on Wednesday February 15, 2017 @09:45AM (#13652311)
The problem with it as a compilation target in my experience is that interacting with other libraries becomes challenging - the JS ecosystem is now huge, but if you want to use many of those libraries from a wrapping language, it's possible but might present many challenges.

Like Typescript definition files. Producing them on a massive libraries is near impossible for a single individual to undertake. I've seen some people try to process them from docstrings, but the result was really kludgey.

Re:22 Years of Delphi and It Still Rocks by WorldMaker on Thursday February 16, 2017 @11:33AM (#13661213)
I think writing Typescript definitions for a massive library is usually pretty straight forward and I've got a few that I haven't minded writing/helping maintain. "Good enough" typings can be very quick and easy to build and "Perfect" typings take time sometimes but nowhere near "impossible".

Furthermore, Typescript recently made it much easier to work with libraries that have no typings at all. If you don't mind implicit anys, things might just work. If you are strict about no implicit anys then the minimum boiler plate to define a module with any type has dropped to a bare minimum:

    declare module 'module-name'
If I have a complaint in that space, it's that sharing typings is a lot more complex than I think it should be. DefinitelyTyped is a single megarepo where most typings originate and has developed a culture of trying to get typings perfect. Unfortunately, perfect is the enemy of the good, and "good enough" typings for lesser used libraries often languish in PR obscurity, at least in my experience.

Beyond DefinitelyTyped, libraries can embed their own typings in their npm packages, which is great, but not every library author is thrilled to "own" Typescript typings. (All in all, I still feel like I have better luck contributing typings directly to library authors than DT, though.) Beyond that there are tools like Typings to grab typing files from arbitrary GitHub repos, for instance, but there's not much of a good way to advertise types that way because most people will only check NPM now.

Sorry, this seems to have turned into more of an off topic rant than I at first intended.

Re:22 Years of Delphi and It Still Rocks by tvmalsv on Wednesday February 15, 2017 @09:53AM (#13652363)
I haven't tried the new versions, so I don't know how easy it is, but Delphi claims to do easy cross-platform now, too, for Windows, OSX, iOS, and Android.
Re:22 Years of Delphi and It Still Rocks by FigBug on Wednesday February 15, 2017 @10:48AM (#13652786)
> Ever tried packaging a QT application for Mac, Windows and Linux?

How long ago? I've never done Linux, but Mac it comes with a script that does everything and spits out a .dmg. On Windows it spits out everything into a folder you can zip up or create an installer.

Re:22 Years of Delphi and It Still Rocks by rasjani on Wednesday February 15, 2017 @01:20PM (#13654093)
Code signing seems to be broken in every release in macqtdeploy.
Re:22 Years of Delphi and It Still Rocks by jsudhams on Wednesday February 15, 2017 @08:08AM (#13651714)
I miss VB6 and VB.net desktop apps as well. still my go to platform for personal apps, so easy to write. Not really sure why for internal company apps people are moving to webapp.
Re:22 Years of Delphi and It Still Rocks by lojack on Wednesday February 15, 2017 @08:12AM (#13651726)
We use web apps at my company because almost all developers know how to make them, not all computers are windows PCs, and you don't need to install anything of download anything for someone to use them.

If you're talking about electron apps, that's a whole other ballgame. We don't build electron apps for internal stuff afaik.

Re:22 Years of Delphi and It Still Rocks by mattmanser on Thursday February 16, 2017 @04:47AM (#13658724)
To be fair to him, it used to be that everyone knew how to make desktop apps and no-one knew how to make web apps. So that's definitely not the reason.
Re:22 Years of Delphi and It Still Rocks by lojack on Thursday February 16, 2017 @11:08AM (#13660999)
I can tell you with 100% certainty that the primary reason we build webapps for internal products at my company is because all the developers already know it. I understand this is more of an anecdote, but I really find it hard to believe other companies aren't making similar decisions.
Re:22 Years of Delphi and It Still Rocks by mattmanser on Thursday February 16, 2017 @07:10PM (#13664843)
I can tell you, with 100% certainty, that 10 years ago that was not the case.

And there's a really good reason everyone switched.

Re:22 Years of Delphi and It Still Rocks by lojack on Friday February 17, 2017 @10:46AM (#13668971)
I can tell you that I agree completely with that. But, that's not at all what I'm disputing.

People within companies are building web apps because thats what they know. The world has changed in the past 10 years. In response to that, you took a hard line stance that this is "definitely not the reason." I disagree.

I _think_ you're trying to argue about why developers -- as a whole -- have moved towards web apps, but its hard to say because that's not at all what I'm talking about and you haven't made that part clear.

Re:22 Years of Delphi and It Still Rocks by mattmanser on Wednesday February 15, 2017 @03:07PM (#13654965)
Deployment, it's always been about deployment.

Gone were the days of having dB passwords on every machine and wandering from PC to PC with a floppy or CD.

And that was the problem with desktop apps 10 years ago.

Even when MS fixed deployment for desktop apps they still left it massively overcomplicated. It should have been a simple one click in visual studio to build an installer and it never was.

One click deployment was/is pretty awful too that came out just as Google pioneered background updates.

Re:22 Years of Delphi and It Still Rocks by slantyyz on Wednesday February 15, 2017 @10:58AM (#13652887)
I miss them too. VB6 was usually the fastest way to build something that simply did the job.

Now that I'm older and can't mode switch between languages as quickly as I could when I was younger, I find myself just using Node for my personal stuff.

Re:22 Years of Delphi and It Still Rocks by boondaburrah on Wednesday February 15, 2017 @02:42PM (#13654778)
Honestly, it's because the approval required to get an executable onto an employee's computer is absurd. If we can get chrome or firefox on the system image, then all we need to do is point them at a URL. Actually adding software to their computer requires all manner of support tickets and manager approval for them, so they won't do it.
Re:22 Years of Delphi and It Still Rocks by matwood on Wednesday February 15, 2017 @08:37AM (#13651859)
Completely agree. It's hard to beat VB6 for LOB CRUD apps.
Re:22 Years of Delphi and It Still Rocks by dfox on Wednesday February 15, 2017 @04:51PM (#13655686)
It was always my impression that Delphi is significantly more productive for LOB CRUD than VB. In Delphi you can create meaningful CRUD applications in which all the manually written code consist of single-line methods of the FooForm.ShowModal variety.
Re:22 Years of Delphi and It Still Rocks by wila on Wednesday February 15, 2017 @02:19PM (#13654609)
My suggestion is to try DataFlex, it is better.
Re:22 Years of Delphi and It Still Rocks by rubber_duck on Wednesday February 15, 2017 @08:20AM (#13651772)
Web has a good deployment/discover-ability/accessibility story, Node/Electron/Cordova are just there to reuse the work you already did.

It's not technically superior but it's economically superior since you usually get maximum reach with web and then minimize cost with the hybrid approach.

Re:22 Years of Delphi and It Still Rocks by marvin on Wednesday February 15, 2017 @08:38AM (#13651866)
Distribution is the number one reason we do webapps at all. I feel this point is sometimes lost on younger generations that have barely seen on-site deployments at all.

Sometimes you don't need the distribution magic that webapps allow, and can dispense with the huge overhead that comes with it. That's where tools like Deliphi/Windows Forms et al can make your life easier. Today it's a corner case, but it's worth keeping in mind that it's still an option.

Re:22 Years of Delphi and It Still Rocks by ivm on Wednesday February 15, 2017 @08:57AM (#13651996)
> Delphi is still unrivaled when it comes to rapid GUI prototyping in combination with easy deployment.

Try Unity3d component-based uGUI that you can edit live during the "playmode". After building complex UIs in it, going back to Xcode Interface Builder is like moving from iOS to a smartphone from 2005.

Re:22 Years of Delphi and It Still Rocks by marvin on Wednesday February 15, 2017 @08:35AM (#13651847)
Windows Forms is still a completely decent option that gives you the same advantages.
Re:22 Years of Delphi and It Still Rocks by zubspace on Wednesday February 15, 2017 @09:45AM (#13652314)
I fully agree. I sometimes wonder, why so many people jump to fancy frameworks like WPF where you need to create the markup yourself. I can spit out interfaces for desktop apps in no time with good old winforms but struggle to write data-bindings, triggers and what not in other frameworks. And it even looks consistent and the tools are generally easy to adjust and extend.
Re:22 Years of Delphi and It Still Rocks by astine on Wednesday February 15, 2017 @10:39AM (#13652708)
You don't need to write the markup yourself with WPF. You can drag components into the designer just the same as with winforms assuming you are using Visual Studio, and everything will look pretty standard unless you go out of your way to change it.

As to the databinding, I find that WPF has more upfront work in databinding, in that you actually have to write some code, but that it's a lot more flexible in the long run. When I used to write winforms, I usually ended up with a lot of business logic embedded in hooks. It was a mess and was hard to reason about.

Re:22 Years of Delphi and It Still Rocks by WorldMaker on Thursday February 16, 2017 @11:41AM (#13661281)
I think there is an interesting learning curve point where once a developer gets used to WPF layouting/templating, databinding, and MVVM patterns that developer will forever after be way more productive on WPF than WinForms.
Re:22 Years of Delphi and It Still Rocks by craigvn on Wednesday February 15, 2017 @04:40PM (#13655595)
Windows Forms is ok, but pretty slow and clunky if you come from using Delphi.
Re:22 Years of Delphi and It Still Rocks by theprotocol on Wednesday February 15, 2017 @03:32PM (#13655121)
Yes! Winforms is extremely underrated these days. I find it much more productive (and efficient) than WPF.
Re:22 Years of Delphi and It Still Rocks by bakhy on Wednesday February 15, 2017 @10:39AM (#13652705)
i fully agree! though technically, there is a pretty big dependency there - the .NET Framework...

however, Mono supports WinForms on all platforms, and is able to compile everything into one standalone EXE. to be honest, i have not tried either, so i cannot say much about how that works in practice. from my experience with Mono, it can be dangerous. every now and then a new version breaks threading, causing mysterious pauses or crashes, and i've read (i think a text by Ayende) that the GC can also be buggy. but for the stuff that Delphi was good at, for smaller RAD apps, it might be worth a try.

Re:22 Years of Delphi and It Still Rocks by flukus on Wednesday February 15, 2017 @06:52PM (#13656686)
Windows Forms was (and is) primitive compared to how easy qt/gtk and just about every windows toolkit ever made. It was built for machines to generate, not for humans to code, so when the code generation breaks (and it will) so does winforms.
Re:22 Years of Delphi and It Still Rocks by statictype on Wednesday February 15, 2017 @11:29AM (#13653159)
What went wrong that we end up with this?

Shifting of priorities.

I remember when people used to complain that Delphi executables were 'bloated' and large - 200KB was the minimum size?

At that time the complaints didn't seem absurd when we were connecting via 36k dialups.

Admittedly we have probably swung too much in the other direction.

Re:22 Years of Delphi and It Still Rocks by jmiserez on Wednesday February 15, 2017 @01:02PM (#13653940)
The apps on my phone easily reach 100MiB each, how is that the other direction?
Re:22 Years of Delphi and It Still Rocks by debacle on Wednesday February 15, 2017 @01:18PM (#13654084)
He's saying the focus switched from how small your package can be to not caring about install size.
Re:22 Years of Delphi and It Still Rocks by erikpukinskis on Wednesday February 15, 2017 @02:34PM (#13654719)
> Node/Electron with dozens of MB of runtime and all that Javascript stuff? What went wrong that we end up with this?

I'll tell you. Microsoft and Apple need to protect their native app license revenue, so they hobbled Netscape, brought browser development in house, and made a prohibition on allowing web pages to be integrated tightly into the OS.

If those electron apps could get the same OS integration in the browser as native apps get, the distributable could be kilobytes, even smaller than your Delphi executable.

But how would Microsoft and Apple make money if they're just a host for web apps? They're not going to turn themselves into a commodity/utility.

Re:22 Years of Delphi and It Still Rocks by dfox on Wednesday February 15, 2017 @04:57PM (#13655733)
There is simple counterargument: there is integrated runtime for webapps in windows since at least windows 98 (probably since 95 desktop update bundled with IE4). Just rename HTML file to .hta. Running that gets you IE window without any browser UI and scripts in the page run outside any sandbox and can interact with windows API anyway they want. Various windows components are exactly this.
Re:22 Years of Delphi and It Still Rocks by erikpukinskis on Wednesday February 15, 2017 @05:08PM (#13655806)
Most users can't rename files, so this feature de facto doesn't exist.
Re:22 Years of Delphi and It Still Rocks by drdaeman on Wednesday February 15, 2017 @05:59PM (#13656273)
Why users have to rename anything? Do they have to rename .exes or .msi?

In early '00s, there surely were apps made and distributed as .hta files. Not much as .exes, of course, because even with ActiveX, DHTML was quite limited.

Heck, when I was in school, me and a buddy wrote a desktop web chat client using that tech (we wanted fancy text formatting and image posting that "official" webchat page hadn't, but we had - because it server lacked proper HTML sanitization, lol)

Re:22 Years of Delphi and It Still Rocks by cwyers on Wednesday February 15, 2017 @02:46PM (#13654812)
This seems... backwards. What integration could MS give to web apps that they aren't already? Microsoft replaced their help file format with HTML starting with Vista. HTML and JS are first-class languages for building UWP apps. If anything, it's Netscape's lawsuit against MS for bundling IE that kept them from doing more to integrate web pages into the OS, not the moving of browser development in-house.
Re:22 Years of Delphi and It Still Rocks by erikpukinskis on Wednesday February 15, 2017 @03:07PM (#13654969)
Start menu integration, USB device access, graphics and sound APIs, notifications...

Just look at the Windows APIs there are a wealth of things Microsoft doesn't want in browsers if they can avoid it.

Well... there are people on the browser team trying their best, but the resource constraints keep investment where it needs to be to protect Windows and Office licensing.

Re:22 Years of Delphi and It Still Rocks by cwyers on Wednesday February 15, 2017 @05:54PM (#13656238)
> Start menu integration, USB device access, graphics and sound APIs, notifications...

You can get all that through UWP, though, can't you?

Re:22 Years of Delphi and It Still Rocks by WorldMaker on Thursday February 16, 2017 @11:44AM (#13661314)
You can even get access to all of that from a webpage, if you know how to ask. [1]

[1] https://developer.microsoft.com/en-us/windows/bridges/hosted...

Re:22 Years of Delphi and It Still Rocks by iajrz on Wednesday February 15, 2017 @02:42PM (#13654781)
> Microsoft and Apple need to protect their native app license revenue

I don't really understand. I never paid a license to create and distribute native applications.

Re:22 Years of Delphi and It Still Rocks by erikpukinskis on Wednesday February 15, 2017 @03:05PM (#13654956)
Well there's Office.

But also you provide the content which makes Windows licenses have value. If there were no Windows apps, they couldn't price it higher than Linux.

Re:22 Years of Delphi and It Still Rocks by craigvn on Wednesday February 15, 2017 @04:39PM (#13655585)
2005 called and want's it's arguments back. Microsoft has been moving a lot of products to the web where possible, for example Office 365.
Re:22 Years of Delphi and It Still Rocks by drdaeman on Wednesday February 15, 2017 @05:47PM (#13656157)
1998 called and told it's a mistake. Those are not 2005's arguments, those are 1995/96 ones - before MISE4 knocked on the door with Active Desktop.

Before the .NET age, Microsoft was very active with ideas about bringing Web on desktop.

Re:22 Years of Delphi and It Still Rocks by erikpukinskis on Wednesday February 15, 2017 @05:10PM (#13655817)
That doesn't contradict anything I said.

Historically, the web version of office is not really a stand-alone product, and is designed to be a helpful feature for people who primarily use office on a Windows PC.

Re:22 Years of Delphi and It Still Rocks by craigvn on Thursday February 16, 2017 @11:54PM (#13666034)
I think Office 365 can definitely stand alone and compare with something like Google Apps (GSuite). That many people use it in conjunction with offline Office is more a result of offline Office being the incumbent during the transition.
Re:22 Years of Delphi and It Still Rocks by efdee on Wednesday February 15, 2017 @02:51PM (#13654854)
I don't think they can tightly integrate web pages into their OS after the whole antitrust thing.
Re:22 Years of Delphi and It Still Rocks by flukus on Wednesday February 15, 2017 @06:48PM (#13656647)
Back when MS was hobbling netscape web apps weren't a possibility, machines simply did not have enough memory to run them.
Re:22 Years of Delphi and It Still Rocks by riledhel on Wednesday February 15, 2017 @08:06AM (#13651707)
And compile times were pretty fast too
Re:22 Years of Delphi and It Still Rocks by yoodenvranx on Wednesday February 15, 2017 @08:24AM (#13651795)
I really want to see Delphi compile times on a modern i7 and a fast SSD. For small-ish projects that should be pretty much instantaneously.
Re:22 Years of Delphi and It Still Rocks by vintagedave on Wednesday February 15, 2017 @10:50AM (#13652814)
This video shows a million lines of code in five seconds: https://www.youtube.com/watch?v=Yq2mNUzcpE0
Re:22 Years of Delphi and It Still Rocks by boznz on Wednesday February 15, 2017 @06:14PM (#13656406)
Just about sums up why I still use it if I want to get something done.
Re:22 Years of Delphi and It Still Rocks by tvmalsv on Wednesday February 15, 2017 @10:13AM (#13652508)
That is correct. My "apps" are really just small utilities, and the compile times are about 1s or a little less on my older i7 with spinning rust.
Re:22 Years of Delphi and It Still Rocks by PeCaN on Wednesday February 15, 2017 @12:07PM (#13653463)
It's instantaneous for large projects. Literally I've compiled fairly large Delphi projects in the time it takes a Python interpreter to start.
Re:22 Years of Delphi and It Still Rocks by draegtun on Thursday February 16, 2017 @06:30AM (#13659093)
Rebol/View (& SDK) was a great alternative. An extremely light weight language, library & cross-platform GUI (exe was under 1mb). Ideal for very rapid GUI prototyping...

* http://www.rebol.com/rebol-view.html

* http://www.rebol.com/docs/sdk/

* http://re-bol.com/business_programming.html

NB. I say "was" because Rebol 2 SDK has (i believe) been discontinued. Rebol 3 & Red do offer new GUI / encapping replacements but not at same level of maturity.