Faresh

joined 2 years ago
[–] [email protected] 22 points 8 hours ago* (last edited 8 hours ago) (2 children)

Writing it in assembly would make it pretty much the opposite of portable (not accounting for emulation), since you are directly giving instructions to a specific hardware and OS.

[–] [email protected] 1 points 9 hours ago

Thanks! Yeah, typescript was just an example that I gave because it was made to tackle the perceived problems in javascript. I never used it myself and just mentioned it to explain the idea I was getting at.

[–] [email protected] 3 points 1 day ago* (last edited 1 day ago) (1 children)

toothbrush was talking both about free software and open source and you claimed that Stallman disagreed with the notion that free software must allow to be used without restrictions (which I misread as run in toothbrush's comment and only now realized that they weren't talking about running)

That's why I talked about free software, but I'm sure at least the commercial use part also applies to open source (since business is mentioned as an example in the point about discrimination against field of endeavor in the OSD)

[–] [email protected] 6 points 1 day ago (3 children)

https://www.gnu.org/philosophy/free-sw.html#four-freedoms

What is Free Software? - GNU project

The four essential freedoms

A program is free software if the program's users have the four essential freedoms: [1]

  • The freedom to run the program as you wish, for any purpose (freedom 0).
  • The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). Access to the source code is a precondition for this.
  • The freedom to redistribute copies so you can help others (freedom 2).
  • The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.

I don't know however if it is illegal to use the source code without having bought the game first, so I don't know if toothbrush is correct with their point.

Something that I find could prevent it from being called free or open-source software is the fact that you are not allowed to make derivative works for comercial use.

You may not alter or redistribute this software in any manner that is primarily intended for or directed toward commercial advantage or private monetary compensation. This includes, but is not limited to, selling altered or unaltered versions of this software, or including advertisements of any kind in altered or unaltered versions of this software.

-- https://github.com/flibitijibibo/RogueLegacy1/blob/main/LICENSE.md

“Free software” does not mean “noncommercial.” On the contrary, a free program must be available for commercial use, commercial development, and commercial distribution. This policy is of fundamental importance—without this, free software could not achieve its aims.

-- https://www.gnu.org/philosophy/free-sw.html#selling

[–] [email protected] 16 points 1 day ago (4 children)

Btw, what is a non-local RSS reader? I have come across multiple that RSS readers that advertise being "self-hosted" and I'm confused about that since in my mind RSS readers are simply clients that periodically query different servers for an .rss file, so I'm confused about where there is anything to host besides the host of the .rss feed.

[–] [email protected] 1 points 2 days ago* (last edited 2 days ago) (3 children)

I recognize you and your profile picture from some quite popular Luanti mods. :D I have a question regarding making content for Luanti:

I've been interested in maybe some day making a game for Luanti, but I don't really like Lua (I for example imagine that undefined variables evaluating to nil rather than directly throwing an error, identifiers by default being public, and absence of static checking of possibility of null dereference before runtime to be things that can cause quite some annoying bugs). Is there some popular X to Lua transpiler that you've heard people using? Something like what Typescript is to JS or Kotlin/Clojure/Scala to Java (not exactly the same thing since they all compile directly to jvm bytecode rather than java, but you get the point).

I hope I'm not insulting you by asking such a question.

[–] [email protected] 1 points 3 days ago* (last edited 3 days ago)

At least when I did some Advent of Code challenges with Kotlin, I didn't need to touch common. I was able to use java classes (which aren't available in common) simply by importing them and I only had a single code file in the project.

[–] [email protected] 1 points 3 days ago

Yeah I also never reached the end, though I imagine if playing multiplayer, with enough players and time, that then at some point there won't be any untouched land.

[–] [email protected] 38 points 3 days ago

Potentially?

 

cross-posted from: https://lemmy.ml/post/21390036

I finished reading the Kotlin documentation (§Concepts) and want to do something now. I was thinking about making a desktop app with a GUI. For that people seem to recommend Jetbrains Compose.

It seems however that the guides (https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-create-first-app.html) to set up such a project assume I have more than one target. I however don't and thus don't need to divide my project into common code, ios code, wasm code, etc. I only need to compile my project for the JVM, since I'm only intending to support Linux and BSD. I don't have much experience with the Java/Kotlin-centric build systems and I would like to avoid investing too much time into it (since for now I would like to spend more time writing that app, preferring to learn Gradle later in my journey), so I thought about just generating a template as recommended by the guides (using https://kmp.jetbrains.com/) and to just remove everything that doesn't matter for my project. However, since I don't have much experience with Gradle yet, I don't know what exactly the changes are that I need to make to the build script

Generated code

import org.jetbrains.compose.desktop.application.dsl.TargetFormat

plugins {
    alias(libs.plugins.kotlinMultiplatform)
    alias(libs.plugins.jetbrainsCompose)
    alias(libs.plugins.compose.compiler)
}

kotlin {
    jvm("desktop")
    
    sourceSets {
        val desktopMain by getting
        
        commonMain.dependencies {
            implementation(compose.runtime)
            implementation(compose.foundation)
            implementation(compose.material)
            implementation(compose.ui)
            implementation(compose.components.resources)
            implementation(compose.components.uiToolingPreview)
            implementation(libs.androidx.lifecycle.viewmodel)
            implementation(libs.androidx.lifecycle.runtime.compose)
        }
        desktopMain.dependencies {
            implementation(compose.desktop.currentOs)
            implementation(libs.kotlinx.coroutines.swing)
        }
    }
}


compose.desktop {
    application {
        mainClass = "org.example.project.MainKt"

        nativeDistributions {
            targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
            packageName = "org.example.project"
            packageVersion = "1.0.0"
        }
    }
}

What resources should I look at to quickly create a kotlin Compose project targeting only the JVM? (maybe a gradle crashcourse????)


Unrelated, but if you want you can also share your opinion regarding the use of Compose vs JavaFX vs Swing for this situation

 

I finished reading the Kotlin documentation (§Concepts) and want to do something now. I was thinking about making a desktop app with a GUI. For that people seem to recommend Jetbrains Compose.

It seems however that the guides (https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-create-first-app.html) to set up such a project assume I have more than one target. I however don't and thus don't need to divide my project into common code, ios code, wasm code, etc. I only need to compile my project for the JVM, since I'm only intending to support Linux and BSD. I don't have much experience with the Java/Kotlin-centric build systems and I would like to avoid investing too much time into it (since for now I would like to spend more time writing that app, preferring to learn Gradle later in my journey), so I thought about just generating a template as recommended by the guides (using https://kmp.jetbrains.com/) and to just remove everything that doesn't matter for my project. However, since I don't have much experience with Gradle yet, I don't know what exactly the changes are that I need to make to the build script

Generated code

import org.jetbrains.compose.desktop.application.dsl.TargetFormat

plugins {
    alias(libs.plugins.kotlinMultiplatform)
    alias(libs.plugins.jetbrainsCompose)
    alias(libs.plugins.compose.compiler)
}

kotlin {
    jvm("desktop")
    
    sourceSets {
        val desktopMain by getting
        
        commonMain.dependencies {
            implementation(compose.runtime)
            implementation(compose.foundation)
            implementation(compose.material)
            implementation(compose.ui)
            implementation(compose.components.resources)
            implementation(compose.components.uiToolingPreview)
            implementation(libs.androidx.lifecycle.viewmodel)
            implementation(libs.androidx.lifecycle.runtime.compose)
        }
        desktopMain.dependencies {
            implementation(compose.desktop.currentOs)
            implementation(libs.kotlinx.coroutines.swing)
        }
    }
}


compose.desktop {
    application {
        mainClass = "org.example.project.MainKt"

        nativeDistributions {
            targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
            packageName = "org.example.project"
            packageVersion = "1.0.0"
        }
    }
}

What resources should I look at to quickly create a kotlin Compose project targeting only the JVM? (maybe a gradle crashcourse????)


Unrelated, but if you want you can also share your opinion regarding the use of Compose vs JavaFX vs Swing for this situation

[–] [email protected] 0 points 3 days ago

I'm sure it will once the website has been changed and new players begin calling it that.

[–] [email protected] 0 points 3 days ago (1 children)

I'm so confused when people say that. It's a short name without any difficult consonant clusters. What in it doesn't roll off the tongue?

 
 

cross-posted from: https://lemmy.ml/post/13221450

This is a of a post made during a time where outgoing federation for lemmy.ml was broken. I hope lemmy.ml readers will forgive me for shoving my filthy little words under the shining gaze of their precious and observant eyes for a second time.


I have a Kindle Paperwhite (7th generation). (Stallman weeps) It appears people generally customize their kindle beyond Amazon's original design by jailbreaking it. But I was wondering if I could replace the entire system on the kindle by a new one, for even more hacking fun.

It appears Kindle Paperwhites run on ARM processors, so there should be plenty of compatible software. However, it appears flashing the ROM of kindle only appears in the context of something called the Kindle Fire. Why is that? Is there any reason ROM flashing for the paperwhite kindles isn't common? The only reasons I could think of is that disassembling and reassembling the kindle paperwhite is kinda annoying (especially with the glue holding the case together) and that maybe not everyone has a board to externally flash ROMs. I've also thought that maybe the ROM is write-protected or that the software is signed and that the Kindle will refuse to boot off of anything that hasn't received Jeff's blessing. Is there any existing guide on flashing a custom ROM? Have any ROMs been created already?

Maybe my foolish self has not searched good enough and hasn't found the discussions on ROM flashing of other kindle models, but in any case I think it's good to have this discussion on here on Lemmy too even if it potentially already exists somewhere else on the internet, so that other fools like me may come across your wisdom and be enlightened.

If this is complete and utter nonsense what I'm babbling about, can I at least somehow download the firmware and software running on the kindle from the device, so that I may poke and probe it with my disgusting, dirty little fingers, defiling Amazon's intellectual property?


I hope that you have a good day and that the following days be good too. If I am stupid for even mentioning the idea of a good day, I wish that some day our suffering may end and that a good day be something we all can look forward to.

 

This is a of a post made during a time where outgoing federation for lemmy.ml was broken. I hope lemmy.ml readers will forgive me for shoving my filthy little words under the shining gaze of their precious and observant eyes for a second time.


I have a Kindle Paperwhite (7th generation). (Stallman weeps) It appears people generally customize their kindle beyond Amazon's original design by jailbreaking it. But I was wondering if I could replace the entire system on the kindle by a new one, for even more hacking fun.

It appears Kindle Paperwhites run on ARM processors, so there should be plenty of compatible software. However, it appears flashing the ROM of kindle only appears in the context of something called the Kindle Fire. Why is that? Is there any reason ROM flashing for the paperwhite kindles isn't common? The only reasons I could think of is that disassembling and reassembling the kindle paperwhite is kinda annoying (especially with the glue holding the case together) and that maybe not everyone has a board to externally flash ROMs. I've also thought that maybe the ROM is write-protected or that the software is signed and that the Kindle will refuse to boot off of anything that hasn't received Jeff's blessing. Is there any existing guide on flashing a custom ROM? Have any ROMs been created already?

Maybe my foolish self has not searched good enough and hasn't found the discussions on ROM flashing of other kindle models, but in any case I think it's good to have this discussion on here on Lemmy too even if it potentially already exists somewhere else on the internet, so that other fools like me may come across your wisdom and be enlightened.

If this is complete and utter nonsense what I'm babbling about, can I at least somehow download the firmware and software running on the kindle from the device, so that I may poke and probe it with my disgusting, dirty little fingers, defiling Amazon's intellectual property?


I hope that you have a good day and that the following days be good too. If I am stupid for even mentioning the idea of a good day, I wish that some day our suffering may end and that a good day be something we all can look forward to.

 
 

People who struggled with procrastination and have now stopped, what made you stop procrastinating? What do you think were the factors leading or contributing to your past procrastination and how did you stop or improve the situation?

Please don't answer with the "I'll tell you later" joke.

 

Most introductions to unit testing give very simple examples of functions that simply receive some arguments and produce a result. However a lot of software has to read input from external sources, such as from the internet, from the file system, or from the user during its execution. How does one write tests for such software?

For simple software that only reads a few files from the file system, I imagine can be tested by writing some files for the test to give to the tested program, but what if it becomes more complex? Or what if you are trying to test a web scrapper for a website, would the tests run a web server and simulate the targetted website? Or for the GUI, how would one test that the user can see what they are supposed to see, when they click a certain way at a certain time?

Maybe the parts that read the data shouldn't be tested and only the functions that code relies on should be tested? I don't know.

 

I don't see the backups in my drive, but I also want a copy of them on my desktop.

 

Is there any way to use Emacs for collaborative editing, while there is at least one person who doesn't use emacs, but rather some popular IDE? It should also be possible to edit multiple files at the same time.

Other solutions seem to expect all people to be using Emacs.

 

Bonus if it isn't just mainly carbon-hydrates and if the ingredients don't need to be used immediately (unless the meal itself when done can last for many days).

I'm getting tired of tuna masala spaghetti.

 
view more: next ›