question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support building with graal

See original GitHub issue

I think some of the advanced usage of kotlin is tripping up graal. But it seems worthwhile to support particularly in the serverless space.

https://github.com/square/okhttp/pull/5125

Currently failing for me with

$  ./gradlew :okcurl:nativeImage

> Task :okhttp:compileKotlin
e: /Users/yuri/workspace/okhttp/okhttp/src/main/java/okhttp3/internal/Internal.kt: (30, 1): Conflicting overloads: public fun parseCookie(currentTimeMillis: Long, url: HttpUrl, setCookie: String): Cookie? defined in okhttp3.internal in file Internal.kt, public fun parseCookie(currentTimeMillis: Long, url: HttpUrl, setCookie: String): Cookie? defined in okhttp3.internal in file internal.kt

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
yschimkecommented, Jun 15, 2019

It’s getting adopted by various frameworks e.g. micronauts, and more relevant for fast startup in FaaS models. Support for it generally is more important than okcurl.

Demonstrable performance on a desktop machine for java okhttp

time okcurl/build/graal/okcurl -Djavax.net.ssl.trustStore=cacerts https://api.twitter.com/robots.txt
# Used for Google app indexing. See https://developers.google.com/app-indexing/webmasters/server
User-agent: Googlebot
Disallow:

User-agent: *
Disallow: /

0.03s user 0.02s system 15% cpu 0.303 total
1reaction
swankjessecommented, Jun 15, 2019

Most likely a Kotlin+Graal issue we’re victim to?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[RFE] Support building Graal VM with native-image ... - GitHub
I've got latest OpenJDK 11.0.6+10 release retrieved from the upstream project[1]. It would be nice if there was a supported way to use...
Read more >
Get Started with GraalVM
Here you will find information about installing GraalVM Community Edition, running basic applications with it, and adding support for accompanying features.
Read more >
Building a Native Executable - Quarkus
Building a native executable requires using a distribution of GraalVM. ... They support the same capabilities to build native executables as Oracle GraalVM ......
Read more >
Gradle plugin for GraalVM Native Image building
The Gradle plugin for GraalVM Native Image building adds support for building and testing native images using the Gradle build tool.
Read more >
Spring Native documentation
There are two main ways to build a Spring Boot native application: Using Spring Boot Buildpacks support to generate a lightweight container ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found