Better HN
topnewbestaskshowjobs
Log inSign up

hellofunk

9,428 karma · joined Jul 10, 2015 (11y ago) · 3,276 submissions

John Bellick, Mexico City
Submissions

comment 6y ago · link · parent

JS is on an extreme end of the spectrum of language inconsistencies, and a lot of developers with extensive experience in other languages strongly prefer not to use it. That's partly why there are so many languages that transpile to JS so you don't have to suffer though actually writing it.

Further, UI development is an area where things can get messy very quickly. "Safe" languages often greatly minimize the kinds of bugs that are very easy to write in JS. This is one reason why Elm and Clojurescript have had years of adoption -- they by default make values immutable (and their entire programming paradigm doesn't actually require mutating most values ever) which removes a large class of common UI errors. There are other benefits as well.

comment 6y ago · link · parent

I feel exactly the same way about Clojurescript and Reagent.

comment 6y ago · link · parent

I noticed this as well, it really confuse me for the first several searches.

comment 6y ago · link · parent

Interesting, I’ve never in my life seen this on any of the macs I’ve had, including one I have now with Catalina. (2015 MBp)

comment 6y ago · link · parent

That’s interesting, with both of these operating systems, I have to remind myself every couple of months to reboot just to be on the safe side, since the actual machines never crash or force me to. When you say your MacBook is crashing, what does that actually mean? I recently realized my Emacs had 300 buffers in it going back many many weeks, and I decided to finally reboot the whole machine and just get back to a blank slate.

comment 6y ago · link · parent

What is the symptom in the operating system that you notice that means it is having a kernel panic?

comment 6y ago · link · parent

Exactly.

comment 6y ago · link · parent

> If the rumor mill is to be believed, AMD’s incoming high-end graphics card could be a monster board bristling with 80 CUs (compute units)

I thought modern GPUs had hundreds of cores, or is a compute unit something different?

comment 6y ago · link · parent

> There's no garbage collection or reference counting. V cleans everything up during compilation. If your V program compiles, it's guaranteed that it's going to be leak free.

400.

MacBook Pro 16 Has a Fan Problem(om.co ↗)

110 points · by jb1991 · 6y ago · 103 comments

comment 6y ago · link · parent

The way this virus passed among three generations of contact in a German office, with no symptoms among any of them during the transmission, is particularly alarming. This thing is super contagious. (asymptomatic parents pass to daughter, who flies to Germany, passes it to two colleagues, flies home, and her colleagues then pass it to other colleagues, all before symptoms appear with anyone).

comment 6y ago · link · parent

Facebook provides two different options, one is deactivation and the other one is deleting. They are not the same thing. If you merely deactivated it, then your account never was deleted.

comment 6y ago · link · parent

It did have a strong component from swine, but also other sources.

comment 6y ago · link · parent

Well, Americans do eat quite a lot more food than most people in the world, and thus they need to relieve bowl movements often. This can be a problem if this causes a queue in your house due to a shortage of toilets. There are a few ways to address this bottleneck. One is to apply scheduling to when individuals eat and carefully study the bowl patterns of each person to adequately predict when a toilet is available, say, in a house of two or more inhabitants. Another method is to increase the available resources and add more toilets.

comment 6y ago · link · parent

No one to easily ask questions about the materials you are reading.

comment 6y ago · link · parent

> Google knows everything you have ever searched for

I thought this was an optional setting. It shouldn’t be saving or collecting this data if you have that turned off in your Google account. Hope so!

comment 6y ago · link · parent

He was both aware and vocal about it and tried to do something about it, but HP was not interested, which gave him freedom to pursue it independently with Jobs.

comment 6y ago · link · parent

Generally bigger than that, though long clever statements using functional idioms like you suggest could be hard to read in some languages.

Cleverness also refers to architecture, designing meta-types to encapsulate all sorts of things that just don't need the flexibility, over-designing a system in anticipation of future needs that may never come. Sometimes it's a delicate balance and often only experience can dictate how "clever" one should be.

Many developers just out of university, or still in it, in certain languages, like to run with clever things they can do with the type system to abstract away all sorts of stuff, which becomes painful later.

comment 6y ago · link · parent

Avoiding cleverness at all costs. Simple code that is easy to both read and write without strong efforts to follow senseless DYI or take on abstraction for the sake of abstraction.

comment 6y ago · link · parent

I don't think you know the whole story. He gave HP the option to own all his work on the Apple I, and he was aware the entire time of the conflict of interest with his employer, and vocal about it.

comment 6y ago · link · parent

then here's another just for you!

  ;;from https://github.com/m2ym/popwin-el
  ;; prevents annoying popup buffers/windows
  (require 'popwin)
  (popwin-mode 1)

comment 6y ago · link · parent

the others I cannot live without:

neo tree

winner mode

god mode (I use instead of evil mode)

avy (visually jump to any char on the screen)

undo-tree (really neat, though I don't use it as much any more)

413.

Uber’s Business Model(twitter.com ↗)

2 points · by hellofunk · 6y ago · discuss

414.

Ask HN: How do you manage the immensity of online items you wish to remember?

1 points · by hellofunk · 6y ago · 1 comment

comment 6y ago · link · parent

This isn't really the right concept. Lots of objects must be on the heap, as the stack cannot contain them. The question isn't to avoid putting objects on the heap, it's to avoid the use of "new" to put them on the heap.

Modern C++ encourages avoiding manually using "new" and relying on smart pointers for that, as they will automatically call "delete" and avoid a large class of memory leaks from heap usage.

Note that member objects are often on the heap without using any smart pointers or use of "new" simply because they inherit the memory area from their enclosing object, and I've see many inexperienced C++ devs manually allocate memory for these objects unnecessarily.

comment 6y ago · link · parent

Well, just write a simple C++11 lambda that uses a reference capture, and store that lambda somewhere and watch your app crash when it that lambda runs after the referenced object is gone. Even if you stick with writing no "new" or "delete" in your code, just as good modern C++ encourages, this simple problem will always be there, and it doesn't just affect lambdas, though that's the sneakiest place it often happens.

Of course you can avoid these problems very easily, but you have to be bitten by them first to know how easy they are to write.

comment 6y ago · link · parent

It would be a nice side effect though!

comment 6y ago · link · parent

This has been well documented for years, the average iOS app earns nearly a multiple of close to 10 what other mobile platforms earn. Their share of revenue from apps is massive compared to their market share of devices.

comment 6y ago · link · parent

> But I don’t see at all how music is connected to experiencing emotions.

Wow, unless I don't understand this sentence, I'm surprised by it.

Music instills emotional reaction all the time -- it can change your mood, it creates the emotional feel of movie scenes, and all sorts of things. It is connected to emotional response, is it not?

1
131415
110