Telegram Group & Telegram Channel
Deno bilan native desktop dastur yasash

Yangi yil oldi bo'sh vaqtim ko'p bo'ldi. Shu sabab Deno v2 chiqqanidan beri o'ylab yurgan bir tajribani qilib ko'rdim.

Deno yozgan skriptingizni native binary (.exe) ga kompilyasiya qilib bera oladi. O'ylab qoldim, demak Denoda UI app qilsak, uni ham .exe faylga osongina kompilyatsiya qilib beridimi? Axir bu juda ajoyibku dedim. Lekin muammo shuki, Denoda UI library yo'q! 🤔

Ammo FFI imkoniyati bor!
(Foreign Function Interface)

Shu orqali C/C++, Rust, Go kabi tillarda yozilgan DLL kutubxonalarni ishlatish mumkin.💡

Soddaroq, lekin komponentlarga boy bo'lgan C++ kutubxona tanladim - TGUI.
SFML ustiga qurilgan, API juda yaxshi.
Unga ba'zi o'zgartirishlar kiritgan holda Windows va OSX ga DLL tayyorladim. Deno FFI bilan C++ funksiyalarni JS ga ulab chiqdim. Voilà! 🎉

Anchagina metaprogramming qilib, chidasa bo'ladigan API qildim. Mana natija:

https://github.com/diyorbek/tgui.js
🔥12👍6👏1



tg-me.com/brogrammist/291
Create:
Last Update:

Deno bilan native desktop dastur yasash

Yangi yil oldi bo'sh vaqtim ko'p bo'ldi. Shu sabab Deno v2 chiqqanidan beri o'ylab yurgan bir tajribani qilib ko'rdim.

Deno yozgan skriptingizni native binary (.exe) ga kompilyasiya qilib bera oladi. O'ylab qoldim, demak Denoda UI app qilsak, uni ham .exe faylga osongina kompilyatsiya qilib beridimi? Axir bu juda ajoyibku dedim. Lekin muammo shuki, Denoda UI library yo'q! 🤔

Ammo FFI imkoniyati bor!
(Foreign Function Interface)

Shu orqali C/C++, Rust, Go kabi tillarda yozilgan DLL kutubxonalarni ishlatish mumkin.💡

Soddaroq, lekin komponentlarga boy bo'lgan C++ kutubxona tanladim - TGUI.
SFML ustiga qurilgan, API juda yaxshi.
Unga ba'zi o'zgartirishlar kiritgan holda Windows va OSX ga DLL tayyorladim. Deno FFI bilan C++ funksiyalarni JS ga ulab chiqdim. Voilà! 🎉

Anchagina metaprogramming qilib, chidasa bo'ladigan API qildim. Mana natija:

https://github.com/diyorbek/tgui.js

BY Brogrammist




Share with your friend now:
tg-me.com/brogrammist/291

View MORE
Open in Telegram


Brogrammist Telegram | DID YOU KNOW?

Date: |

Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.

What is Telegram Possible Future Strategies?

Cryptoassets enthusiasts use this application for their trade activities, and they may make donations for this cause.If somehow Telegram do run out of money to sustain themselves they will probably introduce some features that will not hinder the rudimentary principle of Telegram but provide users with enhanced and enriched experience. This could be similar to features where characters can be customized in a game which directly do not affect the in-game strategies but add to the experience.

Brogrammist from pl


Telegram Brogrammist
FROM USA