Recent

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

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Future Developments/Jövőbeli fejlesztések (Multilang)
« on: August 21, 2011, 01:36:24 pm »
Hungary:
1. Assembler/Assembly language
Lehet vele fejlesztéseket csinálni? (Pl.:Int128). Van hátránya vagy előnye?

2. Mivel eljárással célszerű fejleszteni? Tudok alkotni Object Pascal nyelven új dolgokat? (Int128, pi 1 billió számjegyre, matematikai feladatok)

3. Van lehetőség biztonságok processzorirányításra? Célszerű ez az ötlet?


^4. ^Szeretnék csinálni új funkciókat, osztályokat és típusokat...

Low English Translate:
1. Assembler/Assembly language
Can improvements be done with it? (For example: Int128). There are advantages or disadvantages?

2. Since the procedure should be developed? Object Pascal language Can I write new stuff? (Int128, pi 1 trillion digits, mathematical functions)

3. There are possible security management processor? Is it recommended that the idea?

^4. ^I want to make new functions, classes and types...
« Last Edit: August 22, 2011, 06:55:09 pm by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

pik33

  • Jr. Member
  • **
  • Posts: 78
Re: Future Development/Jövőbeli fejlesztések
« Reply #1 on: August 21, 2011, 02:21:40 pm »
Write a component or unit for Lazarus/fpc with your new stuff - declare new types, procedures, operators, etc, then publish it somewhere and give us a note.

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Development/Jövőbeli fejlesztések
« Reply #2 on: August 21, 2011, 02:26:09 pm »
Szóval, te a kész terméket szeretnéd? :)

So, you want the finished product? :)
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 Development/Jövőbeli fejlesztések
« Reply #3 on: August 21, 2011, 02:42:42 pm »
Assembler nem jó, mert:
http://hu.wikipedia.org/wiki/Assembly
-> Egyszerű Lazarus sokkal jobb...

Assembler is not good, because:
http://en.wikipedia.org/wiki/Assembly_language
-> Simple Lazarus much better...
« Last Edit: August 22, 2011, 06:08:51 pm by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Future Development/Jövőbeli fejlesztések
« Reply #4 on: August 21, 2011, 02:43:24 pm »
1. Assembler/Assembly language
Can improvements be done with it? (For example: Int128). There are advantages or disadvantages?

2. Since the procedure should be developed? Object Pascal language Can I write new stuff? (Int128, pi 1 trillion digits, mathematical functions)

I think you are asking how to write a new huge number type, is that correct? If yes, then write it as a class. Add routines for Add, Subtract, Multiply, Divide, and add some routines to feed the number value. It could be added for example from a string, which has no length limit. You can store the data in any way you want. Either multiple smaller integers or a string or whatever.

After the class is ready you can add operator overloading too to make it possible to write something like: X := Y + Z instead of X.Assign(Y); X.Add(Z);

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Development/Jövőbeli fejlesztések
« Reply #5 on: August 21, 2011, 03:08:23 pm »
MyInt128 = class
function Add(x, y : String) : String;
function Subtract(x, y : String) : String;
function Multiply(x, y : String) : String;
function Divide(x, y : String) : String;
end;

How to convert class, function to type?
Hogyan csináljak osztályokból, funkciókból típust?

type
  Int128 : MyInt128;


Or do not you think so?
Vagy nem erre gondoltál?

Simple Int128 type I want to do.
Egyszerű Int128 típust akarok csinálni.

And they also want to do:
És ezeket is meg akarom csinálni:

StrToInt128, Int123ToStr, Real128, Real128ToStr, StrToReal128 etc./stb.

Is such a feature not subject to the machine? Does not kill my machine? :)
Egy ilyen funkció nem terheli le a gépet? Nem öli meg a gépem? :)

« Last Edit: August 21, 2011, 03:33:32 pm 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
« Reply #6 on: August 21, 2011, 03:32:18 pm »
I think it should be something like this:

type
MyInt128 = class
private
  Value: array[0..1] of Int64;
public
  procedure SetLow(AValue: Int64) ;
  procedure SetHigh(AValue: Int64) ;
  procedure Assign(ASource: MyInt128) ;
  procedure Add(x: MyInt128);
  procedure Subtract(x : MyInt128);
  procedure Multiply(x : MyInt128);
  procedure Divide(x: MyInt128);
end;

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #7 on: August 21, 2011, 03:40:42 pm »
Let's build the whole thing re-int64?
Építsük az egészet Int64-re?

How to MyInt128 class to convert to Int128 type?
Hogy konvertáljak osztályból típust?
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 #8 on: August 21, 2011, 03:44:34 pm »
How to MyInt128 class to convert to Int128 type?
Hogy konvertáljak osztályból típust?

Which Int128? Where is this type declared?

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #9 on: August 21, 2011, 03:47:07 pm »
I want to do a Int128 type. It exists as int64.
Szeretnék csinálni egy Int128 típust. Úgy ahogy az Int64 létezik.

I want to do 128bit number. This can all mathematical calculations. If is it "String" then may be higher.
128bit-es számot szeretnék teljes matematikai funkcióval. Ha ez "String" akkor lehet nagyobb is...

I have Soon been programming languages ​​communicate. :)
Lassan én már programozási nyelven kommunikálok. :)
^If ... then ....
« Last Edit: August 21, 2011, 04:07:59 pm by TheProgrammer »
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 #10 on: August 21, 2011, 06:29:08 pm »
How did you do an Integer or Int64?
Hogyan csináltatok Integer-t vagy Int64-t?

What is the definition of the int64? What is the structure?
Mi a definiciója az Int64nek? Hogyan épül fel?
« Last Edit: August 21, 2011, 07:56:17 pm 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 #11 on: August 21, 2011, 08:58:31 pm »
Integer and Int64 are internal types defined in the Pascal language. They do not have a declaration, they are simply basic types known by the language. You cannot redeclare them and you cannot create a new integer type which is bigger then Int64. You can make a class which generically represents a large number as I have shown.

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #12 on: August 21, 2011, 09:09:27 pm »
So I can't create a "simple variables type"... :(
Szóval, nem tudok létrehozni egyszerű változótípust... :(

Example/Példa:
my_number: Int128;

my_Number := 46542468468468468468453418168656542;
my_Number := my_Number * 23;
my_Number := my_Number - 5456435153135;
my_Number := my_Number + 6484846545419816816816151;
my_Number := sqr(564684646456456); //5646846464564562
[...]
« Last Edit: August 21, 2011, 09:29:05 pm 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 #13 on: August 21, 2011, 10:10:58 pm »
The way that you wrote is impossible. If you implement a class like I told you, you could write code like this:

my_number := Int128.Create;

my_Number.SetFromString('46542468468468468468453418168656542');
my_Number.Multiply(my_Number, 23);
number_x := Int128.Create('5456435153135');
my_Number.Subtract(number_x);
number_x.SetFromString('6484846545419816816816151');
my_Number.Add(number_x);

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Future Developments/Jövőbeli fejlesztések (Multilang)
« Reply #14 on: August 21, 2011, 10:25:37 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?

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?

(Sorry, my English is low)
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

 

TinyPortal © 2005-2018