News for hackers. Stuff that matters.

renegadus

You can - click "All Tasks" under the File menu or press CMD+T when the app is focused.
Re:I Just Lost 1,400 BTC (2020) on Saturday August 28, 2021 @12:31PM (#28339317)
Because banking transactions are far more traceable and can often be reversed if found to be fraudulent.
Interesting, thank you.
The company was recently valued at over $6 billion.
Thank you for the suggestion.
I agree, but I don't want to give up 5% for something I could potentially do myself.

Is 5% a reasonable cut for a middle-man when selling shares privately?

I have fully-vested options in a private company which expire in Dec 2023. A company has reached out to me saying they have a buyer for the shares. The shares are worth > $300k.I'd like to sell because they expire in Dec 2023 and I don't know if there will be a liquidity event before then, however they want to take a 5% cut.Is this a normal cut for a middleman in this type of transaction? Is...

( Read More... | 13 comments | 6 points | on HN )
Re:Hatari: An Atari ST/STE/TT/Falcon Emulator on Monday February 04, 2019 @05:36PM (#19081349)
Nice, had an Atari 800XL, then a 512STfm, and then I was one of the 3 people who purchased a Falcon 030.

Learned Atari basic from a 2 page leaflet that came with my 800XL when I was 8, then progressed through True Basic and GFA Basic.

Filesystems don't rely on space voluntarily donated by others, and that's the critical difference here.

Freenet is designed for sharing information, not archiving it. You can't have both.

In future we'll use <blink> tags ;)
> That's actually fine considering the goals of the system, but any time anyone mentioned it Ian and others would go a bit ballistic.

The system did not and could not store information permanently, if it did it would fill up, which is a non-starter when it depends on people volunteering their hard disk space.

I don't know about going ballistic, but since this issue is addressed directly in their papers (section 3.4 of the linked paper) I can see us getting irritated by people re-asking questions that have already been answered.

Re:Kweb: A new approach to building rich webapps, in Kotlin on Wednesday December 12, 2018 @02:13PM (#18666797)
> here if I click on something and there is no internet, I won't see a loading icon.

Fortunately, that's not so - Kweb has a neat way to handle it - outlined here: https://www.reddit.com/r/programming/comments/a4dtp2/kweb_a_...

Re:Kweb: A new approach to building rich webapps, in Kotlin on Wednesday December 12, 2018 @02:06PM (#18666735)
I appreciate your feedback.

> In my opinion, we can't say the separation has been "eliminated" if I'm constantly having to ask myself "should I handle this event on the server or the client via `onImmediate`?"

Well, I said "virtually eliminated" :)

I think it's an exaggeration to say that the programmer must constantly ask themselves this, it's only relevant when adding an event listener. You'll get along just fine if you never used onImmediate, it just means your webapp may not feel quite as snappy as it could be.

To me this seems like a very small price to pay to avoid having to bifurcate your application across client and server - particularly given that it's not even compulsory, it's an optional optimization.

> What seems more likely to happen, is that inexperienced developers simply won't ask the question at all and months later the customer will ask why their dashboard page is taking 60 seconds to load. The senior engineers will be tasked to fix it only to find out that the page is making dozens or hundreds or thousands of N+1 round trips to the server.

An unnecessary roundtrip may add 200ms of latency across a typical internet connection to the speed with which the page responds to an event, but I can't think of any circumstances under which this would delay the page render.

Moreover, a website built without onImmediate should work just fine, it just might not quite match the performance of a well-written client-side app.

> This has been my experience being asked to come in to fix MeteorJS apps. Teams of web developers not understanding that the client/server interface is not free and that poor engineering practices have severe compound effects.

There is only so much a framework can do to save programmers from themselves. In this case the risk is that the app may feel a little more sluggish than it otherwise would, a difference that users might not even notice.

It may be possible to automatically identify candidate event handlers which don't appear to be modifying server-side state and provide a nice list to the programmer, but I'd likely only invest time in this if it proved to be a significant issue in practice.

Re:Kweb: A new approach to building rich webapps, in Kotlin on Tuesday December 11, 2018 @06:41PM (#18660061)
Ah, understood. If you're locked in to Scala then unfortunately Kweb probably won't be a good fit :(
Re:Kweb: A new approach to building rich webapps, in Kotlin on Monday December 10, 2018 @06:10PM (#18651927)
Hmm, I'm not sure, but my guess is "not very" as I didn't really design it with usage from other JVM languages in mind.

The reason is it depends on some stuff like coroutines - and since Scala deprecated their delimited continuations plugin way back when, I don't believe Scala has any equivalent feature.

May I ask why you ask?

Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @07:51PM (#18644361)
Ah, you're right. Ok, I think I can do that fairly concisely in Kweb also, if I find a bit of time.
Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @07:00PM (#18644159)
Hmm, it seems to be adding things to a list but where is it adding a new DOM node?
Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @05:27PM (#18643697)
Unfortunately that's one area where Kweb is currently immature, however beyond what's on the website there are a number of examples that should help:

https://github.com/kwebio/core/tree/master/src/main/kotlin/i...

Also, if you use IntelliJ IDEA then the IDE will do a lot of the work for you in figuring out the API.

Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @05:21PM (#18643669)
I don't think there is any reason, in principle, that Kweb can't be just as efficient as any other web application.

This is because Kweb doesn't entirely abstract away the client/server separation in one important sense. When you attach a callback to something you normally do it like this:

  button.on.click {
    header.text("They clicked!")
  }
This is less efficient than it could be because it is needlessly doing a server round-trip. So for situations where you're only modifying client state you can do:

  button.onImmediate.click {
    header.text("They clicked!")
  }
When the user clicks it will be instant, as the instructions to modify the DOM are "preloaded" to the client on page render.

Does that alleviate your concern? If not, can you elaborate on where you think the bottleneck is likely to emerge?

Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @04:56PM (#18643528)
Interesting. Just for fun I created a side-by-side with Kweb of one of their simple examples.

Here is kerax:

  var lines: seq[kstring] = @[]
  
  proc createDom(): VNode =
    result = buildHtml(tdiv):
      button:
        text "Say hello!"
        proc onclick(ev: Event; n: VNode) =
          lines.add "Hello simulated universe"
      for x in lines:
        tdiv:
          text x
  
  setRenderer createDom
Here is the equivalent in Kweb:

  fun main() {
    Kweb(port = 2734) {
        doc.body.new {
            button().text("Say hello!").on.click {
                println("Hello simulated universe")
            }
        }
    }
  }
This compiles and works.
Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @04:44PM (#18643467)
Kweb has very little to do with PHP3 and coldfusion, I suggest taking a closer look at it.
Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @02:42PM (#18642817)
I used Wicket for a major project way back in 2007 and worked with the creator of Wicket for a while - so it's almost certain I got some inspiration there :) Wicket was probably the first time I saw a web framework and thought - "wow, this web stuff can be elegant".

Wicket suffered because it straddled the transition from pure HTML to HTML+AJAX. It could do HTML+AJAX, and their solution was elegant, but it was an afterthought and Wicket wasn't really designed around it.

Kweb was designed from the ground-up for this world and this affords it many advantages.

Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @02:30PM (#18642751)
Kweb has a neat solution to this, I outline it in this Reddit comment: https://www.reddit.com/r/programming/comments/a4dtp2/kweb_a_...
Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @01:32PM (#18642395)
That assuming your application's architecture should be split vertically into front-end and back-end, but what if a horizontal split makes more sense?
Re:Kweb: A new approach to building rich webapps, in Kotlin on Sunday December 09, 2018 @01:28PM (#18642375)
I'm kweb's creator, I hadn't heard the term "hexagonal architecture", I'll read up on it, thank you for the kind words.

You are correct that, since kwebsites are server-driven, there is no significant offline capability.

But then the requirements of many websites often rule that out anyway, my strong suspicion is that this won't be a dealbreaker for many people.

Older »