From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16062 invoked from network); 8 Mar 2021 19:32:06 -0000 Received: from hurricane.the-brannons.com (216.252.162.32) by inbox.vuxu.org with ESMTPUTF8; 8 Mar 2021 19:32:06 -0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTP id 84eb0f5c for ; Mon, 8 Mar 2021 11:32:00 -0800 (PST) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [2a00:1450:4864:20::431]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTPS id 4bd83126 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 8 Mar 2021 11:31:38 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id j2so12679619wrx.9 for ; Mon, 08 Mar 2021 11:31:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geoffair-info.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=u79e/YVzrMSSRcKBNhu+CGRb0pyT6L4EXncfnQlc0Wk=; b=MMzMB6b0ocYWLvsebNgm+n7qWmgfh22OQ/ZHO/359TQgIbbFgEngaSQlaBAGXiWMN4 b1dFhJAAEyImCESBM0uSKrwMH7kL7wKrdeoAK3Vy7ChtZNtv2GW3lVhyx/X2Da8WwYT/ +kDcLZ/72CPnBK5ZLBwtTliqFmHnUx3AEmHA99yjEkYRyJbab49p3420APtjr/wqDWQw 4XdZIpklNcVuSnIdBw/zCxzTXwcBP4IA51YrZjohF8+zzNTwvGhl24L+1fC0EtpCbpW5 9GfJ4L/Y7VX4sJ7dSHZcmJyeIfdV4eLI5U5J+rba51tTpE287EIiUXFYVcLYqfyleJUQ Av/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=u79e/YVzrMSSRcKBNhu+CGRb0pyT6L4EXncfnQlc0Wk=; b=qZvHcexR2KnLHiq+YksRhSZSFfQbuSrKDrpQ4ce+ckTw1xiCHt4LITT9A84OVMQ/oB XjqBnVw9nQiwdGW3I2+UO0j2fOGKxQnhLB/rHPpqLKs/XJdwHQW1KpKH/YH7iVAajg2N CHGmyR98lKlx633gc9PsRjPe64L2UasJNvv45xU3Q/jsL3vbuxW9YkriR1Gzb3dccG5W XyHn1ZJdk4aNrBfyqEfhp8MvfPQAri8ofTtGmS7rIglrnTG0iCGyarhuWI2JL0E/31xT atoyf/Z15TSBGFVBnLKhxFuVLMC4KYZLLT1nBiUzCPir1jI/4BrnjfqG5Fza/hYdNlTa yyHg== X-Gm-Message-State: AOAM532GMxSBokoDD/ZrXelZAj5jVQGBB6ApAQgl1PClhVInmyDe9IQQ B38m1yEXWYOQzzmroXVQsVRBmg== X-Google-Smtp-Source: ABdhPJxMxSfLxqlHXNupwWz8FlOsjhO1LtfOgFogU8FE23t6cuaqa8UfuCn+yZVjD1X1qXTGDT8x7w== X-Received: by 2002:adf:8b5c:: with SMTP id v28mr23777191wra.272.1615231894594; Mon, 08 Mar 2021 11:31:34 -0800 (PST) Received: from ?IPv6:2a01:cb00:9f8:e600:146f:dfeb:67a9:99cb? (2a01cb0009f8e600146fdfeb67a999cb.ipv6.abo.wanadoo.fr. [2a01:cb00:9f8:e600:146f:dfeb:67a9:99cb]) by smtp.googlemail.com with ESMTPSA id x11sm452507wmi.3.2021.03.08.11.31.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Mar 2021 11:31:25 -0800 (PST) Subject: Re: [edbrowse-dev] quick js To: Karl Dahlke , edbrowse-dev@edbrowse.org, Chris Brannon References: <20210207082610.eklhad@comcast.net> <875z22iwlm.fsf@the-brannons.com> <20210208034648.eklhad@comcast.net> From: Geoff McLane Message-ID: Date: Mon, 8 Mar 2021 20:31:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 In-Reply-To: <20210208034648.eklhad@comcast.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Hi Karl, Chris, et al, makefiles: I completely understand you have no need to get into learning yet another language - cmake ;=))! But of course cmake has a way to build different things - default for the casual/release-only user, or the developer, who wants everything. This is done with conditional 'OPTIONS', like say 'OPTION(BUILD_HELLOW "Enable the build of the 'hello' app" OFF). Tidy has several, like BUILD_TAB2SPACE, BUILD_SAMPLE_CODE, etc... which are OFF for the 'user'. I even have a perl script, cmakeopts.pl, to show me the options available in every new cmake project I get into... it gives me insight into what the project is about, and what are the possibilities... And of course a debug build is achieved by the -DCMAKE_BUILD_TYPE=Debug option... cmake is a build generator, not a builder. So while the *nix default is 'UNIX Makefiles', it supports the likes of Ninja, Watcom, ... etc... then more in Windows - MSVC, +++, and the MAC... So 'makefiles' is just one of the outputs... for a specific toolset... starting with 'make' itself... But you should continue to do what you are comfortable with, absolutely... no question... Windows support: My guess is that Windows users - those that have chosen Windows as their OS of choice - do not, EVER use the command line... may not even know about it... and have found other GUI based tools for web browsing, and email... etc... A long time back, in Windows XP era, I did try to help a friend, who is blind, set up/repair her system. She had a 'talker' app running, which meant she could navigate various GUI apps with the keyboard, where options, like say in the MS Express email app she used, to fetch emails, read emails, reply etc... are spoken commands... as she navigated the apps 'menu', or tabbed through a dialog... A modern Windows system has such a talker service built in... as is voice-to-text s/w... I think likewise in the MAC... So a command line apps, like 'edbrowser' would just NOT be on their list ;=)) And Chris, just reading more about WSL, it looks like it is a Virtual Machine - you have to intall a linux ditribution, like Ubuntu 20.04... so yes, I would imagine you could run native unix command line apps... But, like Karl suggests, why would I do that? Looks interesting to me as a developer, explorer, but to a 'user'... to what gain? I used to have a dual boot machine - Ubuntu or Windows - that gets tedious! Now I am lucky enough to have 2 (+++) separate machines... and have them both running each day... and choose which I find better for various tasks... this is email is being done in linux... I can even ssh into the *nix machine to/from Windows... In the past have played with some *nix emulators, like 'cygwin', 'msgsys/mingw', ... but these never turned out very well... although I still continue to build a `mingw-64` version of Tidy... And of course there are quite a number of 'Virtual Machines' - Hyper-V, VirtualBox, andLinux, QEMU, VMware,... 15 or more... all of which I avoid... except for some interesting, distracting, fun... In general, I am a Windows 'native' user, developer, that also dabbles in cross-porting to other OS'es, for FUN ;=)) duk-moz-quick: Given that I see the sources in eb, it would be easy to build all 3 version - eb-duk, eb-moz, eb-quick - given that, like for the current duktape, I can download the other source, and build them in Windows... or they have a Windows binary distribution... although much prefer SOURCE... If the project does NOT yet support the cmake generator, that is the first thing to add, as I do for 'duktape'... using my 'gencmake'... I have a make2cmake.pl/am2cmake.pl script, which does quite well to gen the necessary 'CMakeList.txt', from examining the makefiles... even a 'log2make.pl' to read unix 'make' logs... and I have a gencmake.pl script, to just traverse the folders, and guess... These auto generations usually need some manual fixes, but sometimes surprisingly minor... The problem often comes from any library dependencies they may have... I have to back up, get that source, build and install that first... I already have over 50++ such 3rdParty.x64 libs... And most of the time, I will choose to build it as a static library, to save me the hassle of copying various DLLs all over the place... Even if the source already has a 'CMakeLists.txt', if it was generated, maintained by a *nix based person, it will only produce a shared (DLL) library. You 'Quickjs' seems an exception... But with cmake it is usually just seconds to adjust that to also build a 'static' library... and vice versa... So, to answer you Karl, yes, it can be quick fix ;=)) Or it can turn into a week(s) or more... depends on so many things... Please point me to the source, to use, and I will give it/them a try... just out of interest... thanks... onwards: If I were you, I would forget cmake at this time, unless and until you have a Windows user (other than me!)... In your readme's mark it as unused, not maintained, may fail... etc Best regard, Geoff.