Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 10 07:34
    MikhailMalyutin opened #730
  • Dec 14 2019 16:08
    Kevin-DDR closed #7458
  • Dec 14 2019 12:59
    Voiteh commented #7457
  • Dec 11 2019 19:27
    Voiteh edited #7459
  • Dec 11 2019 19:24
    Voiteh opened #7459
  • Dec 11 2019 19:17
    Voiteh closed #7453
  • Dec 11 2019 19:13
    Voiteh reopened #7453
  • Dec 11 2019 19:10
    Voiteh closed #7453
  • Dec 11 2019 19:06
    Voiteh synchronize #7453
  • Dec 09 2019 09:42
    Voiteh commented #7453
  • Dec 07 2019 19:14
    Kevin-DDR commented #7457
  • Dec 07 2019 19:12
    Kevin-DDR commented #7457
  • Dec 07 2019 19:00
    Kevin-DDR synchronize #7458
  • Dec 06 2019 15:10
    m1-gl commented #7457
  • Dec 06 2019 13:31
    m1-gl synchronize #7457
  • Dec 06 2019 13:31
    m1-gl synchronize #7457
  • Dec 06 2019 13:31
    m1-gl synchronize #7457
  • Dec 06 2019 13:30
    m1-gl synchronize #7457
  • Dec 06 2019 13:30
    m1-gl synchronize #7457
  • Dec 06 2019 13:29
    m1-gl synchronize #7457
Voiteh
@Voiteh
AI is all over this times ;)
fill0llif
@fill0llif
value a = {1,2,3,4};
print(a);
print(a.take(2));
print(a.skip(2));

got this ugly thing printed:

{ 1, 2, 3, 4 }
{ 1, 2 }
{ 1, 2, 3, 4 }.iterator()

dunno why take is working and skip is not, it is not bug, right?

Jonas Berlin
@xkr47
was it with js or jvm ?
fill0llif
@fill0llif
jvm
John Vasileff
@jvasileff
@fill0llif the string property of lazy iterables won't always print the elements since based on the implementation they may or may not "know" that re-iteration is possible. The result of string will be inconsistent for iterables and is not meant for output to end users
you can use printAll(a.skip(2)) instead to force iteration, or even (I think) print(a.skip(2).sequence())
Kiti-nomad
@kiti-nomad
There are two types in D language, cent and ucent, representing signed and unsigned 128-bit values, respectively, and what scenario does this 128-bit value apply to?
Kiti-nomad
@kiti-nomad
Of course it's a reserved keyword
Voiteh
@Voiteh
@AmberSaber I think You mistaken the channel ;)
Kiti-nomad
@kiti-nomad
I know, I mean what scenario requires 128-bit int variables
Kiti-nomad
@kiti-nomad
Because I think you are all senior geniuses(资深大佬) who understand all aspects of the software industry
Voiteh
@Voiteh
Not me at least :)
Jonas Berlin
@xkr47
:D
Kiti-nomad
@kiti-nomad
Do you know this ?
Jonas Berlin
@xkr47
nope :)
Kiti-nomad
@kiti-nomad
Let the java program run on .net
Kiti-nomad
@kiti-nomad
Although ikvm looks amazing, it is not the best solution compared to fantom
Kiti-nomad
@kiti-nomad
Most jvm languages ​​can either be compiled into .class files or js. But fantom chooses between .net and java.
But cross-platform things are often futile and will not succeed😂
Podmev
@Podmev
Hey guys. Herd doesn't work now. Can anyone fix it?
https://herd.ceylon-lang.org/
Kiti-nomad
@kiti-nomad
happy new year,everybody!
Arsenii A.
@arseniiv
happy NY! Let all our wishes come true!
Jonas Berlin
@xkr47
arseniiv, aye!
aww, try.ceylon-lang.org is "service unavailable"
can't repost my happy-new-year-2015 ceylon thing :)
Voiteh
@Voiteh
Happy new Year
Arsenii A.
@arseniiv
@xkr47 Seems working now! Though I’m probably late to say this.
Jonas Berlin
@xkr47
arseniiv, you are right!
@arseniiv even
MikhailMalyutin
@MikhailMalyutin

Hi :). New leap year - new bugs :).

shared void testParseDateTimeLeapYear() {
    value result = parseDateTime("2020-02-29T12:00:00");
    assert(exists result);
}

shared void testParseDateLeapYear() {
    value result = parseDate("2020-02-29");
    assert(exists result);
}

Yesterday our production was broken, because we catch 29 february date :)

Jonas Berlin
@xkr47
:)
Kiti-nomad
@kiti-nomad
This seems to be a problem, but usually this function should be a wrapper that calls the system's interface.
Dirk Lattermann
@dlkw
Hi! I'm using a small Ceylon tool on a daily basis, which I wrote some years ago. I'm running it with ceylonb. This morning, it has stopped working because it apparently cannot find the module org.slf4j:slf4j-api/1.8.0-beta2 in Aether anymore:
[CMR:DEBUG] Resolving org.slf4j:slf4j-api/1.8.0-beta2
[CMR:DEBUG] Looking for maven:org.slf4j:slf4j-api-1.8.0-beta2(.car|.jar)
[CMR:DEBUG]  Looking in Repository (com.redhat.ceylon.cmr.impl.DefaultRepository) for namespace: ceylon and root: RootNode for FileContentStore: /private/var/root/.ceylon/dists/8s9hedm0mdj0yf56t8hecrmat/repo
[CMR:DEBUG]  -> does not support namespace maven
[CMR:DEBUG]  Looking in Repository (com.redhat.ceylon.cmr.impl.DefaultRepository) for namespace: ceylon and root: RootNode for FileContentStore: /Users/dlatt/hack/cylgl/modules
[CMR:DEBUG]  -> does not support namespace maven
[CMR:DEBUG]  Looking in Repository (com.redhat.ceylon.cmr.impl.DefaultRepository) for namespace: ceylon and root: RootNode for FileContentStore: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/ceylon-assembly-7916455300039047323/modules
[CMR:DEBUG]  -> does not support namespace maven
[CMR:DEBUG]  Looking in Repository (com.redhat.ceylon.cmr.maven.AetherRepository) for namespace: maven and root: RootNode for AetherContentStore: Aether
[CMR:DEBUG]  Trying repository [Maven] Aether
[CMR:DEBUG] Overrides for org.slf4j:slf4j-api:1.8.0-beta2 in jar:file:/var/root/.ceylon/dists/8s9hedm0mdj0yf56t8hecrmat/repo/com/redhat/ceylon/module-resolver/1.3.3/com.redhat.ceylon.module-resolver-1.3.3.jar!/com/redhat/ceylon/cmr/api/dist-overrides.xml
[CMR:DEBUG] -> no overrides
[CMR:DEBUG]   -> Found at /org/slf4j/slf4j-api/1.8.0-beta2/slf4j-api-1.8.0-beta2.car
[CMR:DEBUG]  -> Found
[CMR:DEBUG] Overrides for org.slf4j:slf4j-api:1.8.0-beta2 in jar:file:/var/root/.ceylon/dists/8s9hedm0mdj0yf56t8hecrmat/repo/com/redhat/ceylon/module-resolver/1.3.3/com.redhat.ceylon.module-resolver-1.3.3.jar!/com/redhat/ceylon/cmr/api/dist-overrides.xml
[CMR:DEBUG] -> no overrides
[CMR:DEBUG] Could not resolve artifact [org.slf4j:slf4j-api:1.8.0-beta2] : com.redhat.ceylon.cmr.resolver.aether.AetherException: com.redhat.ceylon.aether.eclipse.aether.resolution.DependencyResolutionException: Failed to read artifact descriptor for org.slf4j:slf4j-api:pom:1.8.0-beta2
ceylonb run: Could not find module: org.slf4j:slf4j-api/1.8.0-beta2
Can this be some network stuff (some server not available?)
(Well, it says it can find it in Aether, but than shortly after that, it says it can not find it.)
John Vasileff
@jvasileff
Does your project have a dependency that tries to pull in slf4j 1.8.0-beta2? It seems a bit odd that 1.8.0-beta2 would have ever been in herd. Is it possible you had a cached copy in ~/.ceylon or ~/.m2?
Dirk Lattermann
@dlkw
Thanks for responding! Yes, the project has a dependency on slf4j. I always presumed the module is resolved from maven central, and the artifact (jar, pom) has been sitting in my ~/.m2/repository since June 4, 2018. Two days ago, I could still start the application, but since yesterday I can't. I haven't changed anything™ and, what's worse, I don't have a clue how to diagnose the problem. I will try to find out what the above message about slf4j-api-1.8.0-beta2.car means. It probably indicates that there is a "ceylon version" of the module artifact somewhere, right?
this doesn't look good at all.
I'm not sure where the maven central url comes from, but if I had to guess, it will be necessary to have a modules.xml or whatever to replace it
Maybe @FroMage can point towards the easiest workaround?
Kiti-nomad
@kiti-nomad
A guy from the Chinese Academy of Sciences renamed Python as their own😂
fill0llif
@fill0llif

@dlkw so... https://support.sonatype.com/hc/en-us/articles/360041287334-Central-501-HTTPS-Required

same problem here, this is really frustrating

fill0llif
@fill0llif
@FroMage Could you please help us?
John Vasileff
@jvasileff
Folks, I created a build of Ceylon 1.3.3 + the change to the Maven Central URL. It's available at https://github.com/jvasileff/ceylon/actions (click on the most recent build and then "artifacts" in the top right)
The version is 1.3.4-SNAPSHOT. I would have preferred 1.3.3.1-SNAPSHOT, but I don't think the code will support that.
I didn't really test it, but what could go wrong, right?
fill0llif
@fill0llif
Thank you so much! I'll try it when I'm back home