[go-nuts] Hash Tables Inner Implementation in Go - A story (for normal people)

2020-11-01 Thread Marwan abdel moneim
Hi Guys, I spent a lot of days diving into the implementation of the maps in Go, and wrote this article that makes it easy for other people to understand the implementation better. Thanks very much for *Keith Randa

[go-nuts] Re: I need help writing an article about the Go implementation of hash tables

2020-10-19 Thread Marwan abdel moneim
com/watch?v=Tl7mi9QmLns > > Peter > > > On Sunday, October 18, 2020 at 9:10:45 PM UTC-4, Marwan abdel moneim wrote: >> >> Hi, >> >> I have some free time, so I thought about writing an article about maps >> in Go, and how it is implemented. It would be a

[go-nuts] I need help writing an article about the Go implementation of hash tables

2020-10-18 Thread Marwan abdel moneim
Hi, I have some free time, so I thought about writing an article about maps in Go, and how it is implemented. It would be a good dive for me and for other people. I came across this file in the source code. But while I still rememb

[go-nuts] Re: RFC: Blog post: How to not use an HTTP router

2017-06-20 Thread Marwan abdel moneim
I am not sure, but i think you may find this interesting https://github.com/mrwnmonm/handler On Monday, June 19, 2017 at 12:02:37 AM UTC+2, Axel Wagner wrote: > > Hey gophers, > > in an attempt to rein in the HTTP router epidemic, I tried writing down a) > why I think *any* router/muxer might n

[go-nuts] Show Go-Nuts: A light, expressive Go HTTP handler.

2017-04-03 Thread Marwan abdel moneim
https://github.com/mrwnmonm/handler Do you like this expressive way to write handlers? Appreciate your feedback. -- 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

[go-nuts] is it a waste of time to study old synchronization algorithms?

2017-02-24 Thread Marwan abdel moneim
Algorithms like Peterson’s algorithm and others , which i think was developed before languages provide Mutexes or Channels (or some

Re: [go-nuts] is this race condition normal?

2017-02-20 Thread Marwan abdel moneim
even if i wrote > go func1 go func2 is there any guarantee that func1 will run first? even just the first instruction? On Sunday, February 19, 2017 at 11:25:34 PM UTC+2, Jesper Louis Andersen wrote: > > On Sun, Feb 19, 2017 at 9:41 AM Marwan abdel moneim > wrote: > >&

Re: [go-nuts] is this race condition normal?

2017-02-19 Thread Marwan abdel moneim
19, 2017 at 3:41:13 AM UTC-5, Marwan abdel moneim > wrote: >> >> i wanted to do it without a Mutex >> but there still something not clear to me, but i don't know what it is >> and i don't understand what "trigger" synchronization means >>

Re: [go-nuts] is this race condition normal?

2017-02-19 Thread Marwan abdel moneim
, 2017 at 9:32:28 AM UTC+2, Jesse McNelis wrote: > > On Sun, Feb 19, 2017 at 3:59 PM, Marwan abdel moneim > wrote: > > i'm reading a book about concurrency, and was doing some baby steps > > so i'm trying to manage a variable changes to be locked when a process >

[go-nuts] is this race condition normal?

2017-02-18 Thread Marwan abdel moneim
i'm reading a book about concurrency, and was doing some baby steps so i'm trying to manage a variable changes to be locked when a process starts and freed when it ends this is the initial code https://play.golang.org/p/qGraa8yQEc and this is my solution https://play.golang.org/p/wC9tcbpVjf my q

Re: [go-nuts] Re: is there a way to mirror a standard package while adding some functions to it?

2017-01-27 Thread Marwan abdel moneim
fy net/http directly. > > Just create a library with custom handler types that satisfy the > http.Handler interface. Many existing Go routing libraries & frameworks > will get you 90% of the way there. > > > On Fri, Jan 27, 2017 at 7:42 PM Marwan abdel moneim > wrote

Re: [go-nuts] Re: is there a way to mirror a standard package while adding some functions to it?

2017-01-27 Thread Marwan abdel moneim
i want to do something like this http.Handler{ Action: "Create new user", Method: "POST", URI: "/users", Auth: false, Params: []string{"name:max=100"}, Do: func(r *http.Request) http.Response{ .. return http.JSON(&user) }} and do the common tasks lik

[go-nuts] Re: is there a way to mirror a standard package while adding some functions to it?

2017-01-27 Thread Marwan abdel moneim
> > do your changes require you to modify the package? > yes, i want to add some functions, but still provide all the package to the user Why not use wrap it? > i would have to wrap all the functions, very tedious On Saturday, January 28, 2017 at 5:06:31 AM UTC+2, Matt Silverlock wrote: > > N

[go-nuts] is there a way to mirror a standard package while adding some functions to it?

2017-01-27 Thread Marwan abdel moneim
i want to add few changes for the net/http package, while keeping the rest of the package as it is, but without copying the package source and put it in another one, i want my package to mirror whatever the package version installed -- You received this message because you are subscribed to th

Re: [go-nuts] stupid question: how much processors/ram a twitter like web app (doing just CRUD operations) need to serve 1k request/s ?

2016-11-22 Thread Marwan abdel moneim
100 > http://localhost:3000/ > > Then i use 'top' to see how much cpu/ram its using. > > On Tue, Nov 22, 2016 at 3:27 PM, Marwan abdel moneim > wrote: > >> i know this depends on a lot of variables, but i don't need something >> accurate >>

[go-nuts] stupid question: how much processors/ram a twitter like web app (doing just CRUD operations) need to serve 1k request/s ?

2016-11-22 Thread Marwan abdel moneim
i know this depends on a lot of variables, but i don't need something accurate if from your experience you could guess how much an app like this would need? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] building rss aggregator (thousands of goroutines sleeps at the same time)

2016-11-04 Thread Marwan abdel moneim
i am building a web site that includes a rss aggregator now, the idea i have is making a goroutine for every rss feed that should learn by time when to update the feed these goroutines sleeps for a while then send job to some channel then go to sleep again so there could be a thousands of go