Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,630 members, 7,958,876 topics. Date: Thursday, 26 September 2024 at 06:24 AM |
Nairaland Forum / Omzie's Profile / Omzie's Posts
Celebrities / Re: The Moment Don Jazzy Met Kanayo O Kanayo For The First Time (Video) by Omzie(m): 2:52pm On May 11, 2021 |
Booked |
Programming / Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Omzie(m): 8:10am On Dec 01, 2020 |
cixak95211: See why i said you are unwilling to learn. I can bet you didn't read any of the articles i posted. Oh and the OFFICIAL DOC i posted was "he said, she said"? You're just shortsighted and wont go out of your way like we have to benchmark these things. Okay let me educate you, let's do a simple bubble sort. We would Iterate over a million times over a 10-item array and sort. node.js function bubbleSort(input) { var n = input.length; var swapped = true; while (swapped) { swapped = false; for (var i = 0; i < n; i++) { if (input[i - 1] > input [i]) { [input[i], input[i - 1]] = [input[i - 1], input[i]]; swapped = true; } } } } for (var c = 0; c < 1000000; c++) { const toBeSorted = [1, 3, 2, 4, 8, 6, 7, 2, 3, 0]; bubbleSort(toBeSorted); } golang package main var toBeSorted [10]int = [10]int{1, 3, 2, 4, 8, 6, 7, 2, 3, 0} func bubbleSort(input [10]int) { n := len(input) swapped := true for swapped { swapped = false for i := 1; i < n; i++ { if input[i-1] > input[i] { input[i], input[i-1] = input[i-1], input[i] swapped = true } } } } func main() { for c := 0; c < 1000000; c++ { bubbleSort(toBeSorted) } } Now run and benchmark those. Or, I should also post code to teach you how to benchmark from bash?? This brings be back to my earlier statement, I AM SURE YOU'VE NEVER WRITTEN A SINGLE LINE OF CODE IN GO. If you had, and actually done benchmarking, you wont come here saying stuff you dont know. |
Programming / Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Omzie(m): 12:34am On Dec 01, 2020 |
cixak95211: He said emotions, lol. Anyways, I’m a huge advocate of using what works for you. But for you to say node is as fast as Go.... HELL NO! Like I said earlier, in normal stuff like simple crud operations, they would perform similarly. The difference comes in CPU intensive tasks! You said concurrency? Lol.... tell me how a runtime that operates on only two threads would outperform a language that can natively spin thousands to millions of goroutines at will depending on your Ram? Oh, you want to argue that node uses more than two threads? Here’s an article from the official docs https://nodejs.org/ru/docs/guides/dont-block-the-event-loop/#what-code-runs-on-the-worker-pool One thread for the event loop, another for the worker pool. Or you don’t agree with the official docs too? Let me leave you with a graph and a link with an article to the graph https://medium.com/@kevalpatel2106/why-should-you-learn-go-f607681fad65 I can bet you haven’t written one single line of Golang, that’s why you’re saying this. An interpreted language running in a runtime environment running faster than a statically typed compiled language that compiles ahead of time with concurrency built into it... smh
|
Programming / Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Omzie(m): 6:33pm On Nov 30, 2020 |
cixak95211: C’mon man, stop making me laugh, an environment (this is for other readers that confuse node as a language, it’s just a JavaScript runtime) has a better memory allocation than a compiled language that is compiled ahead of time to native code? Really? Leemao Uber, Upguard, Koding, etc. have migrated to go. They don’t know about node shey? Or they’ve never heard of it before? Abi they’ve never used it and saw that it didn’t scale well? Smh, plain simple, JavaScript would never outperform go in anything... NEVER! Talk less of a runtime environment for it. Talking about garbage collection and malloc � Comparing a “single threaded” environment to a language that can spin up thousands of goroutines without breaking a sweat. The only thing node beats go in is the developer tools that are readily available now. And that’s because more devs are on the JavaScript side. Performance, Scalability, Concurrency... Go beats it hands down. Before I leave, the creator of node.Js said and I quote verbatim “That said, I think Node is not the best system to build a massive server web. I would use Go for that. And honestly, that’s the reason why I left Node. It was the realization that: oh, actually, this is not the best server-side system ever.” And here’s a link to the ycombinator post https://news.ycombinator.com/item?id=15767713 So tell me, do you know more than the person that created node |
Programming / Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Omzie(m): 2:02pm On Nov 30, 2020 |
Donpre: Huh? Did I just read “on par or ‘just’ slower” than go? No interpreted language would ever run as fast as or ‘just’ slower than a compiled language. Never! Sure, in most basic stuffs that aren’t demanding, they’ll perform similarly. But, in major stuff, Go would kill it. I can spin up millions of goroutines to handle cpu intensive tasks concurrently at an extremely cheap rate (just around 4KB per goroutine). Wanna try that on node and watch the event loop choke? Lol 4 Likes |
Phones / Re: What Are The Best Fonts Out There? (Share Your Homescreen & Font Name) by Omzie(m): 8:16am On Nov 18, 2018 |
We no get choice na 2 Likes 1 Share
|
Sports / Re: Cristiano Ronaldo Arrives In Italy To Complete Juventus Transfer (Photo) by Omzie(m): 8:32pm On Jul 15, 2018 |
Lucid1: Wow, that’s all your eyes could see |
Religion / Re: Why You Should Avoid Sexual Immoralities On Campus by Omzie(m): 9:07am On Jul 15, 2018 |
Okay, so how does this stop us from being h0rny 11 Likes 2 Shares |
Fashion / Re: 5 Truths About Microblading; An Eyebrow Defining Method by Omzie(m): 5:09pm On Jul 10, 2018 |
ibkayee: A very fine werewolf judging from your DP 1 Like |
Literature / Re: Memoirs Of A Yoruba Demon by Omzie(m): 3:50pm On Jul 05, 2018 |
Lol, I wonder why y’all bother, this story taught me a very good lesson, Never read a story on Nairaland that has not been completed. Who wants to bet that the OP won’t finish this project I bet he has even forgotten the plot twists and storylines. |
Business / Re: Femi Otedola Suspends Twitter Account Due To Impersonators by Omzie(m): 1:36pm On Jul 01, 2018 |
Simply buy twitter and do the verification yourself 3 Likes |
Celebrities / Re: Drake Gives Accolades To Wizkid And Tekno For Inspiring His New Album by Omzie(m): 11:52am On Jul 01, 2018 |
. |
Romance / Re: 5 Warning Signs Your Girlfriend Is Cheating On You by Omzie(m): 11:38am On Jul 01, 2018 |
Happened to me 1 Like |
Celebrities / Re: World Cup: Daddy Freeze Mocks Those Who Prayed For Nigeria To Win by Omzie(m): 10:37pm On Jun 17, 2018 |
emeijeh: No offense, but you made no iota of sense in this post. Matches are won with skill, determination, and most importantly, preparation. The teams of 94 and 96 were far superior to what we have now, and boy were they determined. Did you see Croatia pray even once? Silly ass beliefs. Instead of them, immediately after the half time whistle, to quickly head back to the changing room, address their issues and get their shit together for the second half, they were there wasting valuable minutes in pointless prayers. Now you see the major problem we have in this country? Senseless supernatural beliefs. Praying like the Croatians are any less God’s children. Nonsense!!! 3 Likes |
Romance / Re: Transgender, Miss Sahhara Burns Her Boobs While Cooking (photos) by Omzie(m): 10:02pm On Jun 11, 2018 |
decatalyst: Are you ins*ne!!! It is a transgender |
Politics / Re: Ekiti Shooting: Bamidele Flown To UK In Tinubu’s Jet by Omzie(m): 9:04am On Jun 10, 2018 |
.. |
Celebrities / Re: Lady Goes Topless, Recreates Dbanj shirtles Photo To Celebrate His 38th Birthday by Omzie(m): 9:04am On Jun 10, 2018 |
.. 1 Like |
Education / Re: JAMB Generated N9 Billion And Remitted N7.8 Billion In Buhari's Administration by Omzie(m): 12:27am On Jun 10, 2018 |
Aieboocaar: You see how ignorant you are? Just take a look at yourself!!! The post says they REMITTED not generated! If you don’t know what to say, just keep mum and stop being a thrash generator. 1 Like |
Romance / Re: Man Disappointed After His Girlfriend Left His House Without Washing The Dishes by Omzie(m): 1:04pm On May 04, 2018 |
Preshy561: As a guy, when I go visiting my friends, they offer food as usual. After eating, I feel uncomfortable when I’m not allowed to go drop the dishes in the kitchen and wash them myself. It’s only if the host is persistent that I don’t go to the kitchen that I’ll permit my dish to be taken and cleaned up by someone else. Now back to the matter, the girl went over, they had drinks and food, hence she had a hand in the kitchen litter. If she helped in packing the stuff to the kitchen and left em there, then that’s a no-no! The least she could have done to earn some respect was to do her dishes while having the courtesy of doing the guys dishes too. But, if the guy was the one that carted all those junk to the kitchen, well he can’t blame the girl, as he said, it was the girl’s first time there, some girls are rather restrictive when in an environment for the first time. So they would just play the guest until they become very familiar with that environment. Well I guess there are different angles to see this though. Personally, if a girl comes over to my place for the first time and she starts cleaning and doing stuff, well, it would be weird to me, more like she’s trying hard to please me or something which I’m not a fan of. |
Celebrities / Re: Davido Visits Roadside Eatery To Enjoy Amala And Ewedu - Pictures by Omzie(m): 11:07pm On May 02, 2018 |
Fweshspice: Omo Ale Jati Jati 1 Like |
TV/Movies / Re: #BBNaija: Nina Apologizes To Her Boyfriend For Kissing Miracle In The Shower by Omzie(m): 7:53pm On Feb 01, 2018 |
So, in essence, she’s an open ashy 1 Like
|
Literature / Re: The 48 Laws Of Power- Which Of The Laws Is Your Favourite? by Omzie(m): 8:08am On Jan 14, 2018 |
COOLDK: Bro, can I get the book from you? PDF or ePub. Thanks. |
Celebrities / Re: “cyberbullies Need To Expire This Year” — Simi by Omzie(m): 5:27am On Dec 31, 2017 |
Una no dey sleep? 1 Like |
Education / Re: Landmark University Begins Rice Production (Photos) by Omzie(m): 6:48pm On Dec 15, 2017 |
tstx: Wrong!!! All thru my stay in Covenant Uni, i never bought bottle water for more than 50 naira (Its hebron water and its also produced in the school, was buying pure water at 5 naira even though the outside world sold at 10 naira). 1 Like 1 Share |
Fashion / Re: Tailors Strike Swiftly As They Re-create Knockoff Version Of Ebuka's Agbada by Omzie(m): 11:04am On Nov 24, 2017 |
Lakeside79: Blood of Jesus!!!! All these for just one gal 1 Like |
Music/Radio / Re: Iyanya – Bow For You (official Video) by Omzie(m): 8:55pm On Sep 08, 2017 |
Seen |
Phones / Re: When You Call From Abroad Do People See Nigerian Numbers? Twitter User Blames FG by Omzie(m): 3:13pm On Aug 30, 2017 |
Addicted2Women: Yes you can do that quite alright. But perhaps the OP (and other people don't know about this, moreover, u have to pay to get that number on textme active, ITS NOT FREE). The main point here is that, when you receive calls from outside, it shows a local number instead of the international number, and when you try calling that local number back (trying to reach ur international counterpart) IT NEVER GOES THRU. Happens to me recently, I receive calls from our branch head in the U.K., but when I try calling the local number it shows, it never goes. I can only call him back because I have his U.K. Number saved on my fone. What of those that don't have his number, how do they reach him back when he calls them. So u see, the OP is right! 1 Like |
Business / Re: 5 Lessons I Have Learnt From Earning Over N6 Million On Fiverr by Omzie(m): 8:55am On Jul 24, 2017 |
mrphysics: Kindly send me another mail, I didn't know it was my old mail that I no longer have access to that was stated in my profile, I have changed it now to the correct one, thanks a lot. |
Business / Re: 5 Lessons I Have Learnt From Earning Over N6 Million On Fiverr by Omzie(m): 11:57pm On Jul 23, 2017 |
mrphysics: Exactly, u're correct bros, I've not gotten to the point where I want to withdraw. Please can you put me through on this payoneer thing. How to set it up without making mistakes/errors. Thanks a lot bro |
Business / Re: 5 Lessons I Have Learnt From Earning Over N6 Million On Fiverr by Omzie(m): 11:33pm On Jul 23, 2017 |
Bigboyz32: Sorry for quoting the whole thing lol. But I have just a question I think u can help me out with. I'm tired of being tossed around by people claiming to know stuff about fiver and at the end of the day no result. I am a web developer/designer so I'll most likely create gigs in that category. 1. Mode of Payment. From my little experience, I know for sure that fiver only accepts PayPal as payment option. We in Nigeria, under normal circumstances can't receive money with our PayPal, now how do I counter this. I would love for you to put a brother through on how to receive money with a valid PayPal account. Setting it up and stuff. Would really appreciate if you can put me through on this one, asked a couple of people before but all they do is take me round and round and at the end of the day leave me hanging cuz they don't know what they are doing too. Thanks. |
Education / Re: What Where The Biggest Lies You Were Told By Teachers In School? by Omzie(m): 7:29am On Jul 16, 2017 |
When I was in JS3, my Yoruba teacher then said he scored all A's in his WASSCE. He gave the impression that he didn't know jack, and did one kind of jazz. How this jazz worked was that, when he sits in the exam hall, on the top left corner of the black board, a funny looking face will appear, telling him all the answers correctly. The catch to it though was, if he laughed at how funny the face looked at any time, he would run mad for life. LOL! People dey lie sha. |
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 82 |