Better HN
topnewbestaskshowjobs
Log inSign up

staticelf

2,500 karma · joined Dec 4, 2013 (13y ago) · 1,025 submissions

Submissions

comment 4y ago · link · parent

Looks very cool! Good job!

Interesting to see that you have chosen Kotlin for the client parts as well. I am assuming it's compiling kotlin to javascript?

What do you think of it so far?

It would be nice with an available option not to sign in with Github since it seems like the requested stuff like "act on your behalf" makes me not want to login.

It's too much of an hassle to create a new github just to play a game so that is unfortunately where you lost me.

comment 4y ago · link · parent

Sure ok, but I don't see how that is possible if it holds the port busy? You can't start two deno processes on the same port number.

comment 4y ago · link · parent

Yes I am aware of that and sure it can be used for export/import like I described. But it won't answer the second part of my question, about Deno not utilizing all cpu cores on a multicore machine?

If I use a web worker it will be for one specific thing and that thing only, not for the entire web request? Thus, if there is anything slowing down the request in form of CPU intensity, it will "kill" the application at least until the cpu intensive request completes.

Sometimes it's hard to know beforehand what users do for example and surprising things can happen. I have had the same issues with Meteor for example where users killed the app because they tried to upload something unexpected that crashed the app and them spamming the upload button kept it crashing after restarts. It was of course an error from my part but it could be avoided if Meteor did support the cluster module. I have also had the exact same issue when unexpected large datasets occurred by user input (not file uploads), the app got so slow it stopped answering requests from other sources. It was after that I discovered that pm2 can run any node app in a clustered mode, which was very nice.

But with that experience in my baggage, it am very hesitant to use Deno because of this reason. I can't host my app on a serverless platform because reasons and I am not sure I even want to even if I could.

comment 4y ago · link · parent

Looks promising and I find the Deno project very exciting!

What is the recommended way of running Deno in production on a multi core machine? In node there is the cluster module that allows one process to run a cpu intensive task while the other processes to continue answering web requests.

This is good for stuff like excel exports as an example on larger datasets. Obviously you could run some kind of cronjob in the background but it seems like I may a bit confused about Denos architechture regarding this subject. I am afraid of switching to Deno because of this since I often want to do these kind of operations without having to do the hassle of breaking the app up for simple exporting/importing operations.

Also, will Deno really utilize other cores on the machine? It seems like if you have a machine with multiple cores Deno won't use the full potential of the hardware or am I just confused about this subject?

comment 4y ago · link · parent

One thing I have never understood about Deno is that how are you supposed to run it on a multicore machine? Since they don't have cluster module like in node there is no way to run one process for each core? If the main thread is busy running some cpu intensive task, it will then block the entire application from answering other requests.

I get that in serverless environments like in Deno deploy each instance gets one core etc but if you're running it on a VPS or just on a normal server I would want something like the cluster module like in node.

comment 4y ago · link · parent

I strongly believe that the projects that adhere to woke people like Debian seems to do will slowly be disfavored by developers and the most skilled ones will join other projects and they will then thrive while projects filled with SJW will slowly succumb to meaningless discussions, projects and become more and more irrelevant.

In order to make progress you can't throw out people because their opinions differs from yours. Identity politics is something that destroys productivity and prohibits challenging thoughts since it basically requires everyone to think and act in the same way.

Just look at Mozilla, Firefox usage it's the lowest it's ever been and their focus seems to be on everything except what's relevant to their core business.

comment 4y ago · link · parent

I have a hard time feeling sympathy with people who tries to include non-violence actions as violence. Either it's violence or it's not, stop trying to muddy the water.

Since I think those people already lie in the first accusation I wonder what else they may be lying about.

comment 4y ago · link · parent

Connect the TV to the network but block it in the network from internet access. That way, you can still use it to cast stuff to via wifi but you don't have to worry about the ads situation.

comment 4y ago · link · parent

Doesn't surprise me the slightest, Reddit is not like it used to be. It used to be the underdog where free speech flourished and today it's a chineese-owned propaganda machine. A few users controls the biggest subreddits and most deviating views get themselves either banned or restricted.

comment 4y ago · link · parent

Please stop with the straw man shit. I do trust lived experience of people that have an ADHD diagnosis. Why would you think otherwise? I do trust people with medical expertise. I do at least have a little experience with people that have ADHD diagnosed so I know some things about it but I never claimed I was an expert. I explicitly wrote that I was not a doctor.

Fuck you too, though.

comment 4y ago · link · parent

I could read research papers about neurological studies but honestly I don't think I would understand it even if I tried. To be completely honest I don't believe you would either since most research papers are pretty hard to understand if you're not involved in the subject matter. One study doesn't make a thing proven science, so to have a good understanding of the matter you would pretty much have read upon it a lot. I don't have any very strong opinions on the subject though so you're simply attacking a straw man.

Please explain how I made the lives of my friends harder. By being their friend? You know nothing about me or my life. Being unfriendly doesn't convince anyone, you're just as much of an example of it as I am.

I just shared my thoughts since I at least have experience of it and if you disagree that's completely fine by me. I don't understand the sentiment today that you're not allowed to have opinions on stuff unless you're a scientist. It is imho impossible to be well read upon all things in life, sometimes all you have is anecdotes and experience.

comment 4y ago · link · parent

I think you just articulated my thoughts about the subject. Thanks!

I wrote my comment pretty hastily and couldn't articulate well enough what I thought about the subject. Luckily people like you exists that can understand my shitty written comment and fine tune it to perfection.

Even if I have it and would get a diagnose from my doctor, I don't think it would change my life for better or for worse so what's the point?

comment 4y ago · link · parent

As I have mentioned to others, I didn't mean for my comment to be read as something negative even if I kinda understand why since it was a bit disregarding from the get go and I didn't elaborate that much.

People today seem to read too much into a small statement and immediately creates a straw man that they later attack in the response.

I am sorry if you have diagnosed ADHD and it has affected your life negatively. I hope and believe that you may overcome your issues whatever they may be. It is great if you can ask for help and see improvement from it.

comment 4y ago · link · parent

It's great that you can read a small comment and reach that conclusion. As I've mentioned to another person in the thread I had an ex that was convinced that I had it and that it had a negative effect on me, something I disagreed on though.

It is my opinion that it hasn't affected me in a negative way since I am satisfied with my life and I have had other issues that have had a much greater negative affect on my life.

I don't think you should chose a company or career based on a disease or a disorder. If you can live with it, which I think most can that have diagnosed ADHD, you could overcome whatever issues come up and still be successful.

I'll even give one practical example, I am usually all over the place and in the tech field I've used that to read up and learn a lot of different languages, tools etc making my skillset in tech very broad which have helped me tremendously in my career. I have a hard time to stick with one programming language and is never satisfied with one thing and switch back and forth on everything. That is both a negative thing and a positive one. I have a (really) hard time sticking to one thing and seeing it through but with tools like todolists and communities like WIP it makes it just a bit easier even if I always have the urge to pick up something else and restarting everything.

comment 4y ago · link · parent

I think you could create tests that describe tests that describe a pretty large amount of people in many ways. In the future we maybe have tests that show if you're a morning bird or a night owl.

The society is structured in a way that makes it easier for some types of people to succeed but it doesn't mean that people who doesn't fit that model can't or that it's something wrong with them. That is what I meant by my initial comment but it is clear that it wasn't how people here read it.

Maybe it exists and is a real disorder, perhaps I even have it. I don't care either way and I try not to let it affect me or my life.

comment 4y ago · link · parent

Sure, I recognize that there may be people with more severe issues. I have two childhood friends that had diagnosed severe ADHD but at the same time they both had other issues as well which I personally think hindered them more in life than their ADHD ever did.

I never tried to convince anyone that it is their fault for whatever problems they encountered in life and sadly one of them died by an overdose in an early age. Perhaps ADHD contributed to their lifestyle of choice, perhaps not.

I am not impossible to convince that I am wrong, I have just never seen any evidence for it (I haven't really searched for it though). AFAIK ADHD is a disorder that we just don't know that much about and maybe it has a biological function that has been positive in the development of mankind.

As I stated, I am not a doctor tho and maybe there is loads of evidence for it in which I am not aware about but frankly I don't care much one way or the other. It's not an issue that I care about that much and I just wanted to share my take since one of my exes was completely convinced that I had it. I know that people with ADHD can be very successful and I don't think people should think less of themselves because of some diagnosis.

comment 4y ago · link · parent

As an european I say go ahead, this would only make room for european alternatives which would probably only be good for everyone.

I really hope that the EU doesn't care about these imo empty threats.

comment 4y ago · link · parent

Yes I could imagine and I have experience of developing apis with "bugs" that you kind of need to keep since people come to depend on it working a certain way.

But I can't help to feel like Node is progressing kind of slow compared to other languages / tools. This is just a personal impression from a bystander who is not really into the actual progression though. I have a feeling that node used to push new features all the time but in last couple of years have stagnated somewhat. Stuff like imports etc is still not really here.

I understand that developing an api that has such huge userbase as node is a massive undertaking that probably has issues that I can't imagine but it doesn't really help me in my day-to-day experience with it.

comment 4y ago · link · parent

Ok cool and thanks for the clarification, I imagined it was more to the topic than I realized.

Last question I have is will this be included in the next version of the LTS version or how do experimental features usually progress for someone who are unfamiliar?

Can't wait until I can use fetch in my codebase without any additional dependencies!

comment 4y ago · link · parent

Quick question, judging from the commit alone this seems like a rather small change. I assume there's more to it though. I just wonder how come features like this that kind of seems obvious to include in the ecosystem takes quite some time to land? I understand the reality is more complex perhaps, so I am genuinely curious.

I hope you realize no disrespect, this will greatly improve the daily work for me since I use node at work every day.

comment 4y ago · link · parent

I disagree with the sentiment here. Modern software is much more polished and professional but perhaps more slow.

I remember installing stuff 10-15 years ago it would constantly fail with weird errors and bugs. Using linux was a real pain. Everything was much more monopolistic than it is today. You had to use x for that, you had to used y for this. While we still have a lot of issues today it is vastly better than it used to be.

I haven't had any machine crash with a BSOD on windows for years and on linux everything just kind of works and I have fewer and fewer issues. I can work remotely 100% of the time and do impressive things in the browser, stuff that was simply not possible at all 10-15 years ago.

I remember what a big deal Gmail was when it came out and today we take that kind of service for granted. Even with all the warts modern software has, it is still better than it used to be.

comment 4y ago · link · parent

I try too but it's basically impossible. I was on the hunt for a dumb tv the other day only to realize that there is simply none on the market. Literally not a single one that's larger than 65" that I could find and for the few ones that do exist the panels are pretty bad.

Just a matter of time until happens to a lot of other appliances.

comment 4y ago · link · parent

Personally, I think most comments here just challenges Mozillas actions rather than just swallowing their marketing material. They clearly, in my and a lot of others opinion, just say stuff while doing something else completely.

It's a leadership issue and for an outsider looks almost like a hostile takeover. I stopped using Firefox years ago at this point and have stopped testing what I build for it since the relevance of Firefox unfortunately is miniscule anyway. They have too little market share now and they just continue turning their backs on everyone that used to support them.

comment 4y ago · link · parent

This is what I use every day :)

comment 4y ago · link · parent

This sounds like something that https://twitter.com/internetofshit would repost

Maybe the firmware is important for the dishwasher though, but it should still function without it. I imagine a dystopian future where some society fails for some reason and internet stop being reliable. So much of our technology is dependent on it to work.

It could be war, it could be solar winds or even more likely that the manufacturer goes out of business and closes down their servers.

This is just pretty bad and I think most of us can agree. Nothing will ever change though since you pretty much don't know about this until it happens to you.

comment 4y ago · link · parent

Completely agree of course but honestly they fired Brendan Eich that was all about this and installed a CEO that is all about identity politics. What do you expect to come out of that?

comment 4y ago · link · parent

For web dev, I would say stuff like Liveview / Hotwire.

It makes you faster on developing complex web applications that would otherwise take much longer time with a traditional SPA-framework. You don't have to worry about handling server communications, how to send data and in what format etc, all updates will be handled in a consistent manner and it's scary easy to make live updates to all connected clients.

Of course, these things are getting more popular now and a lot of people on HN may already know about it but I would assume most laymen still have no clue that this is a thing.

comment 4y ago · link · parent

I work for a small company and we used to use AWS. I think their support sucks. Especially since there is no group accounts and the bills went to another persons account that ended his job at the company.

I had to login to both mine and his account in order to complete my support request or they wouldn't help me. When I called them it was like any crappy indian support team which I barely could understand.

Compare that to DigitalOcean for example, there you can actually group resources for an org and their support is actually knowledgeable about their products and can answer questions even about implementation details. Also, you don't need a PhD in order to understand the UI which is a great plus.

comment 4y ago · link · parent

I was recently on a boat with a bad connection. Searching in windows (11) doesn't seem to work well if that is the case. Even searching for local files, the response is just loading since it appears to wait for some request.
12345
35