lisp2arx
Visual Programming for AutoLisp Mathématiques en programmation Lisp.. doc2cpp,doc2lsp, sld2lsp, bmp2dcl, free__GifCcapture for all-CAD'platforms..
Lista Forumurilor Pe Tematici
lisp2arx | Reguli | Inregistrare | Login

POZE LISP2ARX

Nu sunteti logat.
Nou pe simpatie:
loca23 23 ani
Femeie
23 ani
Cluj
cauta Barbat
23 - 44 ani
lisp2arx / Delphi , InnoPascal / Delphi32- Julia fast speed of Code..  
Autor
Mesaj Pagini: 1
admin
Administrator

Din: Bucharest
Inregistrat: acum 13 ani
Postari: 508
How to import the many Tricks from Julia inside Delphi for your-units?
(not for System.pas, not for classes, not for FileCtrls.dcu.........Windows.dcu)
Either one, the system.pas(+classes.pas, or filectrls, or sysutils,  or windows.dcu)
are very very-goods, today2021 and next 2022year.

   
Defun=  The subject "Julia" is a programming language.

Code:

The shortest possible answer is that it’s fast because it was designed to be fast.
Any programming language (implementation) can be fast if it does certain things:
Uses numeric types which are natively supported by the machine (i.e. not arbitrary-precision numbers), which can then be used with hardware arithmetic operations directly, costing only one machine instruction per operation. (or even less with SIMD)
Puts data inline in arrays to avoid the cost of indirection and get the most out of the CPU cache. Inline numeric data is also necessary for SIMD.
Avoids frequent memory allocation from the heap. Modern processors can optimize stack allocation, but heap allocation involves rather costly system calls. It is partially the responsibility of the programmer to handle this, but the language also plays a big part in allowing (or not) the amortization of allocation costs. Inline data in arrays also means that storage is allocated in advance.
Interoperates well with pre-existing high-performance libraries—usually with a C-FFI (C foreign function interface).
Julia does all of these things—or at least, it does three of these things, and it makes it possible to avoid allocation as well, though naive Julia may do frequent memory allocations (just as naive C++ may do frequent memory allocations).

You might be surprised to learn that many programming languages are not designed with performance in mind, but rather are designed to present the programmer with a certain set of abstractions and then try to implement the language to be as performant as possible around the predetermined abstractions. High-performance languages, on the other hand, are designed for 
performance first and select abstractions that fit that.
.......................

CopyRights(c2021)Quora.com-All rights reserved!!

delphi32- julia fast speed code.. how import the many tricks from julia inside delphi for (not for

69.5KB


_______________________________________


pus acum 2 ani
   
Pagini: 1  

Mergi la