unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Dart Compiler
@ 2020-11-24 13:26 Nicolò Balzarotti
  2020-11-24 13:41 ` Julien Lepiller
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolò Balzarotti @ 2020-11-24 13:26 UTC (permalink / raw)
  To: guix-devel


Hello Guix!

In the last few months I've been working on the dart compiler.

Dart is a programming language by google [1], mostly used with the UI
Framework flutter [2].  When the android-sdk will be available on guix,
it should be possible to use dart+flutter to write android programs.

As you can guess, dart compiler is written in dart.  The latest stable
version is 2.10.  Luckily, I was able to compile an old 2.0.0-dev
version from source.  Using this version, I could build the following:

2.0.0-dev.8.0 -> 2.0.0-dev.20.0 -> 2.0.0-dev.24.0 -> 2.0.0-dev.36.0 ->
2.0.0-dev.42.0 -> 2.0.0-dev.54.0 -> 2.0.0-dev.65.0 -> 2.0.0-dev.65.0-2
-> 2.0.0-dev.66.0 -> 2.0.0-dev.67.0 -> 2.1.0-dev5.0 -> 2.1.0-dev6.0 ->
2.2.0 -> 2.4.0 -> 2.5.0

I should be able to build the latest stable (2.10) with some more work
using version 2.5.

I'm polishing the code a bit, and then I'll submit the patches.
However, the codebase is enormous, and the download page says that
analytics are enabled by default (but they can be disabled).  I'd patch
the analytic part disabling it all.  However, is there some process that
the package should undergo?  Like, we have ungoogled-chromium, but I
know of no project that has "ungoogled" dart.

What is the way forward?
Thanks, Nicolò


[1] http://https://dart.dev
[2] https://flutter.dev/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dart Compiler
  2020-11-24 13:26 Dart Compiler Nicolò Balzarotti
@ 2020-11-24 13:41 ` Julien Lepiller
  2020-11-24 13:48   ` Nicolò Balzarotti
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Lepiller @ 2020-11-24 13:41 UTC (permalink / raw)
  To: guix-devel, Nicolò Balzarotti

Wow, impressive :)

Le 24 novembre 2020 08:26:16 GMT-05:00, "Nicolò Balzarotti" <anothersms@gmail.com> a écrit :
>
>Hello Guix!
>
>In the last few months I've been working on the dart compiler.
>
>Dart is a programming language by google [1], mostly used with the UI
>Framework flutter [2].  When the android-sdk will be available on guix,
>it should be possible to use dart+flutter to write android programs.
>
>As you can guess, dart compiler is written in dart.  The latest stable
>version is 2.10.  Luckily, I was able to compile an old 2.0.0-dev
>version from source.  Using this version, I could build the following:
>
>2.0.0-dev.8.0 -> 2.0.0-dev.20.0 -> 2.0.0-dev.24.0 -> 2.0.0-dev.36.0 ->
>2.0.0-dev.42.0 -> 2.0.0-dev.54.0 -> 2.0.0-dev.65.0 -> 2.0.0-dev.65.0-2
>-> 2.0.0-dev.66.0 -> 2.0.0-dev.67.0 -> 2.1.0-dev5.0 -> 2.1.0-dev6.0 ->
>2.2.0 -> 2.4.0 -> 2.5.0
>
>I should be able to build the latest stable (2.10) with some more work
>using version 2.5.
>
>I'm polishing the code a bit, and then I'll submit the patches.
>However, the codebase is enormous, and the download page says that
>analytics are enabled by default (but they can be disabled).  I'd patch
>the analytic part disabling it all.  However, is there some process
>that
>the package should undergo?  Like, we have ungoogled-chromium, but I
>know of no project that has "ungoogled" dart.

To disable analytics entirely, you should use patches or snippets. When you send your patch series, we'll review tge source code and give you feed back if needed.

Some things to be aware of: some packages include pre-built versions of their dependencies. Can you check none of the package you build has a hidder .jar somewhere? If so, we have to remove them in a snippet.

>
>What is the way forward?
>Thanks, Nicolò
>
>
>[1] http://https://dart.dev
>[2] https://flutter.dev/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dart Compiler
  2020-11-24 13:41 ` Julien Lepiller
@ 2020-11-24 13:48   ` Nicolò Balzarotti
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolò Balzarotti @ 2020-11-24 13:48 UTC (permalink / raw)
  To: Julien Lepiller, guix-devel

Hi!

Julien Lepiller <julien@lepiller.eu> writes:

> Wow, impressive :)
>
> Le 24 novembre 2020 08:26:16 GMT-05:00, "Nicolò Balzarotti" <anothersms@gmail.com> a écrit :
>>
>>Hello Guix!
>>
>>In the last few months I've been working on the dart compiler.
>>
>>Dart is a programming language by google [1], mostly used with the UI
>>Framework flutter [2].  When the android-sdk will be available on guix,
>>it should be possible to use dart+flutter to write android programs.
>>
>>As you can guess, dart compiler is written in dart.  The latest stable
>>version is 2.10.  Luckily, I was able to compile an old 2.0.0-dev
>>version from source.  Using this version, I could build the following:
>>
>>2.0.0-dev.8.0 -> 2.0.0-dev.20.0 -> 2.0.0-dev.24.0 -> 2.0.0-dev.36.0 ->
>>2.0.0-dev.42.0 -> 2.0.0-dev.54.0 -> 2.0.0-dev.65.0 -> 2.0.0-dev.65.0-2
>>-> 2.0.0-dev.66.0 -> 2.0.0-dev.67.0 -> 2.1.0-dev5.0 -> 2.1.0-dev6.0 ->
>>2.2.0 -> 2.4.0 -> 2.5.0
>>
>>I should be able to build the latest stable (2.10) with some more work
>>using version 2.5.
>>
>>I'm polishing the code a bit, and then I'll submit the patches.
>>However, the codebase is enormous, and the download page says that
>>analytics are enabled by default (but they can be disabled).  I'd patch
>>the analytic part disabling it all.  However, is there some process
>>that
>>the package should undergo?  Like, we have ungoogled-chromium, but I
>>know of no project that has "ungoogled" dart.
>
> To disable analytics entirely, you should use patches or snippets. When you send your patch series, we'll review tge source code and give you feed back if needed.
>

Perfect

> Some things to be aware of: some packages include pre-built versions of their dependencies. Can you check none of the package you build has a hidder .jar somewhere? If so, we have to remove them in a snippet.
>

I might be wrong, but java should not be involved here (I'm not
including java as an input).  I think it will be required when building
with the android sdk, but I still haven't tried running flutter yet, so
I've no idea.

However, during the "code polishing" I'll verify again that no binaries
are in the repo! (At first I tried using their tar.gz release, but they
included a full debian distribution (1.1Gb of gzipped data, 45Mb of
code)).

The repo is quite clean (with the downside that I have to specify all
compiler dart dependencies by hand.

I'll send a tentative patch series during the week, hopefully.

Thanks!
Nicolò

>>
>>What is the way forward?
>>Thanks, Nicolò
>>
>>
>>[1] http://https://dart.dev
>>[2] https://flutter.dev/


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-24 13:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 13:26 Dart Compiler Nicolò Balzarotti
2020-11-24 13:41 ` Julien Lepiller
2020-11-24 13:48   ` Nicolò Balzarotti

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).