These are chat archives for miketheprogrammer/go-thrust

2nd
Dec 2014
Michael Hernandez
@miketheprogrammer
Dec 02 2014 02:44
the new remote functionality coming should help us achieve really nice js integration with thrust
also the html5 permissions update will allow us to make canvas/webgl applications hopefully
Michael Hernandez
@miketheprogrammer
Dec 02 2014 20:03
Yo
Adam Presley
@adampresley
Dec 02 2014 22:21
Good afternoon
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:22
Hey
good afternoon to you to
Adam Presley
@adampresley
Dec 02 2014 22:22
Haven't seen this gitter.im before. This is cool
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:23
Yea, some of the devs have strict firewalls that prevent irc at their workplaces
so, gitter.im works for them
Check out the syntax highlights
fmt.Println("hello world")
Adam Presley
@adampresley
Dec 02 2014 22:24
Oooo, fenced brackets syntax?
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:24
triple ticks `
Adam Presley
@adampresley
Dec 02 2014 22:24
a = [1, 2, 3].join(", ")
heh
nice
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:24
yup
All: @spolu Just released Thrust 0.7.6, I will be creating a corresponding issue for go-thrust now
Adam Presley
@adampresley
Dec 02 2014 22:25
So first I'd like to say that your Go bindings for Thrust is good stuff man.
I've taken one of my projects that had a web-based interface and put it into a Thrust window. https://github.com/mailslurper
It is working great in both my Ubuntu 14.10 and Windows 8.1 boxes.
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:26
Sweet
let me send you an invite to a similar private test project
Adam Presley
@adampresley
Dec 02 2014 22:27
Sweet
I'd be happy to try it
Perhaps it will have an impact on an issue I'm having on my work machine
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:28
its called PGPMail just added you as a Collab
so far it supports reading pgp encrypted emails
using gmail
Adam Presley
@adampresley
Dec 02 2014 22:28
Ah, I would be interested in that
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:29
its primarily a demo application so i could discover any limitations of the bindings, that might help speed up prototyping of code, but so far it seems that standard web development style is the way to go
the actual bindings do very little except provide that base to build a distributable application
Adam Presley
@adampresley
Dec 02 2014 22:30
I'll check it out.
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:30
p.s. Sorry about the breaking changes, since this project is still in its infancy, we had to break a fair amount to fix it up once i released it FOSS
Adam Presley
@adampresley
Dec 02 2014 22:31
I do have one question, something I'm seeing and wondering if you've seen anything like this
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:31
sure
Adam Presley
@adampresley
Dec 02 2014 22:31
And don't sweat the change, I was able to adjust quickly
I do have a weird problem when I am trying it on my work machine, Win 7, proxy, McAfee Antivirus Agent/firewall thing... all sorts of restrictions. Everything fires up, but for some reason requests going out of the Thrust app to an HTTP server, all running localhost, run really slow.
So the Thrust app fires up, makes HTTP requests, but there are LONG pauses between each request
Only on that machine so far. Not my other two
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:32
Hmm, that would probably be primarily a GoLang situation. Have you tried a simple go program without thrust, does it suffer the same issues
Adam Presley
@adampresley
Dec 02 2014 22:35
I just tried my previous version of the program, without thrust, just browsing to the web interface in Chrome, and I do not experience the issue
It works almost the same. One server listens on a port for SMTP, another for HTTP.
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:36
oh, ok, so the previous version was written in Go using Chrome/http for an interface as well as an smtp port
Adam Presley
@adampresley
Dec 02 2014 22:36
And this issue does not occur on my other two machines. The versions of Go are the same, in fact I compiled this on the machine that worked well, copied to the one that does not
yup
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:36
and only when using go-thrust lag occurs
Adam Presley
@adampresley
Dec 02 2014 22:37
yup
Though the lag is only in requests to th eHTTP server
The SMTP server seems to repond fine
respond*
Certainly odd. One thing I'll try here shortly is getting off my company VPN
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:37
just a shot it the dark, theres a problem with spawned processes going rogue and eating up alot of cpu
can you check your task manager and see if their are any rogue thrust shell processes
that would probably slow down your whole comp and not just an http server however so its a shot in the dark
Adam Presley
@adampresley
Dec 02 2014 22:39
Memory seems good, and there are no rouge processes. I fixed that problem by listening for the "closed" event and calling thrust.Exit()
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:39
nice :)
glad the event handler is working well
Adam Presley
@adampresley
Dec 02 2014 22:40
yeah that worked great
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:40
hmm, maybe with the issue for /x/debug we can figure it out
using a nice expvar and frontend interface, scan some cpu, and memusage, and variables. Something must be happening unique to windows
btw. There is an issue in Thrust Core you should be aware of, which is uncontrolled memory growth when loading different pages
Adam Presley
@adampresley
Dec 02 2014 22:41
yeah, and I'm curious to see if the issue persists off VPN. When I get on VPN certain firewall and port restrictions, and who knows what else, changes
Ah
Any way to address that?
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:42
breach/thrust#231
I think the issue is isolated to the new technology "Webview", JankyBrowser uses multiple webviews to create a tabbed browser experience
i think the webviews may have a leak
spolu is fast to fix things however, and we should see something soon, especially that ticket, its essential to us using Thrust in the next version of http://breach.cc
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:48
btw 0.7.6 will bring a new Remote module for calling remote commands from JS, as well as new Proxy functionality, so we can add support for things like Tor, and various fixes
Adam Presley
@adampresley
Dec 02 2014 22:51
remote commands from JS? like what, for example?
Ooo and I see PGPMail is using LevelDB. I've looked at it but not tried it. Like it?
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:53
not yet, it will though
LevelDB is the best, at least its really awesome in the NodeJS community. Simply put, because it is an embedded key value store, it works really well with Go in my opinion
Adam Presley
@adampresley
Dec 02 2014 22:56
I've worked with MongoDB, but that is very much overkill for most things I'm working with lately
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:56
yea, especially if your goal is to distribute an application, unless the application has no offline mode
It shouldnt be hard to port the NodeJS Level-* ecosystem to Go, i.e. Gossip protocol replication, merkle trees, inverted indexes, map reduce
Adam Presley
@adampresley
Dec 02 2014 22:59
I gotta run. Dinner, kids concert, etc... It was nice chatting with ya
Michael Hernandez
@miketheprogrammer
Dec 02 2014 22:59
def catch ya later