Category: Uncategorized

  • I have a dream

    Well, not a dream exactly. Just use this famous headline for a post about programming. Or about “how my dream programming language and runtime would look like”.

    So, imagine if NodeJS would get these:

    1. Native numeric types like i8, i16, i32, i64, u8, u16, u32, u64, f32, f64 and so on.
    2. Memory manager based either on references counting or Rust borrow checker. Key point here is somehow to avoid garbage collection, and free memory (or give it back to allocator) as soon as last object reference ends its life, such as variable assigned to null / undefined or local allocations freed at end of method execution.
    3. Typescript syntax (or as fallback – JSDoc types enforcement during compilation).
    4. Yes, this language should be compiled to some bytecode type of thing, like WASM or Java bytecode
    5. Packages is the compiled code single-file form of code distribution, so instead of unpacking an archive and running some murky scripts, it is enough to download a compiled package file into its analog of node_modules. The standard npm packages should be compiled on installation.
    6. Ability to use console interface, network, ideally something like full NodeJS API compatibility, and GUI to create the applications.

    Some may think I am asking too much.

    There are other ways around such path. For example, a Java runtime with these goodies:

    1. Tagged template strings like in JavaScript (but may be some comfortable library can be used/written instead?)
    2. Async syntax of async/await and related (may be covered by virtual threads, scoped values?
    3. Use automate references counting or rust-like memory management? Can be partly solved with all these MemoryFragments and memory Arenas?

    In context of Java, the 1 and 3 are sort of contradiction. Comfortable libraries already exist, like j2html but it would involve lots of heap allocations and GC. It is possible to implement sequential html writer using these html-concatenation flows based on memory fragments and arenas, even if it would be less fluent-ish (with separate methods to open and close tag such as openDiv and closeDiv) instead of calling methods like span, p, or div… Something like this can be implemented later, if value classes would be a thing, to store memory offset and its meaning together right at stack (like [123, 10, 1] meaning text 10 bytes is stored at position 123, or [133, 1, 2] meaning 1 control character opening the tag < stored at position 133. And so on.

    At same time…

    As I spent some time on learning java basics, but now I in doubt, should I switch to rust instead, because I prefer avoid garbage collection and make these things memory-efficient….

    Especially in context of these projects like desktop blog editor and rust backend for federated blog to be edited with this editor to be used instead of WordPress.

    Looks like I am stuck lately even on such basic stuff as “what language / tech stack use” not speaking about more narrow details…

    PS: The native memory types thing come from fact that no matter what project it is, I will have to write values to raw memory, and java lacks unsigned bytes, which confused me a lot when I was experimenting with encryption. And as data being encrypted is just some pile of bytes, it often can end up with writing some bytes for encryption in their “native” form. This guess actual for many projects – let it be a time tracking desktop app with self-hosted invoicing pod at some server, or blog editor with upload of content to a fediverse-friendly pod.

    Making these apps both in NodeJS & JS/HTML/CSS stack per se could be easier for me due years of prior experience but I think this will not be a very efficient thing.

    Sorry for actual rant or may be not so useful or informative post. I hope to do better next time.

  • Remember the 5th

    In need of a testing text for project i working on, I wrote a bit of poem.

    Remember, remember
    The 5th of November,
    When king has been spared,
    And Guy has been burned away.
    
    A mask has been named
    In Guy simple name,
    That now synonym to share
    By man and woman in same way.
    
    If it has been done as planned,
    It would not be end of the state.
    The goal was simpler much,
    Just to replace ruling church.
    Fediverse Reactions
  • Voyager-1 vs Sam Altman

    Voyager-1 vs Sam Altman

    Reading news about Voyager-1 getting close to the distance of 1 light-day.

    And I wounder – whether Sam Altman will fly to Voyager-1 to extract the 69 kilobytes of memory from there?

  • I may sound as a conspiracy theorist, but this is amazing

    Today I was scrolling Reddit between tasks, and found this set of headlines:

    Shortly, at same time two things happened:

    1. In USA the AI bubble start to get first cracks. AI-related stocks starting to fall down.
    2. In ruzzia, putin have to postpone at least some payments for December for his army, due lack of money in russian budget.

    As AI is not something very useful for humanity, and used mostly for disinfo automation and for digital gulag like face recognition and other privacy violations, I decided to speculate a bit. So here is an idea. What if the whole AI bubble has been paid from secret sacks of Kremlin dirty money? This would explain few things at once:

    1. Mysterious obsessions of investors pushing money into AI for years without any signs of profit in the sight.
    2. Sudden “where are the money, Zina?” (“ะ“ะดะต ะดะตะฝัŒะณะธ, ะ—ะธะฝ?”) scream of investors, who suddenly demand money from projects whose purpose never were to get profit in the first place, what can be likened to wifebeater drunkard, demaning from poor wife money for booze because all salary has been flushed into booze shops and bar owner pockers.
    3. This “wake up” happening exactly at same time when Kremlin feels the smell of empty budget so strong.

    Let’s see how it will go forward. Regardless, these coincidences are amazing to see, even fascinating!

    Spock's Fascinating! face
    Fascinating!
    Fediverse Reactions
  • He lived long. Hope he prospered too.

    He lived long. Hope he prospered too.

    Patrick Stewart died. But his legacy will be here to inspire and give life lessons for everyone who wish listen and see.

    Hope he is in a world now which is closer to StarTrek ideals.

    Fediverse Reactions
  • Man granted first-of-its-kind religious exemption against mandatory AI use at work โ€” Humanist argues that offloading his thinking to LLMs violates his beliefs, Title VII accommodation protects employee

    Here is a bit of uplift news from Religious News Service and Tom’s Hardware :

    David Durman, a research administrator at the University of Kentucky (UK), has successfully argued that using AI violates his beliefs as a humanist and has received Title VII religious accommodation from university officials not to use the technology. According to the Religion News Service (RNS), Durman believes in “the human part of life,” which includes making his own decisions. However, he says that when the UK asked its employees to use AI, he felt that doing so would mean outsourcing his thinking to tools like ChatGPT and Microsoft Copilot, thus violating his deeply held beliefs.

    โ€œThe process and work involved in thinking through situations, through my work, through my ethics, through the way I handle other people, is a key component in being able to develop myself as a moral person,โ€ Durman told RNS in an interview. โ€œAnd offloading that labor, regardless of whether itโ€™s taxing or not, is undercutting my ability to be a moral actor.โ€ Because of this, the research administrator was granted a Title VII exemption under the Civil Rights Act of 1964, which prohibited employment discrimination based on race, color, religion, sex, and national origin. While humanism is often a non-religious philosophy or a worldview, federal courts have ruled that it qualifies as a religion.

    The American Humanist Association (AHA) assisted Durman with his request for the accommodation. โ€œThis is the first of its kind at the AHA and for humanism generally to exempt those who see AI use as flying in the face of their freedom of conscience,โ€ AHA staff attorney Alexandria Huiskens said to RNS. She also added, โ€œFor us, humanism is a comprehensive way of life. Itโ€™s built on inherent worth and dignity, and everyone should have room to exercise this comprehensive way of life at work the same way Christians do, or Muslims do.โ€

    Of course, Tom’s Hardware notes also this:

    It should be noted that while anyone can request a Title VII exemption, it will only be granted if the applicant has a deep moral conviction that could count as an article of faith. Aside from that, the law also states that the request should not place an โ€œundue hardship on the employerโ€™s business.โ€ So, even though Durman is no longer personally required to use AI tools for his tasks, he is still expected to attend meetings and cooperate with colleagues who use AI or to submit materials to AI tools, as needed.

    But anyway, this is the kind of news, which we need so much for a while.

    Fediverse Reactions
  • Dictatorship self-exposure in live (on the air)

    Here you can track the “Constitutional Court processing” – spectacle used to ban all large opposition political parties in Georgia country.

    Or if you prefer, you can watch it at youtube live, in Georgian, from Public Broadcaster:

    I don’t sure any further commentary from me necessary.

  • Happy Autumn Equinox

    Happy Autumn Equinox

    I know it is a bit late for such post, it is 23 September already.

    I just was a bit buried under pile of work lately so did not had a moment for post like this. But today I found this video from Autumn Equinox and Baltic Unity Festival in Kernavฤ—, Lithuania:

    https://www.reddit.com/r/BalticStates/s/JnvN0Ke9sK

    Fediverse Reactions
  • JavaScript lacks it

    JavaScript lacks it

    I already hear screeches and screams from the crowd of people who praise JavaScript for being a bunch of human-readable text files.

    But yes, I feel that JavaScript lacks some “compiled” form of npm packages, with following properties:

    • single file per package, either in its library or executable form with strong distinction between the both.
    • Option to completely embed dependencies and deliver them inside of such file.
    • Make these files including embedded dependencies 100% preparsed and compiled into some “ready to link and execute” form, without need to spend on parsing, except may be some validation like “we can not assign to a const” or “we can not call a number, boolean, or other non-function stuff” or what generally speaking should be checked when e. g. a Class file (compiled Java file) loaded. But this would be something like “module” files, with references either from current package or fully qualified with package name
    scoped://namespace/library@1.2.5/path/to/module.js
    not-scoped://library@1.2.5/path/to/module.js
    this-package://modules/path/to/module.js

    But these strings are just readable references, internally it could be a list of per-compiled-file strings, with integer representations across compiled library or executable file.

    These references would be used to form binary” indications, like this:

    push bool true
    push fnref modules(155) exportedFunction
    call

    If we can represent this as kind of “arguments stack” machine.

    Or if we would represent this as classic stack frames, it would be like

    begin_call 1 # 1 argument expected
    load_arg_bool 0 true
    call fnref modules(155) exportedFunction

    Yes, this would be some sort of “dirty assembly” with most minimal set of instructions, as the nature of JS do not have too much ways to optimize that.

    Few instructions like that:

    • add operand_1_value operand_2_value receiver_ref – 2 arguments expected, do same as + operator, literally. Including String concatenation and auto-conversion
    • similar operations can be defined like substract, multiply, divide, pow and pow2 (with only 1 argument needed as second argument is already built-in. Also mod operation, and so on.
    • A set of unary operations can be plusify(+value) ,minusify (-value) or invert (!value) operations. Also increment and decrement deserves own commands.
    • alloc_local_vars n – allocate n local slots for variables of function, should be first instruction of method. n can be 0, if empty method or only receiver_ref of all such operations giving a result are discard_ref (see below).
    • labels_map label_expr1 label_expr2 label_expr3 would be second command of compiled function where list of position alias or position null for label without alias, where position is zero-based command index in the function body. If there is no labels in compiled function somehow, no_op command should be there.
    • set_local n value – set a local slot to value, where value can be a number, null, undefined, boolean, bigint, and so on, and value can be described in some const value_literal, local_ref n to reference other local value, arg n to reference arg of currently happening function call.
    • prop_get obj_value prop_name_value reciever_ref for reading member or indexer access, and so on where obj_value and prop_name_value are something that resolves together to receiver_ref = obj_value[prop_name_value] for property reading.
    • prop_set obj_value prop_name_value new_value is command to set the property like obj_value[prop_name_value] = new_value.
    • if condition_ref true_label false_label where condition_ref is something that can be used to get a value, like const value_literal , local_ref n or arg n and these true_label and false_label are created with special command.
    • label command marks this line by a name relevant to function scope, like label 1 some_alias or simply label 2 when it is not necessary to know or display in debugging the label name. The true_label and false_label are label_ref n expression or label_ref alias expression. Technically label is same as no_op command.
    • no_op well it just does nothing and can be used for empty code blocks, and at least no_op should be included into function body
    • the const_ref n would reference a constant, let it number or string, or other scalar value known at compile type, let it be property name, class name, a 0 in n > 0 expression or a string from template like "Hello ${name}".
    • undefined, null, true and false, as 0 and 1 are always known variants usable where expression should be, via const_ref null or const_ref true. Binary representations can have special bytecodes for such cases for const_ref true or const_ref false.
    • return value and return_void are return commands, where return_void is just more explicit analog of return const undefined. Returning from the topmost code of module would be an invalid operation.
    • call function_value receiver_ref would call a function, going into it, and return value would be assigned to value receiver, let it be local value, or object property reference prop_ref obj_value prop_name_value .
    • new_obj constructor_value receiver_ref would call a constructor with all that neuances and returned value would be assigned to receiver_ref which is same thing as for call command.
    • new_array length_value receiver_ref – allocates new array, usually with 0 length, what can be optimized with new_empty_array receiver_ref type of command
    • There is no such thing as ignored return value , technically it implemented by discard_ref what means a special value to be used for receiving of return values or results of other operations outcome of which never used.

    All this may not necessary be very detailed ultra-optimized instruction set, like 10-20 variants of add a b command, like add_int8 , add_uint32 or add_float64 with int8_to_float64 and other such conversion commands. This is not about replacing WebAssembly. It is about these two changes:

    • reduce size of node_modules
    • eliminate these post_install and pre_install scripts. The whole process of library installation into node_modules should consist of copying a library file into node_modules under special paths like @scope/library/compiled.jslibrary or library/compiled.jslibrary. This can include some check for semantic correctness, like do not use const undefined or const null as obj_value in prop_get or prop_set, or the label_ref should point to label declared in same function with label command, or never should use discard_ref as source of values.
    • Add support for libraries signing.
    • Allow to embed small, say less than 32 kb, (or optionally – all) dependencies into bullt library.
    • Speed up node applications startup
    • Allow to build single-file executables, or combination of launcher-file + main_app_library file.

    This would require changes at node_gcs, or at least custom loader for such libraries from modules, understanding these special imports.

    import {fancyFunction} from "scoped://libraries/@scope/library_name";
    import {fancyFunction as otherFancyFunction} from "non-scoped://libraries/library_name";

    For browser it would be something like

    import {fancyFunction} from "/assets/code_libraries/library.jslibrary";

    Or it would be

    <script type="js-library" src="/assets/code_libraries/library.jslibrary

    But this would require something like browser entry in the package.json and special markers in the header of library file.

    Whoa you read this far?

    Congratulations! You are at least a very-very patient person!

    What do you think about this idea of “binarized” JS libraries and executable files for JavaScript?

    I know there is WASM files and all that tooling with emscripten available, but this is not what I talking about, and it is impossible to point at WASM file as module or main or an NPM package, or load WASM file with <script src="/assets/scripts.wasm" type="webassembly" src_memory="/assets/default_mem.wmem" > , not speaking of access to window or worker context.

    PS: post illustration is photo of Java hardware processor made in Poland in 2011. Today I accidentally bumped into that example of computer archaeology looking for an illustration for this post

  • The reputation of United States

    Aral Balkan

    What if I were to tell you that Trump could knock any (or all) of over 20 millionยน European web sites off the Web tomorrow by picking up the phone to one US organisation: Letโ€™s Encrypt.

    We desperately need an independent, not-for-profit ACME provider in the EU paid for by our taxes.

    CC @EUCommission

    ยน This is just based on one firmโ€™s analytics (trends.builtwith.com/websiteli). Others put LE use at 50-60% of all web sites.

    September 2, 2026, 10:11 349 boosts 335 favorites

    The whole idea that famous Let’s encrypt is some risk just because some voters were concerned so much about gas and groceries prices so much they elected a fascist bastard, is so…. “who could expect this 10-20 years ago?” thing.

    I bet Mozilla and Google would lobby the @EU_Commission against this important aspect of EU digital sovereignity.

    Yes, EU would need own certificates authority. But not because it is better than other centralized certificates authority. But because it would be easier and faster to do compared to transition to some decentralized alternative of internet where people exchange contacts like cards with addresses and phones in the past, and sites admins and authors add themselves in some well-respected human-reviewed catalogs of contact cards like “Yellow Pages”, as replacement for current pyramidal DNS & SSL certificates of today.

    I am not sure how is the best way to deal with all that, but it seems it would end need with some kind of that address/phone book for websites described in the Web Numbers article… But even without the central authorities of SSL.

    May be it would be something like that: If you are about to navigate into website, it depends on how it navigated:

    • from contact address book? Trust if same certificate as before.
    • from typing address in address bar or new certificate? Broadcast question for trust across peer to peer networks, something like “who trusts 1234:44444 declaring to be tasty.blog and certificate signature 12AB45DE3WXZ”?
    • Navigating to new website missing in known sites/contacts library from a known site? Ask known site for trust about site you navigate into the first time, or broadcast trust query, or both.

    If site or certificate is new, then it would be an UX quest to solve, to represent results of trust query to a non-techy person.. Of course if there are contacts that are trusting that hypothetical tasty.blog website, they can be shown in the related popup? But would it be some violation of their privacy to show that person, let it be Malory, the fact that Jane and Alex trust this website identity? Even if at UX level, “3 your contacts can confirm identity of this website”?

    Making all websites a sort of invite only, like “Mary gave you link to this tasty.blog website. Add it to your address book?”… Will it ever work?

    I know this would be completely new internet that is basically semi-compatible with standard one, and for today browser it would be similar to visiting first time a site with self-signed (or semi-self-signed with not-trusted root) certificate. Unless some extension would be created that would allow such kind of address-book kind of DNS & SSL functionality. But such extension of course would be incompatible even with old extensions APIs, and with newer more restricted too… And having some local proxy would end up with auto-transform of all links into

    //For site from your local address book
    https://127.0.19.45/from_book/site_name/page_path?a=1
    //for new site that is not in a book - ip address, port, and certificate hash
    https://127.0.19.45/new/1.99.11.15/443/AB444ZYC...3425/page_path?a=1

    I just tried to imagine how it (internet without centralized SSL and DNS but with these address books or Web Numbers) would look like without creating brand new browser, even with Servo rendering engine, using the browsers we already have.

    To some extent it resembles how the GNS (GNU Net domain name system) works?