>
> Of course I can use high level wrappers around the existing library
> functions, but this will cause a significant negative impact on the
> performance, that is why I want to implement this functionality on top of
> the lowest level.


Why would having the standard library present make what you want to
implement slower? "High level wrappers" are not necessarily any slower.
There's nothing preventing you from making your own high-performance
primitives without ditching Julia's standard library. There are tons of
examples out there of user-defined types in Julia code that are just as
efficient as the built-in ones:

   - https://github.com/JeffBezanson/FixedPointNumbers.jl
   - https://github.com/JuliaGraphics/ColorTypes.jl
   - https://github.com/JuliaDiff/DualNumbers.jl
   - https://github.com/dpsanders/ValidatedNumerics.jl

For a simple, self-contained example, see examples/modint.jl
<https://github.com/JuliaLang/julia/blob/master/examples/modint.jl>.

On Tue, Jun 14, 2016 at 2:40 PM, Dmitry <[email protected]> wrote:

> I want to change the behaviour and implementation of some language
> features. In other words, I need my own little standard library that most
> accurately meets my needs. Of course I can use high level wrappers around
> the existing library functions, but this will cause a significant negative
> impact on the performance, that is why I want to implement this
> functionality on top of the lowest level. Generally speaking, to do this I
> do not need to remove the standard library, but I think it might be the
> most convenient way to "feel" that lowest level. If you say that Julia is
> so flexible that even primitive types and operations are implemented in the
> standard library then I want to take advantage of this and implement my
> own primitives.
>
> вторник, 14 июня 2016 г., 17:01:44 UTC+3 пользователь Stefan Karpinski
> написал:
>>
>> Tamas is dead on – see the intro of
>> https://www.youtube.com/watch?v=dK3zRXhrFZY for an explanation. Being
>> able to define even the most basis types in Julia itself is one of the most
>> powerful features of the language.
>>
>> Let's back up a little here. What are you trying to accomplish?
>>
>

Reply via email to