News for hackers. Stuff that matters.

chunkyguy

Re:Every fucking website: 2026 edition on Saturday August 15, 2026 @04:02AM (#49308702)
What is wrong with this layout?
Like last year at a cafe in a small town somewhere in Greece.

You make it sound like indoor smoking in public places is a thing of a past.

I'm not upgrading to Tahoe my personal macbook because of the audio crackling issue that I have on my work macbook

https://discussions.apple.com/thread/256143303

Re: on Wednesday April 01, 2026 @08:48AM (#47600133)
> You treat your code as a means to an end to make a product for a user.

This sounds more like a product owner not a developer

You need to understand the context. The quote in Gita was to motivate the best warrior of the time at the battlefront facing opponents who were mainly his cousins and uncles.

In that context the quote is about performing the duties you were born to do without overthinking the consequences.

Re:The Top Programming Languages 2025 on Wednesday September 24, 2025 @08:31AM (#45359381)
If there is HTML in the list then why not JSON?
Re:Object-oriented design patterns in C and kernel development on Wednesday August 27, 2025 @02:01PM (#45042898)
> This introduces performance issues larger than the typical ones associated with vtable lookups.

Don't know about other programming languages but with Objective-C due to IMP caching the performance is close to C++ vtable

  Name Iterations Total time (sec) Time per (ns)
  C++ virtual method call 1000000000 1.5 1.5
  IMP-cached message send 1000000000 1.6 1.6

https://mikeash.com/pyblog/friday-qa-2016-04-15-performance-...
Re:I want an iPhone Mini-sized Android phone (2022) on Thursday July 17, 2025 @04:40PM (#44597954)
This is so true. I switch from iPhone 5s to iPhone SE to iPhone 13 mini. After my current phone dies I don't know what phone would I get next.
Re:Is this the weirdest thing in C? on Monday December 09, 2024 @10:03AM (#42366825)
C has many syntactic sugar and [] operator is one of them. -> is another popular one.
> After a formal investigation in 1907, psychologist Oskar Pfungst demonstrated that the horse was not actually performing these mental tasks, but was watching the reactions of his trainer.

Sounds like machine learning

> The tooling idea is particularly appropriate for JavaScript since many developers actually code in TypeScript and rely on compilers such as Babel, Webpack or the TypeScript compiler to output JavaScript.

Hot take

Can you not simply use a feature flag that you control remotely to toggle the app between fake and real modes? You just need to toggle the flag on when submitting for review
this sounds like a good explanation:

> University of Göttingen had more academic freedom than generations past. They were promised intellectual autonomy and freedom from close religious supervision. Instead, they were recruited solely to advance knowledge and carry out original research. The education of students was also more egalitarian than it had been previously in Europe, as both rich and poor were admitted and trained.

Re:C-Macs – a pure C macOS application on Saturday April 20, 2024 @05:26PM (#40101165)
There's also `clang -rewrite-objc` that "Rewrite Objective-C source to C++" which does the same trick of mapping objc code to `objc_msgSend`

https://clang.llvm.org/docs/ClangCommandLineReference.html#c...

> While it does cost $99 to get in the store, the app can be used by millions for no additional cost. Hosting fees for a web app will grow along with the user base. Even without users, a domain plus a basic hosting plan will easily be more than $99/year.

$99/year is just to host the 'client-side'. Most likely you still the backend so that cost is still the same.

Piracy isn't a new buzzword but ever since Apple made it a selling point everyone is hopping on the train.

Also when it comes to privacy there's a thin line between collecting data and selling it to partners.

Also real security issues should be tackled on the os level. If the app sandboxing is actually robust then I don't see what is the problem.
> Thirteen. Instagram had thirteen employees when acquired by Facebook.

But then Instagram was mostly just a simple photo editor app without the social graph complexity. Sure you can still build and maintain such an app with thirteen people.

Re:Microsoft overtakes Apple as most valuable company on Friday January 12, 2024 @02:23AM (#38965082)
Apple Stock Falls In Minutes After 'Vision Pro' Announcement"

https://www.barrons.com/livecoverage/apple-wwdc-2023/card/ap...

Also Microsoft is still selling HoloLens but for selected audience.

Re:Is Objective-C BOOL a boolean type? It depends on Wednesday January 10, 2024 @03:03PM (#38942429)
This is the best way for having a objc and c++ in same project.
Re:Sweden (Not Switzerland) on Sunday October 29, 2023 @09:21AM (#38058360)
As a kid I was more confused between Sweden and Sudan
Re:iOS 17 is available today on Monday September 18, 2023 @03:14PM (#37560648)
I miss no access control for speaker. There is global default. I turn on speakers for one music app and at next launch another social media app plays their ads on full volume.
Re:Ask HN: How do I get into consulting / freelancing? on Thursday September 14, 2023 @04:54PM (#37514723)
The best freelancing jobs I got were from my network. Mostly people who were contacted by someone for a gig and they referred my name.
Re:Ask HN: What programming languages are you using at $WORK? on Thursday September 14, 2023 @04:48PM (#37514645)
Best choice.
Re:Ask HN: What programming languages are you using at $WORK? on Thursday September 14, 2023 @04:47PM (#37514630)
Swift, Kotlin, C#, Javascript
Re:An Introduction to Metaprogramming in Ruby on Friday July 28, 2023 @01:54AM (#36903469)
As an Objective-C developer Ruby sounds very familiar.
Re:Mixing Swift and C++ on Sunday July 23, 2023 @12:36PM (#36836951)
> A C++ class or structure becomes a standalone type in Swift. Its relationship with base C++ classes is not preserved in Swift.

C++ `class Fern: public Plant` becomes two different types in Swift `struct Plant` and `struct Fern`, how is this supposed to help anyone?

https://www.swift.org/documentation/cxx-interop/#accessing-i...

Can we just agree that there can never be one solution that fits all problem spaces. I use both C++ and ruby for different jobs and I like/hate both equally.

Older »