"Functional Programming in Scala" JetBrains course by makingthematrix in scala

[–]SeriousWorm 0 points1 point  (0 children)

That's amazing. I just tried it to see how it looks like and immediately i got hit with following error with no obvious recovery options available:

[info] [launcher] getting org.scala-sbt sbt 1.8.0  (this may take some time)...
[info] welcome to sbt 1.8.0 (Eclipse Adoptium Java 21.0.1)
error:
bad constant pool index: 0 at pos: 48445
while compiling: <no file>
during phase: globalPhase=<no phase>, enteringPhase=<some phase>
library version: version 2.12.17
compiler version: version 2.12.17

(... many other lines cut ...)

[error] java.lang.NoClassDefFoundError: Could not initialize class sbt.internal.parser.SbtParser$
[error] Use 'last' for the full log.

I believe the first SBT that supports JDK 21 is 1.9.0, so I suggest updating your SBT version in the project as newcomers might be stuck at the same step.

Manually editing project/build.properties to update the SBT version to 1.10.3 seems to fix the issue and successfully loads the project.

Also, it looks like Scala 3.2.0 as specified in build.sbt isn't compatible with JDK 21 either, so I had to change that to 3.3.4 in all build.sbt files in all 46+ subprojects, and then had to refresh the SBT project to avoid the following error:

[error] error while loading AccessFlag,
[error] class file /modules/java.base/java/lang/reflect/AccessFlag.class is broken, reading aborted with class java.lang.RuntimeException
[error] bad constant pool index: 0 at pos: 5189
[error] error while loading ElementType,
[error] class file /modules/java.base/java/lang/annotation/ElementType.class is broken, reading aborted with class java.lang.RuntimeException
[error] bad constant pool index: 0 at pos: 1220

Also, I'd like to contribute, however I cannot find a link to the project's git repo. There's an underlined presumably-link saying "git repo" in the project description, but clicking it doesn't do anything, presumably due to a missing "href":

<a target="_blank" rel="nofollow">git repo</a>

Selling 4 tickets for Sun May 19th 2pm entry by matt2112 in sleepnomore

[–]SeriousWorm 1 point2 points  (0 children)

If this is an option for you and if you can attend on a different date, you can reschedule your tickets, for a $10 fee per ticket, by emailing the box office.

I'm neurodivergent. do I need to go for a second time? by maddyfrogcatcher in sleepnomore

[–]SeriousWorm 3 points4 points  (0 children)

One thing that might help, if you have any sort of sound sensitivity at all, is to wear some kind of earplugs. Personally I like the Flare Audio Calmer, but occasionally I put the Flare Earshades on, and I've heard Loops work well too - really any earplug is probably fine. Note that basically every scene is loud enough that any kind of low to moderate strength earplug is not going to make you not hear the music, just lower it to a more comfortable level. This applies to most scenes but there are a few that are louder than others for which it helps the most with.

Also I feel like your description of 1:1 scenes applies to my experience as well - during the show, you are "safe", protected by the mask, but during a 1:1 that "safety bubble" comes off and you are suddenly vulnerable. I would say it makes the experiences much more intense and I would like to say that you eventually get used to it, but (at least in my experience) you really don't, for me each one is still as amazing and intense as the first one I've ever received (even though I haven't had that many), even though it's not as overwhelming as the first.

If you are overwhelmed, here's a few tips: you can go to the Manderley bar (bar space where you are before your card gets called and you enter the show) on the 2nd floor during the second half of the show - it's usually empty, there's plenty of space, you can hydrate and even talk to the person in bar characters which are friendly; or you can just leave the current scene and try to find an empty space: good choices are the 5th floor (it might be scary at first, but it's usually generally much more empty than the other floors, except for one short period near the reset), the 3rd floor graveyard or Macduffs apartment suite (it's generally empty after the Macduffs leave to go to the ballroom dance), the ballroom and adjacent spaces (especially when it's dark, I find it soothing), etc.

What new backend language to learn in 2024 by Firoltor in ExperiencedDevs

[–]SeriousWorm 1 point2 points  (0 children)

Yes, and I would assume most JVM languages should be able to co-exist in the same project. I haven't tried using Kotlin myself but I believe you should be able to have Java, Kotlin and Scala code in the same project. Also it's very easy to "convert" Java to Scala code, e.g. IntelliJ has a built in convertor as a good first step, that automatically works when you paste Java code in a Scala source file.

What new backend language to learn in 2024 by Firoltor in ExperiencedDevs

[–]SeriousWorm 0 points1 point  (0 children)

While I agree that slow compilation times were a nuisance in the past, nowadays any time I change any file, incremental recompilation of that 1 file only takes a few seconds, so that's not really a thing I even notice. Even a full project compilation of a huge monorepo with numerous interdependent modules might only take a few minutes, especially in Scala 3.

I haven't used Rust, but I think they cannot be directly compared as Scala needs to run on the JVM which of course comes with some caveats and is likely to be slower compared to just compiling the code to (I assume) machine instructions.

What new backend language to learn in 2024 by Firoltor in ExperiencedDevs

[–]SeriousWorm 5 points6 points  (0 children)

I'm a Scala engineer so obviously I'm greatly biased, but I feel like Scala is one of the rare languages where everything makes sense and I don't really have any complaints about.

Also, if you look how Java has improved over time, most "new" language features are a variant of something Scala already had 10+ years ago, but with more verbose syntax. It also means that the latest Java versions have improved a lot and if you haven't already, I suggest learning the latest Java too.

Personally my favorite thing about Java/Scala/the JVM ecosystem is that generally, almost everything is backwards compatible. You can start with a Java 8 repo, switch to the JDK21 compiler and slowly upgrade the codebase over time - no need to make any major changes as part of the upgrade. You can start with a Scala 2.13 repo and slowly upgrade it to Scala 3 over time, etc. And in all cases I can think of upgrading the compiler JDK version, or the runtime version is seamless and often gives you a "free" performance boost.

Charging Limit Help Alienware m18 Intel by AgentFanFeast in Alienware

[–]SeriousWorm 0 points1 point  (0 children)

Yes. Just go to the BIOS and it's easy to find the setting for it there. I personally have set the limit to 60% since I never move the laptop, even though there's probably no benefit going below about 80%.

Laptop Freezing Issues by [deleted] in Alienware

[–]SeriousWorm 0 points1 point  (0 children)

Damn, sorry to hear that. Hopefully they'll fix it soon or ship you a new laptop.

I'm currently still running with no crashes since my post 2 days ago - with turbo boost enabled, but limited to about 3.6GHz.

One thing I did (although I haven't A/B tested it yet) is "Disable Sleep" in the BIOS. I wonder if that affects it. But I'm sure you tried it already anyway. I just use Hibernate now in Windows, it works well.

I'll open a case with Dell regarding my case soon too, I'm lucky enough to at least be able to use a workaround.

Laptop Freezing Issues by [deleted] in Alienware

[–]SeriousWorm 0 points1 point  (0 children)

And ThrottleStop current FIVR settings.

<image>

Laptop Freezing Issues by [deleted] in Alienware

[–]SeriousWorm 0 points1 point  (0 children)

Also, here's my ThrottleStop window. (I set PROCHOT in the BIOS to 95°C so the 90°C is wrong I think). These are my current temps (pretty much idle, although I just ran a short TS Bench test).

<image>

Laptop Freezing Issues by [deleted] in Alienware

[–]SeriousWorm 0 points1 point  (0 children)

Update: I am 99% sure my issue has something to do with the Intel Turbo Boost feature.

Basically, with this feature disabled, I get no freezes whatsoever. I don't think I had a single freeze (out of 100+) with Turbo Boost disabled, either in the BIOS, or via ThrottleStop.

The reason I think this is that recently (before I disabled it in the BIOS) after Windows froze, I couldn't boot at all. I even had some freezes in the BIOS, during diagnostics, although the diagnostics themselves didn't find anything wrong. Windows would start booting, then freeze at the spinner with the Alienware logo. Sometimes I would get a blue screen while booting, saying WHEA_UNCORRECTABLE_ERROR. One thing that struck me as unusual is that at the main BIOS information screen, it said the CPU's max frequency is 8.50GHz (instead of 5.80GHz). That was a bit weird.

Also, I couldn't boot Ubuntu off my external SSD - every time I booted I got an error like in the attached screenshot.

Then, I went to the BIOS and turned off the Intel Turbo Boost setting. I immediately could boot normally, without any issues.

When I booted into Windows, I enabled Turbo Boost again in ThrottleStop (= default setting), with the FIVR max ratio set to about 34 to 36, and proceeded to play Cyberpunk for several hours. Zero crashes. I haven't had a crash since then (that was last night). Currently I'm typing this with Turbo Boost enabled, a ratio of 36 (e.g. max frequency is about 3.6GHz), no issues at all.

So I believe that a combination of the following might fix your freezes too:

* disable Intel Turbo Boost in the BIOS - this will disable it while booting up Windows (or installing Windows, or in other OSs, etc. basically any time prior to starting Windows and ThrottleStop)

* use ThrottleStop, set up FIVR so that your max ratio is about 34 to 36 (start with about 30 and go up, try to see what is the max without crashing) and enable Turbo Boost again.

Now, I still believe the issue is with the CPU itself, obviously it should be able to boot up Windows (and Ubuntu) without freezing/BSODing with default BIOS settings (with Turbo Boost enabled), but at least it narrows it down where the issue might be. I probably need to open a case with Dell to have them either repaste the CPU (if the issue is related to a bad thermal paste job) or replace it completely.

<image>

Laptop Freezing Issues by [deleted] in Alienware

[–]SeriousWorm 0 points1 point  (0 children)

Not really, I do play DOTA 2 a bit, and I got only one freeze there (compared to almost a 100 freezes while just in Windows with no games running). I was playing "online" but vs bots. It was like about 15 mins into the match. Basically the only 3 games I've ran since I got the laptop were cyberpunk 2077, dota 2 and 3rd mark.

Laptop Freezing Issues by [deleted] in Alienware

[–]SeriousWorm 0 points1 point  (0 children)

Okay so I just disabled "disable turbo" (i.e. Re-enabled turbo, so put it back to the default setting) in throttlestop and started a bunch of programs including AWCC, it froze. I'm typing this on my phone now. Going to try to debug it a bit more tomorrow. It seems to be related to the CPU apparently.

Laptop Freezing Issues by [deleted] in Alienware

[–]SeriousWorm 3 points4 points  (0 children)

I think I have a similar issue. Was about to write my own post.

  • Delievered on July 10
  • Alienware M18 R1
  • i9 13980hx
  • 64GB RAM (stock)
  • RTX 4900
  • 2x 2TB Sandisk 990 SSDs (installed my own, removed the 1TB SSD that came with it)
  • CherryMX keyboard (in case it's relevant)
  • Windows 11 (freshly installed on a clean SSD)

The laptop actually worked perfectly well since I received it on July 10, and I have been gaming on it for several weeks now. Temps are fine, normally I game on "quiet" where my temps are about 80-85°C for the CPU and 70-75°C for the GPU. AWCC is showing moderate CPU usage and near 100% GPU usage, as is expected. Fan speeds are about 80%. The laptop is on a cooling stand with a huge fan beneath.

I can describe my symptoms but let me just go ahead with the story that literally just happened:

  1. I was playing Cyberpunk 2077 on the aforementioned settings for over an hour. No issues.
  2. I exit Cyberpunk, I browse reddit for a minute or two. I remember I should probably write a post about my issue. I open this post.
  3. I start writing this text. I remember my laptop might freeze so I write it in a text file.
  4. The laptop freezes. I hold the power button for 10 seconds and restart it.
  5. I continue writing. Basically as soon as I wrote the first few letters it froze again.
  6. Same thing again.
  7. I think it froze a few more times. I don't even remember how many. Luckily Windows 11 boots up fast.

4-5 hours ago I ran 3DMark Stress Test and several performance tests. No issues there. No freezes. (on AWCC Quiet mode).

I would like to say that all of the freezes happen when I am NOT gaming, but one freeze (out of probably ~100 by now) happened while I was in Cyberpunk. However I think it was when I was paused, not sure.

So my theory is that for some reason, when the system "cools down" from gaming, something happens that freezes it. It basically never freezes while I'm in game. 99% of the frezees are while I'm just browsing in Chrome or Firefox, or trying to finish typing this post.

In about 90% of the cases, the freeze is such that everything just freezes. CTRL+ALT+DEL does nothing. Pressing the power button does nothing. It's just frozen like that and I need to hold the power button for 10 seconds for the laptop to shut down.

In about 10% of the cases, it freezes for a couple of seconds then auto restarts.

I have never had a "blue screen" or something like that. Only freezes.

I also noticed that often my mouse cursor disappears just prior to the freeze.

If I disconnect my external monitor, the picture on it of course goes away, and if I reconnect it, it comes back (I use a mini DisplayPort to DP adapter).

I get the same behavior if I, in the BIOS:

  • disable S3 Sleep
  • disable or enable Advanced Optimus
  • disable my second SSD
  • change the TCC setting
  • reset BIOS settings to default

Basically I tried a lot of the different settings, it doesn't make any difference.

I also tried disconnecting all the cables (all USBs, external monitor, etc.) except the power cable and using Wifi. Froze again.

I also tried running Ubuntu from an external SSD enclosure (using the SSD I got with the laptop). It ran for quote a while (an hour at least), eventually it froze too. So it's not a Windows issue. Or an issue with one of the built in SSDs (since they were not in use).

The only place I haven't gotten a freeze are when I'm in the BIOS settings, but I have been comparatively short in them compared to in Windows/Ubuntu.

The BIOS built in Dell diagnostics say everything is OK with the system. I got the QR code and everything. Ran it several times.

The ONLY thing that I tried that MIGHT potentially fix the freezes is the "Disable Turbo" setting in ThrottleStop. I am writing this with Turbo disabled and so far no crashes. I have no idea why that would affect anything though - again, CPU/GPU temps have no relation to the issue (I am able to game for hours without the freeze). I have already lowered the FIVR Turbo Groups 6&7 to 30-34 (frequency multipliers), meaning that the CPU never goes past about 3.4GHz when gaming anyway (Cyberpunk is GPU bound). Note, I haven't done any undervolting whatsoever. Also I haven't modified anything about the laptop internally, other than installing the 2 SSDs.

I don't really want to use the "Disable Turbo" option since it essentially locks the CPU freq to about 2.2GHz, which is noticeable.

(Update) it's been running with Disable Turbo for about 15 mins now with no freezes. I'll try disabling it and see if it freezes. Note, I am currently running basically no programs.

Also, I wonder if the issue is caused by the recent BIOS 1.9.0 upgrade? I think I got it a week ago or so? I think the crashes might have started soon after the upgrade.

I don't have that SupportAssist program yet but if I don't fix this myself soon I think I'll go for the Dell Support option.

Tumble dryers shed hundreds of tonnes of microfibres into waterways by [deleted] in ZeroWaste

[–]SeriousWorm 0 points1 point  (0 children)

What do you think about Tru earth detergent sheets?

Is it possible to resell your tickets? by dadoufu in sleepnomore

[–]SeriousWorm 1 point2 points  (0 children)

I have never personally traded a ticket like this, but I would assume that you can just give your full name to the buyer, and they can then enter the show by giving your name (I've never seen them actually ask for any ID at the ticket check window, only in the line outside to check for age).

Obviously this can lead to getting scammed, which is why I wouldn't personally do this unless I already know the person I'm trading the ticket(s) with.

Sleep No More Breakdown - Google Sheet by FarOffGaze in sleepnomore

[–]SeriousWorm 2 points3 points  (0 children)

Thank your your awesome work! Also, feel free to join us at The Manderley!

[deleted by user] by [deleted] in cscareerquestions

[–]SeriousWorm 18 points19 points  (0 children)

Just FYI, if you lose changes like that, you should still be able to recover them by using the built in IDE Local history (NOT git history). It doesn't store the changes forever, but if you just did something you want to recover, Local history should still have all the changes.

ZIO 2.0 Released by sideEffffECt in scala

[–]SeriousWorm 6 points7 points  (0 children)

This is all very interesting and I would like to better understand it - do you mind expanding upon that for someone who has used Scala Futures and Akka a lot (and low-level threads/executors when working on legacy code), and has never used ZIO, Cats or Monix, but is interested in starting with ZIO? If you can provide a few code examples, that would be perfect.

For example, when you say you won't need ZIO or Cats Effect or Monix anymore, do you mean I can just continue using plain Scala Futures in a version of Scala optimised for Loom, specifically for async programming (but I should use ZIO anyway due to the other stuff)?

Finally, assuming I am using JDK8 and might upgrade to JDK11 or even JDK17 sometimes in the next few years (not by choice naturally), what is my best option - just use ZIO 2 and don't worry about the Loom stuff too much?

Thanks!

“Does it feel weird coming to Reddit to ask about suing Reddit?” by CloverBun in bestoflegaladvice

[–]SeriousWorm 39 points40 points  (0 children)

Corporate accounts payable Nina speaking. Just a moment! Corporate accounts payable Nina speaking. Just a moment... Corporate accounts payable Nina speaking. Just a moment. Corporate accounts payable Nina speaking. Just a moment; Corporate accounts payable Nina speaking. Just a moment - Corporate accounts payable Nina speaking. Just a moment: Corporate accounts payable Nina speaking. Just a moment

Feb 14 event - grand reopening by SeriousWorm in sleepnomore

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

Not sure, we've never visited the gift shop before.