5 ms·
I love the idea of a WYSIWYG IDE that's integrated with the language like this, or like VB used to be, but personally I just can't stomach the whole "have to le
by AnIdiotOnTheNet 8y ago
I love the idea of a WYSIWYG IDE that's integrated with the language like this, or like VB used to be, but personally I just can't stomach the whole "have to learn yet another language to use it" problem. From what little I've played with Lazarus and FPC it seems really nice though, and I might make use of it for some smaller projects at work in the near future. I'm sick of trying to make web apps and all the ridiculous nonsense with that process.
One wonders why we don't have a more generic form of this sort of thing. And no, I don't mean the various "GUI builders" that are out there that produce code you then have to merge with your program, or an XML descriptor that you have to parse with your program, because those are still specific to having bindings for your chosen language.
There really isn't a reason I can think of that I shouldn't be able to throw together a GUI in a WYSIWYG editor and maybe define some basic behavior, then give it one or more programs it should run in the background and pass messages back and forth. Or even let me just tie events to a command pipeline and dump the result into another widget, basically just letting a GUI be part of the composable toolset following the UNIX philosophy.
- noir_lord 8y agoObject Pascal is a nice language and it's terse (it's surface is quite small). In a lot of ways it feels like a forerunner of C# (unsurprising as the lead on Turbo Pascal/Object Pascal was Anders Hejlsberg). I loved Delphi 6, still miss it in some ways.
- pjmlp 8y agoFrom the early days I thought it was a mistake for Java and .NET not to follow on what was common back then, and offer AOT compilation out of the box. Java AOT solutions were all commercial (gcj doesn't really count) and .NET had NGEN, but it was only meant for fast startups. .NET was specially disappointing in this regard, given that it had quite some influences from Delphi. We had to wait around 20 years for AOT to start being part of the default toolchains. Had it been there from the start, including proper value and unsigned types in Java, and maybe there would be much less software written in C and C++.
- noir_lord 8y agoIndeed, Object Pascal in Delphi 6 had blazing fast compilation (for various reasons not least it's unit system), like click and it runs a half second later on a 250,000 line codebase.
- pjmlp 8y agoA tradition all the way back to its MS-DOS early life. Turbo Pascal 5.5 had an advertised compilation speed of 34 000 lines/minute, on 1989's hardware. http://edn.embarcadero.com/article/20803 http://edn.embarcadero.com/article/20803 So something like PC 386 running MS-DOS 4.x, real mode with 640KB, eventually 1MB, if making use of highmem. So excuse me for not being that amazed with Go's compilation speed achievements. :)
- jstimpfle 8y agoWhat's the reference speed for golang or generally a quick compiler on contemporary hardware? My own experimental non-optimizing compiler compiles >1M lines per second, and it's not even optimized or multithreaded. Currently quite happy about that :-)
- atombender 8y agoThe original Turbo/Borland Pascal compiler was a single-pass compiler written in assembly. Not sure if they ever rewrote it in a high-level language. The small, simple grammar helped, as did the unit system. With Delphi, linking became the most expensive stage of compilation. Part of being single-pass was it hardly did any optimizations, and of course declaration order was completely rigid. Back in the 1990s there were competing commercial compilers like Stony Brook Pascal that did optimization, and at the time there were optimizers that you could run on the .exe files, but for the most part people stuck to Borland's tools. I spend a good part of the 90s writing fast 2D and 3D graphics stuff, including a commercial game, and performance was never an issue, especially as Object Pascal supported embedding assembly blocks seamlessly into your code.
- 8y ago
- dragonwriter 8y ago> There really isn't a reason I can think of that I shouldn't be able to throw together a GUI in a WYSIWYG editor and maybe define some basic behavior, then give it one or more programs it should run in the background and pass messages back and forth. Or even let me just tie events to a command pipeline and dump the result into another widget, basically just letting a GUI be part of the composable toolset following the UNIX philosophy. Sure, you can do that, but you need a protocol/interface/API between the GUI and the program(s) it interacts with, and then you need to either manually consume that in the language those programs are in or have a library that handles the interaction, and the problem ends up being essentially equivalent to language bindings directly to the API.
- AnIdiotOnTheNet 8y agoNot really, as you only need to implement handling for the messages you actually care about and you can pass them through, say, a file descriptor. Just like UNIX commandline tools do. You could handle that in a bash script.
- tabtab 8y agoAs I view the problem, what's lacking is a GUI markup standard roughly comparable to HTML. HTML browsers were not originally meant to build full-on GUI's in, but the industry has accepted the habit of forcing them to "do" GUI's using convoluted tricks and giant JavaScript libraries. By the way, the "GUI markup language" doesn't necessarily have to be XML-only. Maybe JSON or CSV versions can be defined also. However, XML is a good start: learn to walk before you run. As far as how interaction and screen changes could be handled, see: http://wiki.c2.com/?GuiMarkupProposal http://wiki.c2.com/?GuiMarkupProposal I particularly dig the 3-type "update" technique that uses "Attribute", "Tag", and "Delete" scope. (It's about half way down in the document.)
- dragonwriter 8y agoSo, instead of language bindings for the UI builder, you need an in-language implementation of or binding to a client for the GUI markup language output by the UI builder? While I like the idea of a generic UI markup languages, it sounds like you've replaced the problem you want to avoid with a bigger one.
- mamcx 8y agoBack in the days existed a Delphi-like environment under a scripting version of Delphi, with a very close match of the IDE (it borrow all the controls of Delphi). it also have a VB dialect! I think will be smart to build a Delphi/FreePascal renderer with an API to make easy to embed into other languages (like with TCL). I sketch some of the idea in https://www.reddit.com/r/rust/comments/9bapwt/thoughts_on_what_a_good_gui_system_would_need/e51xdrc/ https://www.reddit.com/r/rust/comments/9bapwt/thoughts_on_wh... Delphi/FreePascal integrate very well with C APIs so I think the glue could be easy.
- rcarmo 8y agoPascal was my first academic programming language, so “the yet another language” thing is… debatable :)
- AnIdiotOnTheNet 8y agoI thought this was obvious but apparently my phrasing was confusing: I meant that on a personal level. I personally would have to learn Pascal as I only know a tiny smidgen of it right now.
- marmaduke 8y ago> let me just tie events to a command pipeline and dump the result into another widget, basically just letting a GUI be part of the composable toolset following the UNIX philosophy I think that's how the editors in Plan 9 support extensions/plugins/scripting by exposing parts of the editor on the filesystem. Something with FUSE might do the trick, though mounts are always tricky. Kakoune supports JSON RPC over a fifo, for example: https://github.com/mawww/kakoune/wiki/JSON-RPC#input-keys--output-info_show https://github.com/mawww/kakoune/wiki/JSON-RPC#input-keys--o...
- tomc1985 8y agoI felt the same way but I tried playing implementing a quick idea in Lazarus last year and I swear it was the fastest ramping up I've ever had. Pascal/Delphi are a little weird but I found them easy to pick up. Then again my very first programming experience was in VB so I might be biased :) If anything is wrong with it, I'd say some of the widgets are little out of date or lacking, but since most of that maps to GTK primitives it's only when you need something weird that you might have to start hacking, since there probably isn't an open-source tool lying around like we'd be used to with JS/ruby/go
- m0zg 8y ago>> have to learn yet another language to use it Many of us graybeards already know Pascal though. Some even used Delphi and C++ Builder in their heyday, and remember it fondly. It was basically the only sane alternative to VB, with better productivity (instantaneous compilation, even on hardware from 20 years ago!) and a real programming language behind it.
- blunte 8y agoLearning another language, if you've already learned a few, it's a very small cost if the other benefits are big. After all, many of use learned some of the languages we learned because of the benefits that came with them. I learned Java because of the promise (long ago) of write one run anywhere. I learned Ruby because of the promise of Rails. I learned Go because of the promise of fast and single-file-executable (maybe not the best reasons, but those were my excuses :) ). Etc. How hard can it be to learn Pascal? Is that really a frustration or an obstacle?... If I were making desktop apps, I wouldn't care what language it was as long as I could quickly make cross platform GUI apps that did what I needed.
- AnIdiotOnTheNet 8y agoI don't disagree that learning new languages is relatively easy, I know a bunch myself already, it's just that to use a language very effectively you have to be able to think in its terms and that requires some time investment. Fluency takes time. You've seen code written in language X before and been able to instantly tell it was ported from language Y, right? It's the programmer equivalent of a literal translation from Chinese, where the words are English but none of the metaphors, euphemisms, or subtle connotations are accounted for. And it isn't even like I have something against Pascal, it seems better designed than C and is just as mature, but I don't really want to invest the time needed to gain fluency at this point in my life. And when I think about that, I wonder why I should need to for this kind of functionality.
- z3t4 8y agoOne issue versus WYSIWYG editors for the web is that you can't simply absolute position everything. The design need to be "responsive" to all screen sizes!