Does anyone have any experience
with https://www.codeconvert.ai/typescript-to-golang-converter (or any of
their other conversion products)?
I'm assessing how big a job it would be to support Djot
(https://github.com/jgm/djot) with Go. It currently has both Lua and a
Javascript/Typescript
E: An authorization code that you can obtain by
following the OAuth2 flow.
- YOUR_DOCUMENT_ID: The ID of the Google Doc that you want to find the
size of.
Once you have replaced these values, you can compile and run the code. The
program will print the size of the Google Doc to the c
length.
>
> On Thu, Oct 5, 2023 at 4:31 PM Mandolyte wrote:
>
>> Here is what I see:
>> $ ls -l Household\ Cleaning.gdoc
>> -rw-r- 1 cecil chronos-access 170 Apr 22 15:30 'Household
>> Cleaning.gdoc'
>> $
>>
>> I'll update the code to remov
s on the same file will yield further
> FileInfos.
>
> On Thu, Oct 5, 2023 at 1:35 PM Mandolyte wrote:
>
>> Thanks for responding! The entire program may be found here:
>> https://go.dev/play/p/4kLaeWeQG0Z
>>
>> The size comes from os.FileInfo, which is:
>>
&
u showed us the relevant code. My first guess is those
> files are symlinks. Or perhaps this is simply what Google Drive reports
> when a file is stat()'d. What does `ls -l` show?
>
> On Thu, Oct 5, 2023 at 8:31 AM Mandolyte wrote:
>
>> I have a program that given a starting
I have a program that given a starting folder will walk the directory
structure and report file sizes and other things.
I recently tried to run this code on a mounted Google Drive on ChromeOS
Linux. All the google docs report a size 170 bytes. Snippet:
[image: Screenshot 2023-10-05 11.29.44
and https://pkg.go.dev/github.com/canhlinh/svg2png
On Friday, August 4, 2023 at 4:48:26 AM UTC-4 Mark wrote:
> Thanks!
>
> On Friday, August 4, 2023 at 8:46:18 AM UTC+1 Tamás Gulácsi wrote:
>
>> https://pkg.go.dev/github.com/goki/gi/svg
>>
>> Mark a következőt írta (2023. augusztus 3.,
In a few months I will begin working on a component that can be used by
several of our web apps. Since I have time I wanted to experiment with
writing this in Go/WASM.
The Go code will be a set of functions that take a string and some options
(probably in JSON format) and return a string
Or perhaps a hybrid, where the methods call generic functions...
On Thursday, January 20, 2022 at 7:23:37 PM UTC-5 Ian Lance Taylor wrote:
> On Thu, Jan 20, 2022 at 3:30 AM Travis Keep wrote:
> >
> > I am working on a Pipeline[T, U any] type which receives any number of T
> values and in turn
A couple of questions:
- What is the state of Windows/MacOS?
- How about Windows Subsystem for Linux?
Thanks!
On Wednesday, August 26, 2020 at 6:17:58 PM UTC-4 kortschak wrote:
> On Wed, 2020-08-26 at 23:50 +0200, Jan Mercl wrote:
> > From the change log (
> >
Since readability is impacted by consequitive lists, you could factor it out...
with ( type list )
func ( arg list ) etc...
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send
SQLite3 support is the stated goal of https://github.com/elliotchance/c2go
Also, I believe I tested this one a long time ago... but have lost track of
it after they moved away from Github:
https://github.com/cznic/sqlite
On Monday, June 15, 2020 at 12:57:54 PM UTC-4, Douglas Manley wrote:
>
>
Some info here on how to play with the generics:
https://blog.tempus-ex.com/generics-in-go-how-they-work-and-how-to-play-with-them/
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it,
Might review how the micro editor handles it... as an editor functioning in
a terminal window and cross platform, it is quite stellar.
https://pkg.go.dev/mod/github.com/zyedidia/micro@v1.4.1
On Friday, April 10, 2020 at 6:49:12 AM UTC-4, Jason E. Aten wrote:
>
> If you insist on terminal (which
I have tested this one: https://godoc.org/modernc.org/sqlite -- but not
extensively and it states it should not be used for production. (my testing
was on the "archived" github version)
And this is the goal of https://github.com/elliotchance/c2go -- but can't
tell if it is active or whether it
In this code snippet:
> func Map(type S, Element)(s S, f func(Element) Element) S {
> r := make(S, len(s))
> for i, v := range s {
> r[i] = f(s)
> }
> return r}
>
> Shouldn't the line in the loop be: r[i] = f(v)
On Monday, July 29, 2019 at 2:17:22 PM UTC-4,
I missed this. Do you have a link to the proposal?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this
I think MeWe could do the job in a functional sense - but there is no
reason for Go folks to go there in mass. I find that Reddit has most of the
same links to info that G+ did... so I'm ok with it. I have accounts on
both MeWe and Reddit already for other things... so yeah...
On Sunday, April
I don't believe anyone has mentioned how a muon does generics... muon claims to
be inspired by Go and some others; and indeed it feels familiar. At any rate,
just for information and interest:
https://github.com/nickmqb/muon/blob/master/docs/muon_by_example.md#generic-structs
--
You received
You might consider one of the projects that "transpile" C to Go. Might give
you a jump start. For reference, here are two of them:
https://godoc.org/modernc.org/ccgo/v2
https://godoc.org/github.com/elliotchance/c2go/transpiler
On Sunday, December 30, 2018 at 12:08:21 AM UTC-5, Jeffrey wrote:
>
>
Hey, the thread isn't that old... but have a question since you are in the
thick of GUI things: what do you think of Vulkan?
On Sunday, December 30, 2018 at 5:19:26 PM UTC-5, Andrew Williams wrote:
>
> Hi,
>
> For anyone still interested in this project but held back by the EFL build
> or
Hmmm, couldn't we follow directions to build from zyedidia, substituting
your repo as needed? If so, have you documented anywhere how to use your
extensions? I didn't notice any mods to the README.
Cheers!
On Wednesday, November 21, 2018 at 4:57:05 PM UTC-5, Serge Voilokov wrote:
>
> I am
see
https://github.com/chrislusf/glow
and
https://github.com/chrislusf/gleam
On Thursday, November 22, 2018 at 3:32:51 PM UTC-5, yahiah...@gmail.com
wrote:
>
> Hi how are you can you help me I need distributed mapreduce code for
> golan
> Thank you
--
You received this message because
uld handle it, or if
it can.
On Thursday, November 1, 2018 at 4:04:42 PM UTC-4, Jamie Clarkson wrote:
>
>
>
> On Thursday, November 1, 2018 at 6:19:58 PM UTC, Mandolyte wrote:
>>
>> Ah, I see. the albrow/fo package is the equivalent of just pasting the
>> entire function int
it and the more it feels like Go where
> interfaces are implicitly satisfied.
>
> Cheers,
>
> Jamie
>
> On Thursday, November 1, 2018 at 10:30:30 AM UTC, Mandolyte wrote:
>>
>> You can use https://github.com/albrow/fo and see what code it generates.
&g
:31 AM UTC-4, Ian Denhardt wrote:
>
> Quoting Mandolyte (2018-11-01 06:30:30)
>
> > - it uses square brackets instead of (type .. ) for the type parameters
>
> What does it do with `type Foo [T] int`? The draft design cites this
> ambiguity (is it a generic type with an
You can use https://github.com/albrow/fo and see what code it generates.
Conceptually, I imagine will it be close to what the draft spec would
produce. Some differences and limitations:
- it uses square brackets instead of (type .. ) for the type parameters
- it is limited to a single main()
Alan, like your approach and nearly all your solutions (any quibbling I have
isn't worth mentioning).
And best of all, I think it would make excellent godoc documentation.
Thanks for taking the time to write this up.
--
You received this message because you are subscribed to the Google
On field accessors...
- Algorithms for X,Y points requiring them to be members of a struct type.
- Algorithms to manipulate colors, requiring R,G, and B to be members.
In an image processing library with its own rich set of struct types, such
accessors would prove productive.
Are these the
I think it worth noting that a contract also makes good documentation for
godoc. Thus a win for all users of generic libraries.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it,
While not quite the same problem, this post describes something similar in
concept, "banking strings" in a single large byte slice to avoid GC
pressures.
https://syslog.ravelin.com/whats-all-that-memory-for-e89522e1c2c6
On Friday, April 20, 2018 at 11:26:08 PM UTC-4, Kaveh Shahbazian wrote:
>
I have some utilities that should give you some help. Documented in three
blog articles. Here is the first one.
http://www.mandolyte.info/2017/12/encodingxml.html
which points to a generic parser that can be used on any XML document (I
think :-)) and outputs a CSV "report".
HTH,
Cecil
On
+1
On Monday, February 19, 2018 at 12:37:14 PM UTC-5, Michael Jones wrote:
>
> Matthew Juran wrote: *"...but if you use maps, slices, append, make, you
> are already using generics."*
>
> This seems deeply insightful to me. Perhaps a better question than the
> self-defeatingly open question of
I think this falls into a variation of package level generics.
Look over the document below and see if there is any changes you would
recommend.
https://docs.google.com/document/d/1vrAy9gMpMoS3uaVphB32uVXX4pi-HnNjkMEgyAHX4N4/edit?usp=drivesdk
Thanks for sharing!
--
You received this message
wrote:
>
> On Thu, Feb 8, 2018 at 2:29 PM Mandolyte <ceci...@gmail.com >
> wrote:
>
> > I want to load it at run time. Is this possible?
>
> Why? The driver code is already linked into your program, otherwise you
> would not be able to load it later.
>
> --
I'd like to use the same program against multiple databases and set the
driver by configuration. But since the driver is in the source code, I
don't see a way to do that.
In other words, I don't want to include this in my code:
> import (
> _ "github.com/lib/pq"
> )
I want to load it at
Fabien, you mention below that generics would help... I encourage you to
make a fuller description of why/how generics would help and update this
wiki page to point to it:
https://github.com/golang/go/wiki/ExperienceReports#generics
On Thursday, December 21, 2017 at 8:25:53 PM UTC-5, Fabien
If not wedded to cigwin try git bash. I liked it much better personally and it
gave most of the same benefits
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
I was able to do a minimalist pretty print with limitations just using
marshal/unmarshal. See the code here
<https://github.com/mandolyte/xml-utils> under the "identityXform" folder.
There is a "readme" in that folder with some notes on this. Also tried my
hand at
At my previous company I had a Go program that would take any XML document
and output it as XML in a nicer human readable format, i.e., pretty
printed. I've trying to find it again, but my searches have not turned up
any. Perhaps I had written myself, but I didn't think so.
Does anyone have a
I have used the qasaur package, but it has been a while. At the time, I
filed an issue to bring it up to date to the then current version of
gremlin. The package is pretty small and the interactions with the gremlin
server are pretty simple. It worked ok for the simple things I was doing at
Slightly different question... would this ARM approach work on a Samsung
Chromebook Plus which uses OP1 ARM, with Crouton installed?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from
Thanks for sharing! I can use this to simply some Go code
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more
The experience reports
at https://github.com/golang/go/wiki/ExperienceReports include a reference
to an article on experience and recommendations for Go2 from CMU. Good read!
Direct link:
http://www.monogrammedchalk.com/go-2-for-teaching/
Thanks to Carl Kingsford for the write up.
--
You
I have a command line program (Java with mostly network i/o) that I must
run several 100K times each with its own input. Wondered whether external
commands are amenable to concurrency? Or whether best to run multiples
copies dividing up the inputs so each copy has its own, say 100K values?
Any
This past week I wrote an "audit" program for management to see how a long
running data migration effort was going (it will take several months to
complete). I was little discouraged when I found that the audit was on pace
to complete in 10 days. That got me to thinking of making a concurrent
This line of code:
retrTarget := path.Join(maindir, ss[0], pathparts[npp:]...)
produces this error:
.\xxx.go:131: too many arguments in call to path.Join
have (string, string, []string...)
want (...string)
Easy to work around, but I don't understand why it doesn't work...
It's been many years since I was involved in developing complex systems
(C++ and Java). But I agree, it was mostly lists and sets with searching
and sorting. But I also used them for algorithms a good bit. Thus I would
guess that the maintainers of GONUM libraries might benefit (anyone
Just a reminder that Egon Elbre's documentation of all the discussions on
this topic is here:
https://docs.google.com/document/d/1vrAy9gMpMoS3uaVphB32uVXX4pi-HnNjkMEgyAHX4N4
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from
https://github.com/gopherjs/gopherjs
On Saturday, July 15, 2017 at 5:16:34 PM UTC-4, ohir wrote:
>
> On Sat, 15 Jul 2017 09:30:39 -0700 (PDT)
> Leff Ivanov wrote:
>
> > Is there something like Vaadin, GWT, ZK in Golang world? I mean
> something
> > to do web UIs in pure
By the name and the reference to the SQLite3 website for documentation, I
think is intended to be a pure (?) Go driver for the SQLite3 file format.
But I also noticed some references to C runtime... so just wanted to make
sure I understood the intent.
thanks.
On Monday, June 5, 2017 at
Doesn't help with operators, but noticed this:
https://www.cockroachlabs.com/blog/apd-arbitrary-precision-decimal-package/
On Wednesday, March 29, 2017 at 1:27:22 PM UTC-4, a.mat...@ra-micro.de
wrote:
>
>
> No!
>
>
> We want to use operators like + , - , * and / with decimal values. This
> is
First, never thought I'd have to parse XML again (it's been over 10 years),
but life happens...
After a lot of searching I found only few examples using the streaming API.
But I'm not sure the examples will work for me (I'll find out more tomorrow
when I get back to the office). The XML I must
The recent survey reveled that generics was thing that would improve Go the
most. But at 16%, the responses were rather spread out and only 1/3 seemed
to think that Go needed any improvement at all - see link #1. I think most
will concede that generics would help development of algorithms,
I deal with CSV files a lot. I have made most available here:
https://github.com/mandolyte/csv-utils
Hope it helps,
Cecil
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails fro
I have a date column which isn't fully populated. I tried to use "\N" per
(1) and also just an empty string. Neither worked, both giving this error:
invalid input syntax for type date
Is there a way to supply null values for CopyInSchema?
--
You received this message because you are
Pass as a value to a named argument:
go run cmd/main.go -input tests/dir/a.go
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Not to my knowledge. But if your goal is distributed computing, then take a
look at https://github.com/chrislusf/glow
On Wednesday, December 14, 2016 at 1:03:41 PM UTC-5, Junaid Farooq wrote:
>
> Hi eveyone, Very new to #GoLang. have been doing Elixir / Ruby / PHP and
> etc stuff for past 4
e, which I think were due to starved channels.
The full test resulted in over 700M paths being generated... impressive!
Thanks very much for the advice!
On Thursday, December 1, 2016 at 6:45:02 AM UTC-5, Mandolyte wrote:
>
> Wow, this will take some time to digest. Regrettably I have requ
Will ActiveGo come packaged with common database drivers Oracle,
Postgresql, etc. and the usual assortment of NoSQL databases?
On Thursday, December 8, 2016 at 12:55:57 PM UTC-5, je...@activestate.com
wrote:
>
>
>
> On Friday, March 30, 2012 at 10:27:36 AM UTC-7, hcatlin wrote:
>>
>> Just
't need.*
>
> btw. how many different names do you have?
>
> + Egon
>
> On Thursday, 1 December 2016 02:51:49 UTC+2, Mandolyte wrote:
>>
>> Thanks for the discussion! Package with tester is at:
>> https://github.com/mandolyte/TableRecursion
>>
>> While I c
Thanks for the discussion! Package with tester is at:
https://github.com/mandolyte/TableRecursion
While I can't share the data, I could take a sample set of paths for a root
node, reverse engineer the pairs, and obfuscate... I've done this sort of
thing before but it is a bit of work. So I'll
>
> On Wednesday, 30 November 2016 03:37:55 UTC+2, Mandolyte wrote:
>>>
>>> I have a fairly large 2D slice of strings, about 115M rows. These are
>>> (parent, child) pairs that, processed recursively, form a tree. I am
>>> "materializing" all possi
;golan...@googlegroups.com >
> *Subject: *[go-nuts] Re: Large 2D slice performance question
>
>
>
> On Wednesday, 30 November 2016 03:37:55 UTC+2, Mandolyte wrote:
>
> I have a fairly large 2D slice of strings, about 115M rows. These are
> (parent, child) pairs that,
Perfect! thanks for the quick reply.
On Wednesday, November 30, 2016 at 7:32:09 AM UTC-5, Jan Mercl wrote:
>
> On Wed, Nov 30, 2016 at 1:21 PM Mandolyte <ceci...@gmail.com >
> wrote:
>
> > tr.sema <- struct{}{}
>
> > What is this telling me?
>
This morning a job that I had started last night was spitting out messages
like this:
goroutine 23866180 [chan send, 595 minutes]
followed a stack trace, the first line number of which was pointing to this
line of code:
tr.sema <- struct{}{}
What is this telling me?
--
You received
Also https://github.com/cznic/wm... It actually implements an event driven
model. There's a demo that's easy to see what it can do.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from
Here's a link to an article by someone else who went down this path and
they explain a bit about how they went about going deeper...
http://thorstenball.com/blog/2016/11/16/putting-eval-in-go/
On Friday, November 18, 2016 at 10:41:57 PM UTC-5, nvcnvn wrote:
>
> All I ever do is some simple web
One of my worst case scenarios completed in less then 21 minutes. Very
encouraging!!
Suppose I opened two connections each running 10 threads, would I approach 10
minutes? I'll give this a try later this week. This is pretty exciting for me
since I never seen this problem solved in less than
, 2016 at 5:36:59 PM UTC-5, adon...@google.com wrote:
>
> On Monday, 7 November 2016 16:57:29 UTC-5, Mandolyte wrote:
>>
>> I have what amounts to a recursion problem and I wrote a minimal test
>> using go routines. I am able to vary the max number of go routines as a
>
I have what amounts to a recursion problem and I wrote a minimal test using
go routines. I am able to vary the max number of go routines as a parameter
on the command line (*). But the times don't vary much whether a single go
routine is used or 50 are used. I get the correct results, no matter
On Saturday, July 2, 2016 at 9:12:54 AM UTC-4, Chad wrote:
>
>
>
> The appeal of generics is probably a false appeal.
>
> Then, if you accept the trilemma described at
http://research.swtch.com/generic, that puts you in favor of "slow
programmers"... just kidding. I went back to read all the
I noticed that the QML project has been forked, so it may have some new energy
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
73 matches
Mail list logo