Skip to content

Instantly share code, notes, and snippets.

View ornicar's full-sized avatar
💭
⏚⏚⏚⏚

Thibault Duplessis ornicar

💭
⏚⏚⏚⏚
View GitHub Profile
600 25
601 1
602 1
603 2
604 2
605 2
606 2
607 2
608 2
609 2
## Metals Info
- Metals Server version: 0.11.9
- Build server currently being used is sbt v1.8.0.
- Metals Java: 17.0.5 from N/A located at /usr/lib/jvm/java-17-openjdk
These are the installed build targets for this workspace. One build target corresponds to one classpath. For example, normally one sbt project maps to two build targets: main and test.
## Build Targets
### scalachess
[Trace - 03:00:07 PM] Received notification 'textDocument/didSave'
Params: {
"textDocument": {
"uri": "file:///home/thib/scalachess/src/main/scala/format/UciDump.scala"
},
"text": "package chess\n [...]"
}
[Trace - 03:00:07 PM] Sending notification 'window/logMessage'
[info] Application quote not yet started
[info] Application common not yet started
[info] Application db not yet started
[info] Application hub not yet started
[info] Application search not yet started
[info] Application i18n not yet started
[info] Application socket not yet started
[info] Application rating not yet started
[info] Application user not yet started
[info] Application coordinate not yet started
@ornicar
ornicar / threads.txt
Created December 13, 2022 11:35
lila thread names list
"AsyncHttpClient-3-1" #61 prio=5 os_prio=0 cpu=24638.10ms elapsed=125688.97s tid=0x00007fadebd6bf20 nid=0x2bb6ee runnable [0x00007fab6dfe6000]
"AsyncHttpClient-3-10" #232 prio=5 os_prio=0 cpu=24634.77ms elapsed=125685.93s tid=0x00007fa970008690 nid=0x2bb7d0 runnable [0x00007fa7d85f4000]
"AsyncHttpClient-3-100" #938 prio=5 os_prio=0 cpu=22996.20ms elapsed=125652.10s tid=0x00007faa30028a50 nid=0x2bbb85 runnable [0x00007fa0642c8000]
"AsyncHttpClient-3-101" #939 prio=5 os_prio=0 cpu=21160.48ms elapsed=125652.07s tid=0x00007fab0804c090 nid=0x2bbb86 runnable [0x00007fa0641c7000]
"AsyncHttpClient-3-102" #940 prio=5 os_prio=0 cpu=22432.04ms elapsed=125652.07s tid=0x00007fab0804ee70 nid=0x2bbb87 runnable [0x00007fa0640c6000]
"AsyncHttpClient-3-103" #941 prio=5 os_prio=0 cpu=27280.17ms elapsed=125652.06s tid=0x00007fa94c00e190 nid=0x2bbb88 runnable [0x00007fa063fc5000]
"AsyncHttpClient-3-104" #946 prio=5 os_prio=0 cpu=29288.34ms elapsed=125649.52s tid=0x00007faa6402fa70 nid=0x2bbba3 runnable [0x00007fa05fdbf000]
@ornicar
ornicar / fr-FR.scala
Created December 12, 2022 13:58
/home/thib/lila/modules/i18n/target/scala-3.2.1/src_managed/main/fr-FR.scala
package lila.i18n
import I18nQuantity.*
// format: OFF
private object `fr-FR` {
def load: java.util.HashMap[MessageKey, Translation] =
val m = new java.util.HashMap[MessageKey, Translation](2352)
m.put("playWithAFriend",new Simple("""Jouer avec un(e) ami(e)"""))
@ornicar
ornicar / side.java
Created December 11, 2022 13:18
CFR from side.scala
/*
* Decompiled with CFR 0.151.
*/
package chess;
import chess.File;
import chess.File$package$;
import chess.Pos;
import chess.Pos$package$;
import chess.Rank$package$;
@ornicar
ornicar / java.flags.txt
Created December 6, 2022 10:36
java -Xms30g -Xmx30g -XX:+UseG1GC -XX:+PrintCodeCache -XX:NonProfiledCodeHeapSize=512m -XX:NonNMethodCodeHeapSize=32m -XX:ReservedCodeCacheSize=2g -XX:InitialCodeCacheSize=512m -XX:CodeCacheExpansionSize=2m -XX:+PrintFlagsFinal
/opt/jabba/jdk/openjdk@1.17/bin/java -Xms30g -Xmx30g -XX:+UseG1GC -XX:+PrintCodeCache -XX:NonProfiledCodeHeapSize=512m -XX:NonNMethodCodeHeapSize=32m -XX:ReservedCodeCacheSize=2g -XX:InitialCodeCacheSize=512m -XX:CodeCacheExpansionSize=2m -XX:+PrintFlagsFinal
[Global flags]
int ActiveProcessorCount = -1 {product} {default}
uintx AdaptiveSizeDecrementScaleFactor = 4 {product} {default}
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product} {default}
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product} {default}
uintx AdaptiveSizePolicyInitializingSteps = 20 {product} {default}
uintx AdaptiveSizePolicyOutputInterval = 0 {product} {default}
uintx AdaptiveSizePolicyWeight = 10
This file has been truncated, but you can view the full file.
2022-12-04 18:16:01
Full thread dump OpenJDK 64-Bit Server VM (17+35-2724 mixed mode, sharing):
Threads class SMR info:
_java_thread_list=0x00007fa750019590, length=1012, elements={
0x00007fade920b830, 0x00007fade920cc10, 0x00007fade9214760, 0x00007fade9215b10,
0x00007fade9216f20, 0x00007fade9218970, 0x00007fade9219ee0, 0x00007fade921b350,
0x00007fade9223520, 0x00007fade9227180, 0x00007fadea20e4a0, 0x00007fadea3358b0,
0x00007fadea3924c0, 0x00007fadea3985e0, 0x00007fabd0010040, 0x00007fabd4003c10,
0x00007fadead57dc0, 0x00007fadeaf742b0, 0x00007fadeb339970, 0x00007fabb4000e70,
@ornicar
ornicar / lila3.jstats.txt
Created December 5, 2022 10:51
lila3 JVM GC stats dumped every 500ms
This file has been truncated, but you can view the full file.
lila3 JVM GC stats dumped every 500ms, during peak time (around 2022-12-04 5PM)
```
/opt/jabba/jdk/openjdk@1.17/bin/jstat -gcutil -h 10 $(pgrep java) 500
```
S0 S1 E O M CCS YGC YGCT FGC FGCT CGC CGCT GCT
0.00 94.52 75.14 81.23 99.71 99.21 54505 2246.844 0 0.000 22918 133.247 2380.091
0.00 98.34 4.36 81.31 99.71 99.21 54506 2246.866 0 0.000 22918 133.247 2380.113