TheTrueLinuxDev

joined 1 year ago
[–] TheTrueLinuxDev@beehaw.org 1 points 1 year ago

Obviously there would be exceptions, but in general for the last few decades, we have been mainly engaging conflicts outside of the US. So until it is in our home territory, it a good idea to put a limit on the military and divert fund to education. Don't Let the Perfect Be the Enemy of the Good

[–] TheTrueLinuxDev@beehaw.org 16 points 1 year ago (2 children)

I would say democracy is less of a problem, the problem is lack of accountability at least on constitutional level. One of the biggest thing I'd add to the constitution is a rule that mandates for every dollar we spent on the military, another dollar must be spent on education.

[–] TheTrueLinuxDev@beehaw.org 34 points 1 year ago (1 children)

I knew putting Ubisoft on the blacklist was a good idea a decade ago. Everyone should blacklist them as well, just let them die as a company.

[–] TheTrueLinuxDev@beehaw.org 3 points 1 year ago

Something like this requires a constitution amendment...

[–] TheTrueLinuxDev@beehaw.org 11 points 1 year ago

I would say Project Zombiod the closest one on that list. Just need a few mods to raise the hunger rate, more comprehensive nutrient stats, and farm difficulty scaling. The game already laid out most of the groundwork.

[–] TheTrueLinuxDev@beehaw.org 2 points 1 year ago

Yeah, I agree, it looks very lacking overall.

[–] TheTrueLinuxDev@beehaw.org 7 points 1 year ago (2 children)

It would make more sense if community just set up contracts amongst themselves to pool together with monthly community fund added to the pile and if something happened, then a clause in the contact begins and facilitate the steps to release fund for that person. Contract could set up arbiter (paid hourly) to determine whether the claim is covered by the contract agreed by the subscribers.

The major difference in this model is basically that the perverse incentive is removed whereas commercial insurance have every incentives not to pay out to claimants which defeats the purpose of insurance in the first place.

I don't know much about insurance laws or contracting to say for sure, but part of me is wondering why we haven't popularize this idea yet.

[–] TheTrueLinuxDev@beehaw.org 1 points 1 year ago

Yep, streamlining the process to write a new compiler. Most compiler development utilize something like Bison/Flex or by handwriting their own lexer/parser, but those things doesn't generate AST tree and you still have to read/modify that AST tree before reading it to generate the final resulting code.

The sheer absurdity in scale of development increases when you realizes that you also have to do the same for LSP server.

Melosynthos is came up with to think about streamlining all of this in one unified workflow.

[–] TheTrueLinuxDev@beehaw.org 3 points 1 year ago* (last edited 1 year ago)

This is a Pandora box situation, when potential use for malicious purposes on AI on the ponderance of evidence outweigh the goods, one have to conclude that it is necessary to ban it from the purpose of monitoring. This have immense impact on disabled workers for instance.

[–] TheTrueLinuxDev@beehaw.org 3 points 1 year ago* (last edited 1 year ago)

It's actually superior to ChatGPT, because of much higher context memory of about 100,000 tokens whereas GPT-4 only got at most 32,000 tokens. Plus you can upload doc and then query on it.

 

This one is something that were brought up a lot by developers including me who are very weary about corporations profiting off of our work for free and this basically put us off from contributing to open source in general.

We get a bunch of dialogues about this such as:

Developers like me: "Many of us who create are concerned about our work being exploited. The possibility of corporations profiting from our open-source contributions without giving back to the community disincentivizes us from participating in such endeavors."

Open-Source Advocates: "The AGPL exists to mitigate such concerns. It requires derivative works to also be open-source."

Developers like me: "While I appreciate the intention behind AGPL, there is a loophole - a 'condom code' if you will. Even though Linux Kernel prevents such strategies by refusing to merge these changes and that it's difficult for a singular corporation to force an adoption of a forked version of Linux Kernel, a corporation can fork our much smaller project however and introduce such legal bypass to the copyleft restrictions. This bypass can be justified by them under the guise of extending the software's capabilities with a plugin interface or an interprocess communication protocol layer, similar to how PostgreSQL allows User Defined Functions. However, I must caution that I'm not well-versed in the legal intricacies."

When bringing up on non-commercial clause for licensing

Open-Source Advocates: "Disallowing commercial use of your project contradicts the principles of open-source."

Developers like me: "Well, then perhaps we need a new term, something like 'Open Code Project'. We can create projects that encourage collaboration and openness while also restricting commercial exploitation."

So I created this post, because we do need to discuss on a path forward for Open Source in general knowing that corporation can shirk around this restriction and discourage developers like me from participating in open source or open code projects.

 

Invading Russian forces have ceased the transmission of radiation sensors at the occupied Zaporizhzhya Nuclear Power Plant (ZNPP) to Ukraine, Chief State Inspector for Nuclear and Radiation Safety of Ukraine, Oleh Korikov, said at a briefing on June 14.

 

This thread delves into contemplating the concept of "Melosynthos," more aligned towards being a compiler generator rather than strictly a parser generator.

Initially, I was engrossed in a Python Lark fork while concurrently developing an unique shader language, primarily for Vulkan Compute (SPIR-V, to be precise), aiming at Machine Learning (intending to replace the Pytorch framework). Python Lark's parser generator appealed to me due to its simplicity-centric grammar syntax, prompting me to create a fork in C language. This new version was designed to support a top-down LL(k) parser algorithm and generate corresponding AST trees.

Upon successfully getting it to function, it dawned on me how complex and challenging the iterative development of a compiler could be. The task of designing a programming language and writing the compiler implementation, along with the eventual Language Server Protocol, seemed daunting for a single developer.

This realization sparked the question - could we streamline the entire process, right from the parser generator to the compilation output target? This led to the inception of the Meta-AST and subsequently, the Melosynthos project.

The Meta-AST scripting language is essentially conceptualized to interact with the generated raw AST tree, providing traversal and visitor syntax. This enables users to enhance, refine, or rectify the "Raw" AST with more comprehensive data, such as type information or context-free grammar support.

The Melosynthos compiler generator project primarily involves three stages: the standard Backus-Naur Form grammar for generating Lexer/Parser and raw AST, the Meta-AST script interacting with the AST, and the final compilation output reading the AST and printing it out.

Envision a scenario where everything is streamlined from the start, enabling the generation of any dialects or features in the language as a full compiler in the output, accompanied by an LSP server. Despite searching extensively, I couldn't find any existing tools to accomplish this.

Consequently, I began musing about the potential structure and function of Meta-AST, emphasizing its readability and familiarity for compiler designers. It borrows elements from Regex (like "^" for the start of an array and "$" for the end), functional programming for pure function transformation and analysis, and differentiation between "dialects."

Consider the following example of an AST tree represented in JSON:

{
    "rule": {
        "HELLO": { "Content": "Hello", "Line": "1", "Col": "1" },
        "WORLD": { "Content": "World", "Line": "1", "Col": "6" },
        "SET_OF_EXCLAIMATION_MARK": [
            { "EXCLAIMATION_MARK": { "Content": "!", "Line": "1", "Col": "12"} },
            { "EXCLAIMATION_MARK": { "Content": "!", "Line": "1", "Col": "13"} },
            { "EXCLAIMATION_MARK": { "Content": "!", "Line": "1", "Col": "14"} }
        ]
    }
}

For a basic analysis of this AST tree, we could attribute the AST with the following script:

local myAST = .; // You are making a copy of the current AST
myAST.rule.SET_OF_EXCLAIMATION_MARK.summarize(
    MarkCount = this.Count,
    StartColumn = this[^].Col,
    EndColumn = this[$].Col,
    StartLine = this[^].Line,
    EndLine = this[$].Line
);

This would add counts for exclamation marks, start and end columns for this particular rule in the grammar, and the start and end lines for diagnostic purposes.

I share this here to muse over the concept and encourage some discussions surrounding it. I hope it sparks some interests in this topic.

view more: next ›