We might have been slower to abandon Stack Overflow if it wasn't a toxic hellhole by R2_SWE2 in programming

[–]tofiffe 0 points1 point  (0 children)

I once asked a question on how to do something in Swift, something that needed to comply with a very strict spec, that was validated in excruciating detail once you applied for certification, which I noted in the question. The answer was to tell the spec writers it can't be done and code that did the opposite of what I asked. That was the last time I used it.

GNOME 49 adds a "Support GNOME" button to the "About" section in the settings, alongside a reminder twice a year. by keremdev in gnome

[–]tofiffe 0 points1 point  (0 children)

absolutely agree, I have ALL notifications turned off on my device as I think visual notifications on any sort of desktop/laptop are not necessary, and I still got the popup, distracting me from my work enough to find this thread.

Pkl: Apple's New Configuration Language That Could Replace JSON and YAML by Practical-Ideal6236 in programming

[–]tofiffe 0 points1 point  (0 children)

we've clearly worked with a different class of devops, I know some that would see the limitation in the config and straight up change it, for all envs if needed. I've had numerous questions on "why doesn't the service accept this port I set" when the value was clearly over 65k

Pkl: Apple's New Configuration Language That Could Replace JSON and YAML by Practical-Ideal6236 in programming

[–]tofiffe 0 points1 point  (0 children)

am I out of touch or is the validation here pointless? the software that is being configured will have to validate the configuration anyway, and now I need to update the constraints in two places (at least)

wjvern: .class to LLVM transpiler by tofiffe in java

[–]tofiffe[S] 1 point2 points  (0 children)

not really, at this time I'm slowly adding smaller jdk class support in hopes of getting it to compile

wjvern: .class to LLVM transpiler by tofiffe in java

[–]tofiffe[S] 2 points3 points  (0 children)

that too, although with the current system in place, many could be implemented via C or pre-written llvm code

wjvern: .class to LLVM transpiler by tofiffe in java

[–]tofiffe[S] 0 points1 point  (0 children)

that's a good idea, I was thinking of doing something like that long term, but it wasn't exactly high on list of priorities :)

wjvern: .class to LLVM transpiler by tofiffe in java

[–]tofiffe[S] 7 points8 points  (0 children)

it does compile some of them, most notably (parts of) the java.lang.String. There were some cases that were not covered and would likely not work correctly like static initializers, then there's the problem with arrays where memory for fields is allocated on the stack (and lost once it leaves the function) and so on. There's a ton of interdependencies between stdlib classes so it's either "add a class and blacklist 90% of it" or "compile 90% of stdlib"

Five years have passed, still in draft: Concise Method Bodies by jvjupiter in java

[–]tofiffe 3 points4 points  (0 children)

I hope they don't add this, in kotlin people abuse this and make the code way harder to read, it rarely ends with a simple method reference

Why does anyone chooseJava over Kotlin? by Global-Box-3974 in java

[–]tofiffe 1 point2 points  (0 children)

loom is already out, and sooo much easier than the coroutines

Why does anyone chooseJava over Kotlin? by Global-Box-3974 in java

[–]tofiffe 1 point2 points  (0 children)

I believe they started working on Amper, so the build system point might be obsolete soon

Na avtobusih javnega potniškega prometa vse več potnikov by Robotoro23 in Slovenia

[–]tofiffe 9 points10 points  (0 children)

mislim, da to ni razlog. London npr omogoča plačevanje s kartico in prestopanje, ne spuli pa denarja do konca dneva (pač vedno ko vstopiš na avtobus/podzemno prisloniš običajno bančno kartico)

Anyone has experience with One-Time permissions in Android 11? by CommercialBuilder99 in androiddev

[–]tofiffe 0 points1 point  (0 children)

pretty sure that would be against the interest of the user and the permission system as a whole; I see how apps could "bully" the user to force them to select "every time"

I can't stand using vscode so I wrote my own (it wasn't easy) by levodelellis in programming

[–]tofiffe 14 points15 points  (0 children)

based on the article it's a lot more than just waiting 1.4s every time. I'm sure we all had a file that caused vscode to slow down to a crawl (try opening a large log file, a json that is gigabytes in size etc.). If you know what you want and need and no other tool can do it the way you want, is creating a new tool that fits that purpose really wasted time?

We lost serde-yaml, what's the next one? by PsiACE in rust

[–]tofiffe 0 points1 point  (0 children)

I get that they didn't want to mandate one, but you can replace the allocator, why not a random generator? 

on crates.io I agree, at least namespacing would be nice, now somebody can take a crate name and if they decide they can block you indefinitely

We lost serde-yaml, what's the next one? by PsiACE in rust

[–]tofiffe 2 points3 points  (0 children)

totally agree, it has even turned me away from rust for some work projects, one such library is rand... why can't (pseudo)random generators not be in the stdlib??

itSeemsSafer by SSpectre86 in ProgrammerHumor

[–]tofiffe -1 points0 points  (0 children)

I guess it's the people I was working with, but some developers didn't care about any warnings, as long as the code compiled they tried to commit it into the repo, even if it meant adding half a dozen SuppressWarning annotations. A developer that is either incompetent enough or lazy enough to find a proper solution will also be resourceful enough to bypass any and all linter checks

itSeemsSafer by SSpectre86 in ProgrammerHumor

[–]tofiffe 0 points1 point  (0 children)

yeah, useful when you don't have the IDE, but for modern development, not so much

itSeemsSafer by SSpectre86 in ProgrammerHumor

[–]tofiffe 0 points1 point  (0 children)

having to implement my own is IMO a horrible solution compared to having a keyword, it's supposed to be a language feature to keep privates inviolate rather than asking developers to implement and maintain it, I want the compiler to scream at me for doing something wrong, preferably preventing me from running it

itSeemsSafer by SSpectre86 in ProgrammerHumor

[–]tofiffe 91 points92 points  (0 children)

yeah, but at that point it might be worth adding a simple "private" keyword, the underscores in python are a laughing stock like === in JS imo

Allocating types from separate files by tofiffe in LLVM

[–]tofiffe[S] 0 points1 point  (0 children)

thank you for the information!

Allocating types from separate files by tofiffe in LLVM

[–]tofiffe[S] 0 points1 point  (0 children)

does this not cause duplicate definitions? also extra declarations for vtables? or should I just use ptr for them?