Recent

Author Topic: Future Developments/Jövőbeli fejlesztések (Multilang)  (Read 15220 times)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #15 on: August 21, 2011, 11:55:36 pm »
I do not know the impossible! :) 'Int64' and 'Integer' were created at the same time?
Én a lehetetlent nem ismerem! :) 'Int64' és az 'Integer' egyszerre jöttek létre?

No, I don't know when Integer was introduced, maybe in the first version of Pascal something like 35 years ago?

Int64 was introduced by Delphi, I think, something like 15 years ago.

But what matters here is that both are language internal types and that they really have correspondence in the processors. Integer fits a CPU Register. Int64 fits either 1 64-bit register or 2 32-bits registers.

Quote
What will matter if it's 128bit is needed in the future? Do we do class?
Mi lesz ha 128bit-es számításra van szükség a jövőben? Csináljunk osztályt?

Lazarus can not develop into a way?
Nem tud így fejlődni a Lazarus?

You can write Int128 as a class or a record, whatever you prefer.

If you want this new type to "feel" like a basic language type then use operator overloading. Read here about it:

http://www.freepascal.org/docs-html/ref/refch12.html

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #16 on: August 22, 2011, 12:00:46 am »
I found something that combines the ideas. :)
Találtam valamit ami egyesíti az ötleteket. :)

The impossible is possible in some perspective.
A lehetetlen lehetséges bizonyos szemszögből.

http://alex.ciobanu.org/?p=76
http://alex.ciobanu.org/?p=226

Final results/Végeredmények:
Code: [Select]
var
  X: Variant;
begin
  X := BigCardinal(1);
  X := X + '343267727663266525438020038463';
  WriteLn(X);
end;
Code: [Select]
var
  a, b: BigInteger;
begin
  a := StrToBigInteger('8942374632463284632623837643468589' +
        '26367423509458904389575645349857');
  b := a * a;
  WriteLn(IntToStr(b));
end.
Code: [Select]
var
  a, b: Variant;
begin
  a := StrToBigInteger('8942374632463284632623837643468589' +
        '26367423509458904389575645349857');
  b := a * a;
  WriteLn(b);
end.
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #17 on: August 22, 2011, 01:12:32 am »
But what matters here is that both are language internal types and that they really have correspondence in the processors. Integer fits a CPU Register. Int64 fits either 1 64-bit register or 2 32-bits registers.

I translated:So Intel, AMD or other CPU company make new 128bit processor then Delphi or other development team write a new variable type. Example: Int128, XWord or other type...

What is my hungary-english translation?

Szóval az Intel, AMD vagy egyéb processzor vállalat csinál egy új 128bit-es processzort akkor a Delphi vagy más fejlesztőcsoport ír egy új változótípust. Mondjuk ennek neve legyen Int128, XWord vagy egyéb típus...
« Last Edit: August 22, 2011, 01:18:12 am by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #18 on: August 22, 2011, 08:53:32 am »
Please don't reuse existing forum topics to post new questions. Please create a new topic about your thread problem.

avra

  • Hero Member
  • *****
  • Posts: 2566
    • Additional info
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #19 on: August 22, 2011, 09:17:36 am »
This is a first google hit when I searched for INT128 DELPHI:
http://www.koders.com/delphi/fidBE83578467B18B58D2BBC5C8E4F3EA3BDA91D263.aspx?s=pos
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #20 on: August 22, 2011, 07:06:15 pm »
Lazarus / FreePascal community can not develop in the Object Pascal programming language?
Lazarus / FreePascal közösség nem tudja fejleszteni az Object Pascal programnyelvet?

Only the "big dog" know? (Delphi)
Csak a "nagykutyák" tudják? (Delphi)
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

avra

  • Hero Member
  • *****
  • Posts: 2566
    • Additional info
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #21 on: August 23, 2011, 11:36:10 am »
Lazarus / FreePascal community can not develop in the Object Pascal programming language?
Can you develop in it? Have you tried to use that unit and compile it with Laz/FPC? What were the problems that stopped you from using it?
« Last Edit: August 23, 2011, 11:38:10 am by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #22 on: August 23, 2011, 11:43:06 am »
For example, I thought the new variable int128 insertion.
Például az új int128 változó típus beiktatására gondoltam.

No, I don't know when Integer was introduced, maybe in the first version of Pascal something like 35 years ago?

Int64 was introduced by Delphi, I think, something like 15 years ago.

But what matters here is that both are language internal types and that they really have correspondence in the processors. Integer fits a CPU Register. Int64 fits either 1 64-bit register or 2 32-bits registers.

New 128 bit processor, new variable type...
Új 128bit-es processzor, új változó típus...
« Last Edit: August 23, 2011, 11:45:51 am by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

 

TinyPortal © 2005-2018