Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Ingemar Ragnemalm via fpc-pascal
Just for comparison, I fired up Think Pascal and made Hello world! Plain Hello world, closes so quickly that you don't have time to see it: 4625 bytes. Including ShowText and while not Button do; 4639 bytes. Yes, less than 5k! Progress? /Ingemar

Re: [fpc-pascal] Here is real time graphics and physics simulation, library

2022-08-01 Thread Ingemar Ragnemalm via fpc-pascal
Den 2022-08-01 kl. 09:40, skrev fpc-pascal-requ...@lists.freepascal.org: Date: Sun, 31 Jul 2022 09:05:56 -0400 From: Anthony Walter Michael, it's the same logic behind my now 12 year old Bare game system that did the exact same thing. I am creating a small lPascal ibrary that removes a lot

Re: [fpc-pascal] fpc-pascal Digest, Vol 181, Issue 19

2019-07-19 Thread Ingemar Ragnemalm
2019-07-19 kl. 12:00, "Mgr. Janusz Chmiel" wrote: To: fpc-pascal@lists.freepascal.org Subject: [fpc-pascal] I need some working Pascal examples for android Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Please, does somebody of us know about some functioning examples

Re: [fpc-pascal] any free pascal standard function to compare a, string against an array of string?

2018-10-10 Thread Ingemar Ragnemalm
You mean something faster than a for-loop? Like a hash table? I don't know of any hash table in the standard library but there are some in the class library: https://www.freepascal.org/docs-html/fcl/contnrs/tfpstringhashtable.html

Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-08 Thread Ingemar Ragnemalm
Any work on OpenGL is of interest to me. I am working with it every day, have written two course books, a GLUT replacement and numerous demos, most in C though (because my students don't learn Pascal any more). Two things come to mind: Yet another API for GUI-OpenGL glue? I would suggest

Re: [fpc-pascal] fpc-pascal Digest, Vol 167, Issue 39

2018-05-20 Thread Ingemar Ragnemalm
On Sun, 20 May 2018, Sven Barth via fpc-pascal wrote: I'm pleased to announce that after nearly a year various extensions for dynamic arrays have been finished. This includes the following features: - support for array constructors using "[...]" syntax - support for Insert(), Delete() and

Re: [fpc-pascal] working with lldb

2018-05-05 Thread Ingemar Ragnemalm
Den 2018-05-05 kl. 12:00, skrev Mr Bee : Hi, Is there a way to make LLDB able to read and display Pascal's string correctly? At least, ansi string. I'm now using this option '-glpsw3 -godwarfcpp'. Did I miss some options or something? Thank you. In my experience,

[fpc-pascal] Next language feature for pas2js...

2018-05-01 Thread Ingemar Ragnemalm
Den 2018-05-01 kl. 09:50, Ryan Joseph wrote: On Apr 25, 2018, at 9:43 PM, Michael Van Canneyt wrote: Ah, webgl... I had a look at this some time ago, and got depressed. Quickly closed the browser and didn't look back. Same for webaudio:(

[fpc-pascal] Next language feature for pas2js...

2018-04-25 Thread Ingemar Ragnemalm
Michael Van Canneyt wrote: Hello, Now that interface support has been added to the list of implemented language features of pas2js, we're looking to get feedback on what best to tackle next. This time, the poll is not on the forum, so you do not need to have an account

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-03-30 Thread Ingemar Ragnemalm
Den 2018-03-30 kl. 05:54, Mr Bee wrote: Hi, These days, most modern programming languages have its own logo. The logo becomes a "brand", a unique visual identity for the language. It also acts as a "trademark", a recognizable image for the language. It also helps the

Re: [fpc-pascal] fpc-pascal Digest, Vol 163, Issue 12

2018-01-08 Thread Ingemar Ragnemalm
Den 2018-01-08 kl. 08:49, skrev Sandro Cumerlato: I've done it, let's call it "santa3", it's amazing!:-) [you've made my day] For the last point: yes! Sandro Great! It works just fine! Very neat and tight fix too! And in time before Christmas is *really* over. At least we have snow on

Re: [fpc-pascal] fpc-pascal Digest, Vol 163, Issue 11

2018-01-07 Thread Ingemar Ragnemalm
Thanks! The limitations in the sound playing are straight from JavaScript's Audio API. I think I know how to loop a sound, although the online advice are pretty confusing. For playing a sound multiple times, it seems I need to load it multiple times! Not very elegant but it can be done.

Re: [fpc-pascal] First pas2js public release

2018-01-07 Thread Ingemar Ragnemalm
ome server. For being a preliminary "0." version, pas2js works wonderfully well! /Ingemar Den 2017-12-24 kl. 12:00, skrev Ingemar Ragnemalm: Den 2017-12-22 kl. 12:00, skrev Michael Van Canneyt: On Wed, 20 Dec 2017, Reimar Grabowski wrote: On Wed, 20 Dec 2017 15:14:50 +0100 In

Re: [fpc-pascal] First pas2js public release

2017-12-24 Thread Ingemar Ragnemalm
Den 2017-12-22 kl. 12:00, skrev Michael Van Canneyt: On Wed, 20 Dec 2017, Reimar Grabowski wrote: On Wed, 20 Dec 2017 15:14:50 +0100 Ingemar Ragnemalm<inge...@ragnemalm.se> wrote: Although I would like to make some improvements - who doesn't? To be precise, I want to figure out

Re: [fpc-pascal] First pas2js public release

2017-12-20 Thread Ingemar Ragnemalm
Den 2017-12-20 kl. 13:09, skrev Mattias Gaertner: On Wed, 20 Dec 2017 12:29:25 +0100 Ingemar Ragnemalm<inge...@ragnemalm.se> wrote: And then I got some of the provided demos running too and managed to write one of my own. So it looks good! Here is an early result, expressing my fe

Re: [fpc-pascal] First pas2js public release

2017-12-20 Thread Ingemar Ragnemalm
This is great news, something that I have been longing for for years! There have been some related efforts but none that really solved my problem. Best Christmas present this year! After some initial fiddling, I realized that there was a misspelling in the wiki, and Hello World worked once

[fpc-pascal] Pascal support in the Kattis educational site

2017-08-17 Thread Ingemar Ragnemalm
A bit of news which I think has some interest here: "Kattis" (open.kattis.com) is a site where students can make programming exercises. This is quite important IMHO; companies look at Kattis results when recruiting. Recently, Kattis added Pascal support, using FPC 3.0.0! (Free Pascal

Re: [fpc-pascal] Super Large Integer Math Calculations

2017-07-08 Thread Ingemar Ragnemalm
Bart wrote: On 7/7/17, nore...@z505.com wrote: For integers beyond 64 bit, or even beyond 32 bit on a 64 bit machine, why can't the math be broken down into peices the way a human does it on paper, and then theoretically any number can be added and

Re: [fpc-pascal] GLM library alternative?

2017-05-30 Thread Ingemar Ragnemalm
Den 2017-05-30 kl. 12:00, skrev Marco van de Voort: For the 2Ders, in old GL I used glortho2d a lot. In newer ones I missed that, but I found an equivalent on stackoverflow: My FPC vector unit has overloading and many other functions (determinant, rotation around arbitrary axis...). Some

Re: [fpc-pascal] GLM library alternative?

2017-05-28 Thread Ingemar Ragnemalm
Ryan Joseph wrote: I’m trying to following some OpenGL tutorials to learn the matrix transforms but I’m getting stuck because I don’t have the c++ GLM library which everyone is using. I see FPC has a matrix class but it doesn’t include all the helpers in GLM like rotation, transform,

[fpc-pascal] Dynamic arrays in LLDB

2017-01-11 Thread Ingemar Ragnemalm
I am trying to debug an FPC program that uses dynamic arrays. (Don't them all?) It seems to me as if LLDB can not handle them. I get this error: A1 is a dynamic array of Integers (SmallInt). (lldb) p A1 (ARR1) $7 = 0x000b5048 (lldb) p *A1 error: incomplete type 'SMALLINT []' where a complete

Re: [fpc-pascal] Write Applet with FPC JVM

2016-04-03 Thread Ingemar Ragnemalm
Message: 1 Date: Sat, 2 Apr 2016 03:39:41 -0700 (MST) From: leledumbo To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Write Applet with FPC JVM Message-ID: <1459593581645-5724733.p...@n5.nabble.com> Content-Type: text/plain; charset=us-ascii It

[fpc-pascal] Write Applet with FPC JVM

2016-04-01 Thread Ingemar Ragnemalm
Hello, FPC list! Is there anyone who knows how to write a JVM applet with FPC? I have this minimal Java applet: import java.applet.*; import java.awt.*; public class HelloWorldApplet extends Applet { public void paint (Graphics g) { g.drawString ("Hello World", 25, 50);

Re: [fpc-pascal] Smartphone apps in FPC

2016-03-20 Thread Ingemar Ragnemalm
Maciej Izak wrote: Well, yes, it works fine, but you still need a Java part otherwise a lot of APIs cannot be accessed. In particular APIs that require creating interfaces. I can confirm too :) But for completeness, surely you do NOT have to write the Java (JVM) parts in Java, but you can

Re: [fpc-pascal] Prospects for running Lightspeed/THINK Pascal and Codewarrior Pascal with FPC

2014-08-21 Thread Ingemar Ragnemalm
On 21/08/14 07:41, Jerry wrote: I have a lot of old Pascal that I am getting interested in reviving. It was originally written in Lightspeed/THINK Pascal (did I mention it is old?) and around 2000-2002 I converted it to Codewarrior Pascal. These are both Macintosh dialects. What are the

[fpc-pascal] Re: fpc-pascal Digest, Vol 87, Issue 13

2011-09-11 Thread Ingemar Ragnemalm
From: Marcos Douglas m...@delfire.net Subject: Re: [fpc-pascal] Overloading the increment operator (+=) To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Message-ID: CA+ixmeZZ9r2EiUzqJ-F2=htugyunkywhy_729jfyuofqyii...@mail.gmail.com Content-Type: text/plain; charset=UTF-8

Re: [fpc-pascal] Converting code from C++ to FP....

2011-03-19 Thread Ingemar Ragnemalm
Jeppe Johansen jepj...@es.aau.dk wrote: Den 19-03-2011 08:30, Aleksa Todorovic skrev: 2) The parameter into the function is a pointer *A of type double. To me that indicates a value of some kind, but in the code it suddenly seems to appear as an array with indexing. What would be the proper

[fpc-pascal] Re: Name of the programming language used in/with FPC

2011-02-09 Thread Ingemar Ragnemalm
Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: Marco van de Voort wrote: In our previous episode, Ben said: What is the programming language used in and with the Free Pascal Compiler? * Object Pascal * Delphi * Free Pascal * Pascal Pretty much all apply. Free

[fpc-pascal] Sin function

2010-12-29 Thread Ingemar Ragnemalm
faber bor...@gmail.com wrote: Hi, according to docs/reference sin function should print 0.0 when Writeln (Sin(Pi):0:1); but, with fpc 2.4.0 and 2.4.2 (x86) I've get -0.0, such a result is not entirely correct. This is a bug (in sin func.) or something wrong with the formatting ? best regards

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Ingemar Ragnemalm
dmitry boyarintsev skalogryz.li...@gmail.com wrote: On Mon, Jun 14, 2010 at 5:37 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Has anybody managed to play sound files under both Linux and Windows? Does FPC have a cross-platform API or FCL class for this? I'd offer using OpenAL,

[fpc-pascal] Re: fpc-pascal Digest, Vol 72, Issue 15

2010-06-04 Thread Ingemar Ragnemalm
spir denis.s...@gmail.com wrote: I'm surprised of this, fpc still systematically trying to follow Delphi, after so many years. I can understand that at the beginning the fpc team needed to mostly comply with Delphi, as de facto object pascal standard. But then, fpc could live its own life,

Re: [fpc-pascal] png bitmap

2010-02-28 Thread Ingemar Ragnemalm
Mattias Gaertner nc-gaert...@netcologne.de wrote: Rainer Stratmann rainerstratm...@t-online.de wrote: Has someone experience with creating png bitmap files? Is it easy or complicated? I programmed a web server and wanted to serve diagrams also. Something like this:

Re: [fpc-pascal] [OT] which editor - emacs?

2010-01-10 Thread Ingemar Ragnemalm
Hans-Peter Suter gcha...@gmail.com wrote: I'm on a mac and use TextMate currently. As it doesn't jump between declaration and implementation and ist mac-only, I am looking for a replacement. Is Emacs a good choice? Does it work well with FPC? I don't quite understand the question. Why is

[fpc-pascal] Re: OpenCL (Lourival Mendes)

2009-12-22 Thread Ingemar Ragnemalm
I have tried Dmitry's OpenCL interfaces, and they work just fine. I use it on a Mac using Lightweight IDE, and making OpenCL work through it using C or FPC is trivial; it just works. I don't know how hard it is to use it from Lazarus (which I can't run for unknown reasons) but it can't be very

Re: [fpc-pascal] Who said Pascal isn't popular

2009-10-18 Thread Ingemar Ragnemalm
Vinzent H?fler jellyfish.softw...@gmx.net wrote: Graeme Geldenhuys graemeg.li...@gmail.com: Any programmer worth hiring should find it relatively easy to switch to another language. Or and least become proficient in it in a relative short period of time. The basic principles apply to all

Re: [fpc-pascal] Who said Pascal isn't popular

2009-10-16 Thread Ingemar Ragnemalm
Lee Jenkins l...@datatrakpos.com wrote: I don't agree with the idea that BEGIN...END determines the failure of Pascal, as syntax completion is for that. Both BEGIN...END and {...} are finished in the same time if they were done by computer. On the contrary, it is part of the way of Pascal

Re: [fpc-pascal] Error: Assembler as not found, switching to external assembling

2009-01-19 Thread Ingemar Ragnemalm
Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 31 Dec 2008, at 17:04, Giulio Bernardi wrote: Joost van der Sluis ha scritto: Op woensdag 31-12-2008 om 09:11 uur [tijdzone -0500], schreef César Espinoza: Error: Assembler as not found, switching to external assembling

Re: [fpc-pascal] Porting linux to pascal, would it be, possible ?

2008-12-05 Thread Ingemar Ragnemalm
Skybuck Flying [EMAIL PROTECTED] wrote: Hello, An open source pascal operating system could be cool. Would translating/porting linux to pascal be possible ? Absolutely. Most of Unix is plain C, which translates well to Pascal. C++ is harder, of course. Gerard N/A [EMAIL PROTECTED]

Re: [fpc-pascal] Porting linux to pascal, would it be possible ?

2008-12-05 Thread Ingemar Ragnemalm
Leonardo M. Ram? [EMAIL PROTECTED] wrote: --- On Fri, 12/5/08, Guillermo Martínez Jiménez [EMAIL PROTECTED] wrote: By the way, Linux is good as it is now and Pascal isn't the best option to create an operating system. Are you sure? doesn't older MacOS's versions where written in

[fpc-pascal] Re: Porting linux to pascal, would it be, possible ?

2008-12-05 Thread Ingemar Ragnemalm
Guillermo Mart?nez Jim?nez [EMAIL PROTECTED] wrote: I disagree. C is better for write operating systems *by definition*: C was created to write UNIX, Pascal was created to learn good programming techniques. C is low/mid-level language, Pascal is high-level (and Object Pascal is even

[fpc-pascal] Re: OT: Buy a Mac to develop for MacOS? Which one?

2008-10-12 Thread Ingemar Ragnemalm
Message: 1 Date: Sat, 11 Oct 2008 17:09:10 +0200 From: Lukas Gradl [EMAIL PROTECTED] Subject: [fpc-pascal] OT: Buy a Mac to develop for MacOS? Which one? To: FPC-Pascal Mailinglist fpc-pascal@lists.freepascal.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-15;

Re: [fpc-pascal] Small OSX GUI apps

2008-09-17 Thread Ingemar Ragnemalm
Jon [EMAIL PROTECTED] wrote: Thank you for your replies Jonas if you're coming from Win32 programming, you may want to read this: http://developer.apple.com/documentation/Porting/Conceptual/win32porting/win32porting.html Interesting document. Do I have to install Interface Builder

Re: [fpc-pascal] pascal on macbook

2008-04-27 Thread Ingemar Ragnemalm
Tom Verhoeff [EMAIL PROTECTED] wrote: For Pascal, you can also consider LWP (Light-Weight Pascal) at http://www.pascal-central.com/lwp/lightweight.html Thanks! The link to the real home page is, however: http://www.ragnemalm.se/lightweight Richard Ward [EMAIL PROTECTED] wrote: Just want

Re: [fpc-pascal] Why I?m choosing (Object) Pascal

2008-04-07 Thread Ingemar Ragnemalm
Michael Van Canneyt [EMAIL PROTECTED] wrote: Hello, After a month (a bit more) of writing the above post, I finally released it in my blog: http://idkn.wordpress.com/2008/04/06/why-im-choosing-object-pascal/ Just one remark: Have a look at http://www.morfik.com/ - a great way

Re: [fpc-pascal] beginner in pascal for Mac

2008-01-18 Thread Ingemar Ragnemalm
[EMAIL PROTECTED] wrote: Damien Gerard wrote: On Jan 15, 2008, at 11:54 AM, Ezequiel Tacsir wrote: I was used to wok with freepascal on windows. Now, I have switch to mac (10.5) and would like to know what are the things that I need to have it running. If anybody can send me a basic

Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-06 Thread Ingemar Ragnemalm
On Jan 5, 2008, at 11:11 AM, Florian Klaempfl wrote: Marco Ciampa schrieb: I work in a high school in Italy. We are currently using fpc + gnuplot for math and phisics simulations. In one lab we are currently starting to use Linux as the _sole_ platform. On Wed, Jan 02, 2008 at

[fpc-pascal] Re: Help getting started with FPC

2007-12-02 Thread Ingemar Ragnemalm
Edward Kearns wrote: First of all, note that LWP 0.2.9's demo is TransSkel.p, not NewSkel.p, as in the Lightweight Pascal IDE notes. Yes, that was my fault. I only included the newest demos, but NewSkel.p should have been included all the same, since it is the example demo. TransSkel is

Re: [fpc-pascal] Help getting started with FPC

2007-12-01 Thread Ingemar Ragnemalm
Edward Kearns wrote: Because of all the help I got, especially from Jonas Maebe, I successfully opened and ran successfully in LIghtweight IDE the Pascal program I had developed over several years in Think Pascal. NOW I can modify it, as I had desired. That's great! What was the

Re: [fpc-pascal] Help getting started with FPC

2007-11-30 Thread Ingemar Ragnemalm
Jonas Maebe wrote: If you want something more akin to Think Pascal, you may want to try LWP, which is available here: http://sourceforge.net/projects/lightweight-ide Thanks, Jonas! I think that is what Edward needs. BTW, the latest version is at http://www.ragnemalm.se/lightweight It

Re: [fpc-pascal] Mac losing Carbon support in 64bit Leopard

2007-06-16 Thread Ingemar Ragnemalm
Felipe Monteiro de Carvalho wrote: On 6/15/07, memsom [EMAIL PROTECTED] wrote: Apaprently Troll Tech is unhappy as they use Carbon in their Qt port for Mac OS X... Everyone is unhappy. Office, Photoshop, Adobe products, Firefox, wxWidgets, etc, are all based on Carbon. Actually to me

Re: [fpc-pascal] How to include Carbon.h?

2007-04-19 Thread Ingemar Ragnemalm
Hello, Pascal folks, I'm using FPC 2.0.4 on MacOSX 1.4.9 PPC and trying to write a Pascal library that is externally called from REALbasic (Rb). But Rb needs Carbon.h header included in dylibs which are called by Rb programs. In C, it's easy: #include Carbon/Carbon.h Unfortunately, I am

[fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-03 Thread Ingemar Ragnemalm
Sorry for not replying in thread, I get the list as digest so I can't reply properly. The problem with FPC is that I can't find any straightforward way to either get PFile-style stdin/stdout from the Text-style input/output (surely there is a connection?) Yes. PFile _IS_ Text style.

[fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-01 Thread Ingemar Ragnemalm
Dear list, I have been struggling for quite a while (that is weeks) to get proper pipe communication with a sublaunched program, using TProcess or straight pipe/fork/exec calls. This is under Mac OSX, but the problem should be similar under any Unix. The problem is the buffering. Using