HNHacker News
TopNewBestAskShowJobs

freecodyx

170 karma · joined November 23, 2016

From Morocco With Love,

GoLang for the win

submissionscomments
freecodyx··on Costs of running a Python webapp for 55k monthly users
The cost this month will be higher, YC hug
freecodyx··on C Internals
i learned those common patterns by using godbolt.org
freecodyx··on Some coronavirus patients haven't gotten their senses of smell or taste back yet
I remeber I was always happy when I lose my sense of taste and smell because of flu, this will help eat more, I don't eat a lot, and my options are limited because of high sense of smell and taste,
freecodyx··on Giant Molecules Exist in Two Places at Once in Quantum Experiment
i feel like my brain is too abstract to accept the idea of something can be at multiple places at once, feels like a chess game, in which every possible move is already known, you only chose one at a time, and thus you decrease the possibilities toward your goal, and there is no go back.
freecodyx··on European Parliament set to end EU-wide daylight savings
Here in Morocco, it was made permanent starting this year, so instead of being GMT we are GMT+1 all year round,

Except, this decision was made brutally without any prior discussion or vote,

freecodyx··on Nvidia GeForce GTX 1660 Ti 6GB Review
Haha. Or php 5.6 to 7
freecodyx··on Go 1.12 Release Candidate 1 is released
please do, and let us know
freecodyx··on Go 1.12 Release Candidate 1 is released
Well, this is the issue, when my function exceeds the timeout configured in the function yml, lambda will respond with internal server error, and will freeze the VM, if it decides to reuse the VM for another request, then the go-routines of the last call will resume (because i didn't call os.Exit).
freecodyx··on Go 1.12 Release Candidate 1 is released
""" The Go runtime's timer and deadline code is faster and scales better with higher numbers of CPUs. In particular, this improves the performance of manipulating network connection deadlines. """

I hope so, i was testing running a service as a lambda function in AWS,

I am using time.NewTicker()/time.After() and co to control go routines behaviour (via channels).

To my surprise, this is not behaving well in lambda, many times, a Ticker configured for 1 second for example, will tick after 12 sec, sometimes even 200sec, it's not consistent at all.

When i increase the memory allocated to the lambda function (which will increase the number of cpu) it behaves better.

It's a large service with millions of call per day. i don't know if this was related to the GC stopTheWorld, Or something is wrong with lambda runtime.

freecodyx··on Explain shell
What I like most about this kind of posts. Is that users will share other alternatives and gems. Not disspointed
freecodyx··on Memory usage of a toy C# server and client with 500K concurrent connections on
C# is such an expressive language.
freecodyx··on Bytecode compilers and interpreters
Thank you, i think using go was a good option (at least for me), it makes the book very readable and can apply and code with confidence
freecodyx··on Algorithms, by Jeff Erickson
Yes, it is readable, it's called kuffi,
freecodyx··on Jason Fung explains why intermittent fasting diets work
Personally, i don't have issues with overweight. but before last ramadan (June), i was having some digestive issues, i lost appetite, and i was feelings like i need to vomit, but just after ramadan, everything is back to normal, i recovered quickly, and everything is back to normal,

Also i was starting to get used to drinking beers (alcohol), but i had not to drink the whole month, and since then i don't drink (i don't miss it) for non muslims it might seems like it's crazy thing to do and you are harming yourself, but it's really easy for us and we miss it.

freecodyx··on Jason Fung explains why intermittent fasting diets work
as a muslim, i have to fast for a whole month (non stop) each year, it's hard, but i can clearly see the benefits during and after.
freecodyx··on Calls between JavaScript and WebAssembly are finally fast
some people are just good with explaining stuff,
freecodyx··on Recursive fibonacci benchmark using top languages on GitHub
During the my last technical interview, they asked my to write a fibonacci implementation in golang, i wrote the code, then they asked me to test it for like fb(180), i was surprised how slow it, then i was asked to come up with an optimisation in order to make it fast, i come exactly with same fib-mem.go provided in this benchmark, i was hired !
freecodyx··on Crafting Interpreters: Strings
>>Don't get "voilà" confused with "viola". One means "there it is" and the other is a tiny string instrument. Yes, I did spend two hours drawing a viola just to mention that

madness,

freecodyx··on Lessons from Building and Scaling Reddit's Ad Serving Platform with Go
i will add to not use the default http.Client/Server,

poor performance, instead use fasthttp

freecodyx··on x86-64 Assembly Language Programming with Ubuntu
reverse-engineering ?
freecodyx··on Java’s new garbage collector promises low pause times on multi-terabyte heaps
i did google search for "refcount meme", and found out your comment as 3rd result, so it's not that popular...
freecodyx··on AWS icon quiz
got 5/20 with the help of google photos search,
freecodyx··on What did Earth look like X million years ago?
Africa 90m years before was splitted into two giant pieces, and then merged into one piece ??
freecodyx··on Show HN: Lambda speech
never submit a free.fr here, it won't be able to handle the traffic
freecodyx··on Image optimization decreased website's page weight by 62%
we recently moved all our images to s3, we have created some lambda function which compress the images using Guetzli, it's very slow but the results are good.
freecodyx··on Ask HN: What are the best hacks to fight depression?
what worked for me,

1. disable social media, even netflix 2. running, swimming, and weight lifting (make new friends ) 3. lower my expectations in life, 4. socialise more with family and friends 5. explore new stuff (fishing, gardening, cooking) 6. meditation (or prayers since i am a muslim) 7. smile more, and care less about technology

freecodyx··on A Virtual Machine
I follow you on twitter and get excited whenever there is an update. but man you are very perfectionist

Thank you for the great work and can't wait for the next

freecodyx··on Compressing and enhancing hand-written notes (2016)
interesting, i was working on something similar, (get color palette from an image).
freecodyx··on China using big data to detain people before crime is committed
reminds me of pychopass
freecodyx··on Show HN: Mux Video, a simple API to powerful video streaming
interesting, also looking at the team behind, the product must be good,
← PreviousPage 3 of 4Next →