A boat for Starcraft on Rust

A boat for Starcraft on Rust
 
StarCraft: Brood War . How much this means to me. And for many of you. So much that I doubted whether to give a link to the wiki.
 
Once I was knocked in a personal Halt and offered to learn Rust . Like any normal people, we decided to start with
hello world
writing a dynamic library under Windows that could be loaded into the StarCraft address space and manage units.
 
The article will describe the process of finding solutions, using technologies, techniques that will allow you to learn new things in the language of Rust and its ecosystem or be inspired to implement the bot in your favorite ...
+ 0 -

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 4.1

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 4.1

The summary of the previous parts


 
Because of the limitations on the ability to use C ++ 11 compilers and the non-alternative boost, there was a desire to write your own implementation of the standard C ++ 11 library on top of the C ++ 98 /C ++ 03 library delivered with the compiler.
 
 
were realized. static_assert , noexcept , countof , as well as after reviewing all nonstandard defenses and compiler features, information has appeared on the functionality that is supported by the current compiler. The implementation of is included. nullptr , which is selected at the compilation ...[/h]
+ 0 -

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 2

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 2

The summary of the previous parts


 
Because of the limitations on the ability to use C ++ 11 compilers and the non-alternative boost, there was a desire to write your own implementation of the standard C ++ 11 library on top of the C ++ 98 /C ++ 03 library supplied with the compiler.
 
 
In addition to the standard header files type_traits , thread , mutex , chrono were also added. nullptr.h which realizes std :: nullptr_t and core.h where macros relating to the compiler-dependent functional were rendered, and also extending the standard library.
 
 
A ...[/h]
+ 0 -

How do I write a standard C ++ 11 library or why is boost such a terrible

How do I write a standard C ++ 11 library or why is boost such a terrible

Instead of the preface


 
Perhaps this picture should begin with any narration about boost , Loki , standalone, and also the implementations of the standard C ++ library that are supplied with compilers.
 
 
Yes, and if you thought that the developers of the standard library for the same g ++, clang, Visual Studio or, sorry Lord, C ++ Builder (former Borland, and the current Embarcadero) - gurus that do not crutches, do not break the standard for their compiler and do not write bicycles, then, most likely, you are not so actively using the standard C ++ library as it seemed to you.
 
 
The article ...[/h]
+ 0 -

Extension of PHP and Kotlin Native. Part two, conscious

 
Extension of PHP and Kotlin Native. Part two, conscious

Summary first part :


 
 
Installing and configuring the toolkit.
 
Writing the function helloWorld () on Kotlin Native and compiling it into a shared library.  
Access this function from the C code of the PHP extension.  

 
 
In this article I will talk about creating tools for writing PHP extensions without having to touch C, exclusively on K /N.
 
 
To whom it is interesting - welcome under kat.
 
Who is not interested in reading, but just want to see - welcome to github
 
 

 
 
...[/h]
+ 0 -

Library sorting

Library sorting

 
 
to it. sorting with simple inserts .
 
 

 
 
See, with what squeak there is an insertion in the necessary place of the next element. For him, you need to release the insertion point, because of which you have to shift all the previously inserted elements.
 
 
And how nice it would be if there were vacant spaces between the early inserted elements! Then you would not have to drag the string of elements just for the sake of inserting one.
 
 
In 200? three computer science experts - Michael Bender, Martin Farah-Colton and Miguel Mosteiro - decided that way and modified the sorting with simple inserts. They proposed to form an ordered part of the array, leaving gaps between inserted elements.
 
The librarian needs books to be ...
+ 0 -

Neuronki for 5 minutes

Let me in 5-10 minutes of reading and understanding a short article add to your resume the lines "machine learning" and "neural networks"? To those who are far from programming, I will dispel all the myths about the complexity of AI and show that most of all projects on machine learning are built on extremely simple principles. Let's go - we have only five minutes.
 
 
Consider the most basic example of neural networks - perceptrons; I myself only after this example fully realized how neural networks work, so if I do not poke and you can understand. Remember: there is no magic here, simple mathematics ...
+ 0 -

Friday PHP-quiz: a little adventure of the programmer Brad, one strange sequence and

Friday PHP-quiz: a little adventure of the programmer Brad, one strange sequence andprizes.Hello! We promised to do: we continue the series of mini-quizzes devoted to different programming languages ​​in our blog (previous: 1 (for knowledge of Python, PHP, Golang and DevOps) , .2 (completely Go) ). Today's issue is dedicated to PHP.  Under the cut - eight questions, a few adventures of the programmer Brad, one strange sequence and a cool meas as prizes. Quiz runs until 4 July.      The rules of the game   To the first , who will answer them correctly, we will send a set of Avito souvenir: a t-shirt with a php-elephant, socks and holivar bones (you can tell which backend ...
+ 0 -

Quantum Mechanics of Calculations in JS

Hello, my name is Dmitry Karlovsky and I unemployed. Therefore, I have a lot of free time for music, sports, creativity, languages, JS conferences and computer science. About the last study in the field of semi-automatic partitioning of long calculations into small quanta by several milliseconds, which resulted in the appearance of a miniature library $ mol_fiber , I'll tell you today. But first, let's denote the problems that we will solve
 
Quantum Mechanics of Calculations in JS
 
This is a text version of the same name at HolyJS 2018 Piter . You can either ...
+ 0 -

Library of unwritten books

Library of unwritten booksI have a dream: to develop my own computer game.
 
 
It would seem that the dream is very unoriginal. This is something very many people want, but we all know perfectly well what it usually turns out. A great unattainable goal.
 
 
What is missing for those who want to develop a game?
 
 
I believe that only three main components affect whether we want to play a game or not.
 
 
 
Game mechanics.
 
Seting.
 
Identity.
 
 
Graphics, voice, story - this, of course, significantly affects the gameplay, but beyond these three components they are not needed. Sometimes the excess of special effects even ...
+ 0 -