Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1634 connectés 

 


 Mot :   Pseudo :  
 
 Page :   1  2  3  4  5  6  7  8  9  10
Page Suivante
Auteur Sujet :

[Langage D]C++ + Java + Python = D

n°2199491
gilou
Modérateur
Modzilla
Posté le 06-08-2013 à 10:33:55  profilanswer
 

Reprise du message précédent :
Euh, je saisis pas trop le sens de ton "les fuites de mémoire de dmd". Vu ce qu'il explique (allocation sans free, et release mémoire seulement causée par la sortie son exécution) dmd est une gigantesque fuite. Et sa modif, si elle diminue le nombre d'appels à malloc, ne change à priori rien au comportement de dmd vis avis de cela.
Tu voulais dire "les fuites mémoires des programmes compilés avec dmd?"
D'ailleurs, tant qu'a agir ainsi, je me demande pourquoi il utilise encore malloc dans son code, plutôt que d'incrémenter directement un pointeur de heaptop (modulo alignement si nécessaire). :D  Il y a des trucs qui peuvent s'allouer entre deux de ses chunks, ou bien c'est a cause de mécanismes modernes de protection mémoire (pas d'écriture sur une zone non allouée)?
A+,

Message cité 1 fois
Message édité par gilou le 06-08-2013 à 10:48:04

---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
mood
Publicité
Posté le 06-08-2013 à 10:33:55  profilanswer
 

n°2199541
deadalnix
Posté le 06-08-2013 à 16:15:02  profilanswer
 

gilou a écrit :

Euh, je saisis pas trop le sens de ton "les fuites de mémoire de dmd". Vu ce qu'il explique (allocation sans free, et release mémoire seulement causée par la sortie son exécution) dmd est une gigantesque fuite. Et sa modif, si elle diminue le nombre d'appels à malloc, ne change à priori rien au comportement de dmd vis avis de cela.


 
Oui, DMD est une gigantesque fuite. Il y a quelque free, mais la plupars des allocation ne sont jamais libérés.
 
Maintenant, je te laisse imaginer comment ce design se combine avec le fait que toutes les valeurs sont copy on write pendant les CTFE.
 

gilou a écrit :

Tu voulais dire "les fuites mémoires des programmes compilés avec dmd?"


 
Sur 64 bits, elles sont inexistantes : http://www.deadalnix.me/2012/03/05 [...] recise-gc/ Ce n'est pas lié à dmd, mais au GC qui n'est pas précis (et ça pose des problèmes de faux positif en 32 bits).
 

gilou a écrit :

D'ailleurs, tant qu'a agir ainsi, je me demande pourquoi il utilise encore malloc dans son code, plutôt que d'incrémenter directement un pointeur de heaptop (modulo alignement si nécessaire). :D  Il y a des trucs qui peuvent s'allouer entre deux de ses chunks, ou bien c'est a cause de mécanismes modernes de protection mémoire (pas d'écriture sur une zone non allouée)?
A+,


 
Je n'ai pas regardé le source modifié, mais si j'ai bien compris c'est ce qu'il fait maintenant.

n°2199565
gilou
Modérateur
Modzilla
Posté le 06-08-2013 à 21:35:15  profilanswer
 

Ce qu'il fait est très simple, au vu du code de l'article: il alloue par bloc de taille fixe
Quand il a besoin de mémoire,  
Si c'est plus gros que la taille d'un bloc, il alloue direct avec malloc
Sinon, soit ça tient dans la partie inutilisée du bloc courant, soit il en alloue un nouveau avec malloc.
C'est rapide, mais un poil gourmand ça (plein de trous et pas de recyclage). M'enfin bon,si ça marche...  
A+,


Message édité par gilou le 06-08-2013 à 21:37:55

---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
n°2200718
deadalnix
Posté le 24-08-2013 à 13:10:19  profilanswer
 

J'ai enfin les spécialisations de template qui marchent dans SDC.
 
On arrive à quelque chose !

n°2205278
gilou
Modérateur
Modzilla
Posté le 03-10-2013 à 20:26:27  profilanswer
 

Andrei Alexandrescu's AMA
 

Citation :

> Are there plans to use D in Facebook?
> Not for the time being. However, since recently it's become part of my job description to explore integration of D at Facebook. This is the first time I'm mentioning it publicly. assert(cat !in bag); I have a well-defined plan that is difficult but executable. If things go well, we'll make an announcement in a few months. Otherwise, well, we won't

:ouch:  
 
A+,


Message édité par gilou le 03-10-2013 à 20:28:33

---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
n°2205515
deadalnix
Posté le 05-10-2013 à 19:42:26  profilanswer
 

On va faire comme si je ne savais rien :D

n°2206361
deadalnix
Posté le 11-10-2013 à 03:41:15  profilanswer
 
n°2206390
gilou
Modérateur
Modzilla
Posté le 11-10-2013 à 10:15:57  profilanswer
 

:jap:  
A+,


---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
n°2209631
gilou
Modérateur
Modzilla
Posté le 07-11-2013 à 15:56:27  profilanswer
 

D release 2.064 is out with 35 enhancements and over 400 bugfixes
En particulier, CTFE apparaît souvent dans la liste des bugs corrigés.
A+,


---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
n°2209886
deadalnix
Posté le 11-11-2013 à 05:03:10  profilanswer
 

gilou a écrit :

D release 2.064 is out with 35 enhancements and over 400 bugfixes
En particulier, CTFE apparaît souvent dans la liste des bugs corrigés.
A+,


 
Don bosse pas mal dessus, donc normal. Par contre, gros bug qui fait foirer 15 tests de SDC :(

mood
Publicité
Posté le 11-11-2013 à 05:03:10  profilanswer
 

n°2209934
gilou
Modérateur
Modzilla
Posté le 11-11-2013 à 16:27:35  profilanswer
 

Ah au fait, j'avais oublié de le signaler, création d'un forum spécifique en français ici: http://www.dlang-fr.org/forum/
A+,


---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
n°2211307
el muchach​o
Comfortably Numb
Posté le 22-11-2013 à 07:49:38  profilanswer
 

gilou a écrit :

Ah au fait, j'avais oublié de le signaler, création d'un forum spécifique en français ici: http://www.dlang-fr.org/forum/
A+,


Le forum est complètement désert. Le créateur du forum aurait mieux fait de demander si ça intéressait quelqu'un avant. Comme souvent dans ce genre d'initiative isolée, ça n'intéresse pas grand monde d'avoir un forum spécifique coupé des ressources centralisées.


Message édité par el muchacho le 22-11-2013 à 07:51:46

---------------
Les aéroports où il fait bon attendre, voila un topic qu'il est bien
n°2211421
deadalnix
Posté le 22-11-2013 à 21:32:08  profilanswer
 

Trop gros trop vite :(

n°2211661
deadalnix
Posté le 26-11-2013 à 09:55:24  profilanswer
 

Dconf2014 dans les cartons : http://dconf.org/

n°2220669
gilou
Modérateur
Modzilla
Posté le 24-02-2014 à 23:32:17  profilanswer
 

D 2.065 released with 396 fixes and improvements

Citation :

Version D 2.065 February 24, 2014
Compiler Changes
Extensionless D source file names can now be run when using the -run switch.
Language Changes
Goto jumps now cannot skip variable declarations.
All instantiated functions now infer their attributes.
Add a new type qualifier inout const.
Entire slicing operation of built-in tuple is now accepted.
Packages and module names now have no type.
Const and immutable fields with initializers are now deprecated.
Deprecate unordered floating point comparisons.
Deprecate .min property for floating-point types.
CTFE can handle overlapped union fields.
Add a new trait getAliasThis.
Library Changes
Many functions in std.algorithm can now be used as predicates to other functions.
Allow std.algorithm.all to be used without a predicate.
Add std.uni.byGrapheme and std.uni.byCodePoint.
Add support for any number of arguments to std.range.only.
Linker Changes
Added /LARGEADDRESSAWARE to the Win32 Optlink linker.


http://dlang.org/changelog.html?2.065.0
 
A+,


Message édité par gilou le 24-02-2014 à 23:33:53

---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
n°2252084
gilou
Modérateur
Modzilla
Posté le 02-03-2015 à 13:48:09  profilanswer
 

Version D 2.067 Mar 1, 2015

Citation :

Language Changes
 
    Destructors for structs allocated on the heap are now invoked.
    asm statements can now be used in pure, nothrow, @nogc, or @trusted code.
 
Library Changes
 
    volatileLoad and volatileStore intrinsics were added.
    Experimental: The garbage collector can now be configured.
    byKeyValue was added.
    initOnce was added to perform thread-safe lazy initialization.


 
Et tant que j'y suis, je vois que j'avais oublié la release précédente, qui avait été une release majeure:
Version D 2.066 August 18, 2014

Citation :

Compiler Changes
 
    -w now warns about an unused return value of a strongly pure nothrow function call.
    -noboundscheck has been deprecated in favor of boundscheck=[on|safeonly|off].
    -vgc was added to list GC allocation code positions in the code.
    -vcolumns was added to display column numbers in error messages.
    -color was added to make console output colored.
 
Language Changes
 
    @nogc attribute was added.
    extern (C++, namespace) was added.
    Operator overloading for multi-dimensional slicing was added.
    __traits(getFunctionAttributes) was added.
    Support template parameter deduction for arguments with a narrowing conversion.
    Read-Modify-Write operations on shared variables are now deprecated.
    Support uniform construction syntax for built-in scalar types.
 
Library Changes
 
    Duration.get and its wrappers have been deprecated in favor of the new Duration.split.
    Some built-in type properties have been replaced with library functions.
    Associative array keys now require equality instead of order comparison.

Et la correction de plus de 500 bugs.
 
A+,


Message édité par gilou le 02-03-2015 à 14:32:07

---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
n°2267827
el muchach​o
Comfortably Numb
Posté le 15-10-2015 à 19:01:44  profilanswer
 

Allez, ça fait longtemps...

 

Le front-end D est finalement réécrit en D ! 120KLOC convertis depuis le C++ par ce remarqueble hacker.
Pour cela il a écrit un convertisseur de code automatique.

 


Dconf 2015, le talk de Walter Bright sur le codage sans allocation sur la heap, ça faisait longtemps qu'on l'attendait.

 

Donc Phobos va être purgé de nombre d'allocations, et ça devrait résulter en un boost de performances non négligeable, parce que potentiellement, des milliers d'allocations pourront être évitées.
Par contre, en faisant cela, la contrepartie est le risque de saturer la pile si on ne fait pas attention.


Message édité par el muchacho le 16-10-2015 à 18:19:19

---------------
Les aéroports où il fait bon attendre, voila un topic qu'il est bien
n°2272279
gilou
Modérateur
Modzilla
Posté le 26-12-2015 à 12:18:17  profilanswer
 

Un nouveau bouquin a été publié:
http://reho.st/https://d1ldz4te4covpm.cloudfront.net/sites/default/files/imagecache/ppv4_main_book_cover/2481OS_4655_Learning%20D.jpg
Learning D par Michael Parker, édité par Packt Publishing en Novembre 2015 ; ISBN 978-1-78355-248-1
Un peu plus de 400 pages.
5€ pour la version électronique (sur le site de l'éditeur, www.packtpub.com ), et 40€ de plus pour avoir aussi la version papier.
Je vois d'ailleurs que tous les bouquins de l'éditeur sont a ce prix (5€) en version électronique, ce qui est plutôt un bon prix (bon, niveau qualité du contenu, chez eux, il y a de tout) mais il faut savoir (pour ce bouquin en tout cas) que si l'on essaye d'imprimer un chapitre du livre en pdf, environ 1/4 des pages, aléatoirement, ne seront pas imprimées, et il faut compléter en imprimant page à page.
 

Citation :

Leverage the modern convenience and modelling power of the D programming language to develop software with native efficiency
About This BookAcquire the skills to understand the fundamentals of D through its support for imperative and object-oriented programmingTake advantage of D's powerful compile-time features, templates and ranges to apply generative, generic, and functional styleA systematic guide that will help you become familiar with the concepts in D with the help of simple and easy-to-understand examplesWho This Book Is For
This book is intended for those with some background in a C-family language who want to learn how to apply their knowledge and experience to D. Perhaps you're a college student looking to use D for hobby projects, or a career programmer interested in expanding your skillset. This book will help you get up to speed with the language and avoid common pitfalls that arise when translating C-family experience to D.
What You Will LearnCompile programs with DMD and manage projects with DUBWork efficiently by binding your D programs with new and existing C librariesGenerate code at compile-time to enhance runtime performanceImplement complex templates for more powerful generic codeWrite idiomatic D with range-based functional pipelinesUse the DUB repository to find a link with a variety of D librariesImplement a web-app in D from the ground upIn Detail
D is a modern programming language that is both powerful and efficient. It combines multiple paradigms in a way that opens up a whole new world of software design. It is used to develop both desktop and web applications, with future targets including mobile, and is available on multiple platforms. It is familiar to anyone with some experience in one or more of the C-family languages. However, hidden in the similarities are several differences that can be surprising when trying to apply common idioms from other languages. When learning D on your own, this can make it more time-consuming to master. In order to make the most of the language and become an idiomatic D programmer, it's necessary to learn how to think in D.
 
This book familiarizes you with D from the ground up, with a heavy focus on helping you to avoid surprises so that you can take your D knowledge to the next level more quickly and painlessly.
 
Your journey begins with a taste of the language and the basics of compiling D programs with DMD, the reference D compiler developed by Digital Mars, and DUB, a community-developed build utility and package manager. You then set out on an exploration of major language features. This begins with the fundamentals of D, including built-in types, conditionals, loops and all of the basic building-blocks of a D program, followed by an examination of D's object-oriented programming support. You'll learn how these features differ from languages you may already be familiar with. Next up are D's compile-time features, such as Compile-Time Function Evaluation and conditional compilation, then generic programming with templates. After that, you'll learn the more advanced features of ranges and functional pipeline programming. To enhance your D experience, you are next taken on a tour of the D ecosystem and learn how to make D interact with C. Finally, you get a look at D web development using the vibe.d project and the book closes with some handy advice on where to go next.
Style and approach
A friendly guide to the D programming language and its ecosystem that walks programmers through all they need to know for a painless experience in learning D.


 
    TOC
Preface
Chapter 01: How to Get a D in Programming
Chapter 02: Building a Foundation with D Fundamentals
Chapter 03: Programming Objects the D Way
Chapter 04: Running Code at Compile Time
Chapter 05: Generic Programming Made Easy
Chapter 06: Understanding Ranges
Chapter 07: Composing Functional Pipelines with Algorithms and Ranges
Chapter 08: Exploring the Wide World of D
Chapter 09: Connecting D with C
Chapter 10: Taking D Online
Chapter 11: Taking D to the Next Level
Index
 
A+,


Message édité par gilou le 26-12-2015 à 15:08:59

---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  6  7  8  9  10
Page Suivante

Aller à :
Ajouter une réponse
 

Sujets relatifs
Upload en JAVA[Java] Architecture pipes-filters
[java] Tracer un rectangle en temps réel[Java] Aide sur projet avec interface graphique ( Pas des fenêtres)
[JAVA] Empecher la saisie dans une jtableimpossible d'éxécuter un programme en java !!!
programmation jeux java sur samsung Z300Envoyer des fichiers sur un FTP depuis un programme Java...
[java] Agrandir le contenu d'une tab en même temps que la tab[Java] Les hint
Plus de sujets relatifs à : [Langage D]C++ + Java + Python = D


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR