HN user

dragonsh

5,607 karma
Posts323
Comments604
View on HN
github.com 2y ago

Observable Framework – The best dashboards are built with code

dragonsh
3pts0
sr.ht 2y ago

Hare is a systems programming language designed to be simple, stable, and robust

dragonsh
3pts0
github.com 2y ago

Observable Framework – The best dashboards are built with code

dragonsh
2pts0
sr.ht 2y ago

Hare – simple, stable, and robust systems programming language

dragonsh
2pts0
asia.nikkei.com 2y ago

China overtakes Japan in auto exports with boost from EVs

dragonsh
11pts0
www.lowtechmagazine.com 3y ago

Can we make bicycles sustainable again?

dragonsh
56pts86
github.com 3y ago

Open Source SMT Pick and Place Hardware and Software

dragonsh
38pts5
gitlab.com 3y ago

The Lambdachip Platform – The agility of embedded software [pdf]

dragonsh
1pts0
github.com 3y ago

SurrealDB: Distributed document-graph database for the realtime web

dragonsh
136pts71
github.com 3y ago

Surrealdb – FOSS scalable, distributed, collaborative, Graph DB in Rust

dragonsh
2pts0
github.com 3y ago

Surrealdb – scalable, distributed, collaborative, graph db in rust

dragonsh
2pts0
programming-journal.org 4y ago

Building a secure software supply chain with GNU Guix

dragonsh
120pts6
medium.com 4y ago

Introducing Flutter 3

dragonsh
5pts0
github.com 4y ago

Sonic-Pi release 4.0 – Get ready to Jam with v4 of Sonic Pi

dragonsh
7pts1
github.com 4y ago

NetworkX – Network Analysis in Python

dragonsh
2pts0
mattermost.com 4y ago

Mattermost v7.0 is now available

dragonsh
18pts0
mediapipe.dev 4y ago

Mediapipe – FOSS customizable ML solutions for live and streaming media

dragonsh
2pts0
developer.apple.com 4y ago

Apple – Human Interface Guidelines

dragonsh
2pts0
developer.apple.com 4y ago

Apple – Human Interface Guidelines

dragonsh
4pts0
mediapipe.dev 4y ago

MediaPipe – FOSS cross platform ML solutions for live and streaming media

dragonsh
3pts0
github.com 4y ago

Cross-platform, customizable ML solutions for live and streaming media

dragonsh
1pts0
uploads.peterme.net 4y ago

Memory safety of C, Zig, Rust and Nim

dragonsh
7pts0
www.lowtechmagazine.com 4y ago

How to Build a Practical Household Bike Generator

dragonsh
2pts1
github.com 4y ago

PartKeepr – open-source inventory management software for electronic components

dragonsh
1pts0
www.knot-dns.cz 4y ago

High-performance authoritative DNS server

dragonsh
1pts0
www.rt.com 4y ago

Assange extradition order issued by UK court

dragonsh
14pts1
github.com 4y ago

Realtime Web Apps and Dashboards for Python and R

dragonsh
2pts0
github.com 4y ago

Realtime Web Apps and Dashboards for Python and R

dragonsh
3pts0
discuss.linuxcontainers.org 4y ago

LXD 5.0 LTS has been released

dragonsh
2pts0
discuss.linuxcontainers.org 4y ago

LXD 5.0 LTS has been released

dragonsh
19pts3

Not really tried the Claude 3.5, later tried o1-preview on github models and recently Qwen2.5 32B for a prompt to generate a litestar[0] app to manage a wysiwyg content using grapesjs[1] and use pelican[2] to generate static site. It generated very bad code and invented many libraries in import which didn't exist. Cluade was one of the worst code generator, later tried sieve of atkin to generate primes to N and then use miller-rabin test to test each generated prime both using all the cpu core available. Claude completely failed and could never get a correct code without some or the other errors especially using multiprocess, o1-preview got it right in first attempt, Qwen 2.5 32B got it right in 3'rd error fix. In general for some very simple code Claude is correct but when using something new it completely fails, o1-preview performs much better. Give a try to generate some manim community edition visualization using Claude, it generates something not working correct or with errors, o1-preview does much better job.

In most of my test o1-preview performed way better than Claude and Qwen was not that bad either.

[0] https://github.com/litestar-org/litestar

[1] https://grapesjs.com/

[3] https://getpelican.com/

Like you said its fine to promote language on its merit, but using false propaganda to promote it borders fraud and Rust community needs to act together to stop such practices.

Overhype within Rust community is a sign of fear among the community that some simple language (may be zig, nim or something new) might come and pull the rug under their feet. Given it compromise on simplicity in favour of quashing memory safety bugs.

One reason rewrite in Rust is popular because its easier to copy something already done vs doing something original (one recent example came to mind is rewriting gnu coreutils in Rust).

GPT-4 prompt: “Write an essay in 1000 words why Sam Altman should be fired by OpenAI board”

Response:

Sam Altman, the CEO of OpenAI, has been a controversial figure in the AI industry. His leadership style, lack of transparency, and decision-making processes have raised significant concerns among OpenAI's employees and the public. This essay will delve into these issues, arguing that Altman's actions warrant his removal from his position.

Firstly, Altman's lack of transparency is a major concern. He has been known to make decisions without adequately consulting with his team or the public. This has led to a lack of trust and dissatisfaction among OpenAI's employees. For instance, when Altman announced that OpenAI would be focusing on a single project, he did not provide sufficient reasoning or context. This lack of communication has left employees feeling disenfranchised and uninformed.

Secondly, Altman's decision-making processes are often questionable. His decisions have not always been in the best interest of OpenAI or its employees. For example, when OpenAI decided to pivot from developing AI systems to developing AI safety research, many employees felt that this was a strategic mistake. Altman's decision to focus on this area without considering the potential negative impacts on the company's reputation and financial stability was a clear example of poor decision-making.

Thirdly, Altman's leadership style has been described as autocratic. He has been known to make decisions without considering the input of his team. This has led to a lack of buy-in from employees and has negatively impacted morale. For instance, when Altman decided to shift OpenAI's focus to AI safety research, many employees felt that their ideas and contributions were being overlooked.

Finally, Altman's actions have also raised concerns about his commitment to AI safety. His decision to focus on AI safety research, rather than on developing AI systems, has raised questions about his commitment to the field. This decision has also raised concerns about the potential misuse of AI technology and has led to a loss of trust among the public.

In conclusion, Sam Altman's lack of transparency, questionable decision-making, autocratic leadership style, and concerns about his commitment to AI safety are all reasons why he should be removed from his position at OpenAI. It is clear that his actions have led to a lack of trust and dissatisfaction among OpenAI's employees and the public. It is crucial that OpenAI takes these concerns seriously and makes changes to ensure the success and safety of its AI technology.

May be give anthropic a try the answer is more correct than ChatGPT, indeed in every subsequent attempt the quality of ChatGPT both GPT-3.5 and GPT-4 deteriorated.

Here are the answers:

    ChatGPT:
      First response: 
        Mary is the sister of Susan and Susan has 7 brothers. Each of these 7 brothers has one sister, and that sister is Mary. So, Mary has 7 brothers, and she is also the sister of Susan. Therefore, Mary has a total of 8 sisters, including Susan.

     Second Response:
       Mary is the sister of Susan, so she has one sister. There is no need to consider the 7 brothers in this context as the question is asking specifically about how many sisters Mary has.

    GPT-4 Response:
       From the information provided, we can infer that Mary has one sister, Susan. The question specifically asks about how many sisters Mary has, and it doesn't mention any other siblings. Therefore, based on the given information, Mary has only one sister, Susan.

    Anthropic:

     Okay, let's break this down step-by-step:

      Susan has 7 brothers
      Each of Susan's 7 brothers has 1 sister
      So there are 7 sisters total (1 sister for each of the 7 brothers)
      The question asks how many sisters Mary has
      Mary is not mentioned anywhere else in the problem
      So there is no information provided to determine how many sisters Mary has

     Therefore, the question does not provide enough information to determine how many sisters Mary has. The number of sisters Susan's brothers have does not tell us anything about how many sisters someone unrelated named Mary has.

Most Japanese manufacturers are small and many parts of battery and battery cell supply depends on China. Japan lost the battery battle so want to use something else. Tesla’s largest battery supplier is Chinese CATL[0].

So in EV Japan is a minor player, if not for US sanctions Chinese EV makers would have overtaken Tesla as well, but which they will give them some time.

[0] https://www.bloomberg.com/news/articles/2023-10-11/china-s-c...

Not really comparable after paying for CoE for open category 152K SGD (US$104K), in Singapore there is a advanced registration fee called ARF,then there is additional tax on top. So a typical BMW X5 will be around SGD 540,000 (US$ 394,600) and that too for 10 years, after 10 years need to buy a new CoE or discard the car.

A Tesla Model S will be more than 400k for 10 years after that need another 100k for 10 year renewal.

Also fuel prices and road tax are high in Singapore which needs to be paid regularly besides buying costs.

But that's missing the point that Python is still not meant to be the best at anything, but good at most things.

The most important thing about Python is readability and its part of its syntax and is one of the best languages out there for readability.

Zen of python:

  >>> import this
  The Zen of Python, by Tim Peters

  Beautiful is better than ugly.
  Explicit is better than implicit.
  Simple is better than complex.
  Complex is better than complicated.
  Flat is better than nested.
  Sparse is better than dense.
  Readability counts.
  Special cases aren't special enough to break the rules.
  Although practicality beats purity.
  Errors should never pass silently.
  Unless explicitly silenced.
  In the face of ambiguity, refuse the temptation to guess.
  There should be one-- and preferably only one --obvious way to do it.
  Although that way may not be obvious at first unless you're Dutch.
  Now is better than never.
  Although never is often better than *right* now.
  If the implementation is hard to explain, it's a bad idea.
  If the implementation is easy to explain, it may be a good idea.
  Namespaces are one honking great idea -- let's do more of those!
  >>>

1 point by dragonsh 3 minutes ago | root | parent | next | edit | delete [–]

I follow these simple rules for breathing

  1. Breathe to stomach not chest.
  2. Breathe by nose (unless swimming or underwater).
  3. Inhalation time and exhalation time should be equal and gap between inhalation and exhalation should be sum of it. If it takes x seconds to inhale exhalation should begin after 2x seconds and should finish in x seconds

 Retention (2x) = inhalation time (x) + exhalation time (x).
All the pranayam and yogic techniques try to make it natural to have this pattern and symmetry in our breathing process.

I'm not sure that's true

I am sure its true, given Kubernetes, Docker and related projects, CockroachDB, prometheus, influxdb, nomad, otto, consul, grafana, terraform, snap, juju, Caddy, SeaweedFS, minio, milvus, syncthing, cilium are some of the examples in Go. Indeed it will be safe to say Go is one of the prominent language like Java, Python, C, C++ powering the internet. Rust still has a mountain to cross to reach even half as much usage as Go, except TiKV, Rust itself and Servo I don't see large open source software in Rust yet.

There is a lot of talk about it on HN and may be given 20-30 years it might become more widespread. Rust is still recovering from its failure of Servo not being used by Mozilla, given it failed to live up to expectations of replacing C++ in Firefox due to performance issues and resolving them within time constraints of project budget.

>They're not fighting against Russia.

They are fighting Russia using man power provided by Ukraine. If not for US, war would have been over with some resolution already.

I hope instead of war world move more towards reconciliation and vie for more peaceful solutions, not prolong a conflict by selling more weapons. Soon this will be the same story repeated for Taiwan against China.

Many people are facing death in flood hit Pakistan with over 13 million not having access to clean water, world is staring at a staggering number of fatalities more than the total casualty in Ukraine war. But Pakistan’s disaster is not important, same for Sri Lanka. In UN assembly all focus will again be on Ukraine with lots of speeches and making special exceptions for virtual speech, unlucky for developing world UN doesn’t have enough bandwidth for them.

C is implementation detail and that's what make it irreplaceable in short period of time. In my view Rust story will be similar to C++ if it continues to stay relevant for next 20-30 years and will be another alternative besides C++.

Right now Go is miles ahead of Rust when it comes to libraries and ecosystem. So it needs to catch up and once it overcomes Go popularity it might be nearer to C++. C is a different beast and will continue to be there it's the lingua franca of hardware programming and abstraction, unless something simpler comes and takes over which will also be 2-3 decades.

TiKV is written in rust but then it depends on crates which use C and libc. Rust complements C, it is not an alternative to C, just another alternative to C++.

May be 20-30 years down the line, if it stays may be enough OS and libraries are built in native Rust without C then it might displace it, but at the moment Rust depends on C.

This will make Volkswagen completely dependent on China given they control most of the Lithium battery supply chain. [1]

So in essence whether US/EU thinks of Green Energy or Fossil fuel sustainable way for the companies to thrive is to include Russia or China.

Given the current geo-political turmoil, may be its a good thing less chances of conflict and willingness to resolve through dialogue.

[1] https://www.instituteforenergyresearch.org/renewable/china-d...

Personal choice but indeed Trac is very nice and is still used by high profile projects like Django (especially supporting ticket triage) and Twisted Matrix.

Indeed fossil-scm [1], has same interface as Trac (in my view partly inspired by it). Have used Trac for a long time, so can't complain, it works well, its simple and flexible.

[1] https://fossil-scm.org

they have been very innovative

Not really there were many solution much better in the market, below had some list with solutions offering much more then list above. It's just that Shopify had investor money to burn to have market dominance through marketing.

Indeed that's visible in their balance sheet that they grow by spending money not due to technological innovations.

Just scratching the surface (not including Magento or WooCommerce) take a look at some of open source solution which can be installed on bare-metal, cloud or used as SaaS offered by providers. These all are ready to deploy solution in hours and days (obviously as stated earlier the difficult part is not this but the business itself. ):

1. Spree [1] Store Demo [2]

2. Saleor [3] Store Demo [4]

3. Reaction [5]

4. Solidus [6]

5. Medusa [7]

6. Sylius [8]

7. Shuup [9]

8. Vendure [10] Demo Store [11]

9. Shopware [12]

10. Vue-Storefront [13] - works with many of the above backend.

11. nopCommerce [14]

12. Bagisto [15]

------

Links:

[1] https://spreecommerce.org/spree-as-a-service/

[2] https://spree.vercel.store/

[3] https://saleor.io/

[4] https://saleor.vercel.store/

[5] https://mailchimp.com/developer/open-commerce/

[6] https://solidus.io/

[7] https://medusajs.com/

[8] https://sylius.com/

[9] https://www.shuup.com/

[10] https://www.vendure.io/

[11] https://vendure.vercel.store/

[12] https://www.shopware.com/en/

[13] https://www.vuestorefront.io/cloud

[14] https://www.nopcommerce.com/en/enterprise-ecommerce-platform

[15] https://bagisto.com/en/

just common sense.

Common sense is very uncommon :-).

E-commerce stores are not easy as business, but very easy to launch today because technology is the easiest part of it. The biggest difficulty is getting traffic, then conversion to order, then with superior products, logistics and customer service retain the customer. No one can setup logistics, product catalogs, superior customer service from day 0, it takes quite a time and feedback loop. So remember in the grand scheme of ecommerce store for merchant time taken to build or launch a system is minuscule compared to other hard physical world problems they need to solve around products and services they are offering.

Today literally thousands of options are available to launch an ecommerce store with single click with better quality, speed, flexibility and control than shopify.

Shopify is just one another provider with walled gardens. Shopify is popular not due to any innovation in technology or quality or speed, its popular because it spend literally billions of dollars of investor money in marketing. So they succeeded by throwing marketing money, not due to innovative technology.

it just literally isn’t possible.

Another hyperbole and marketing jargon (ecommerce systems are one of the easiest and most competitive with too many providers like shopify).

You might not have tried options and frameworks available in market. Literally thousands of one-click install ecommerce systems ready to use is available for bare-metal, cloud, kubernetes, containers or even simple desktop machines. These systems comes with redundancy, high-availability, faster response time, integrated with payment provider, logistic provider of choice but also gives full control including source code (very different from walled gardens of shopify which indeed has access to customer data, payment, order information, inventory information of store owners without providing any source code).

In functionality, templates and flexibility much better than Shopify. May be just change the tinted glass of promoting shopify and you might see thousands of other options in the market.

Probably shopify evangelist trying to promote the company without appearing to be promoting it.

Shopify is just a glorified shopping cart like million others, so its no better than writing your own using frameworks available, which makes it trivial and even easier than shopify.

If going by your logic its futile to even try to build own e-commerce store. Just use established platforms which offer marketplace. Since marketplace solves one of the biggest hurdle for an ecommerce which is visitors traffic which you can convert. Also with added advantage that visitor can combine things from multiple stores into a single cart, payment and logistics infrastructure.

Good for people who like to work with non-standard markdown. Not sure why companies do not use RestructuredText (rst), which is a proper specification [0] and has been very successful in the area of documentation.

In order to generate a print quality documentation from this markdoc format will be a huge task. RestructuredText already has strong support for Latex output.

Now people have plain markdown, gitbook and now markdoc with its own set of non standard extensions. Hopefully rst format can catch up among JavaScript developers.

So far haven’t seen a complete documentation tool like Python Sphinx [1].

[0] https://docutils.sourceforge.io/docs/ref/rst/restructuredtex...

[1] https://www.sphinx-doc.org/en/master/

Better tyranny of the majority than tyranny of the one.

There is nothing like tyranny of one. Its always Tyranny of interest groups, which is true in any system including democratic system where rich and powerful controls most.

Today most of the US elections are controlled by billionaires and who is going to win depends on their blessings. Same is true for India.

US, India represent the majority of the human population under democratic system and how it works.

Look at any HDI or UN statistics that matter and see the conditions on largest human population on one side represented by democratic India and on another side by a closed system in China (people call it authoritarian, although its a mixture of many systems). Examine closely and you will notice both the systems work in some areas and fail in others, no one can claim superiority over other system. But a narrative of good vs evil, superior vs inferior is a root cause of conflicts. If people began to see things from humanity’s perspective with respect of each other world would be a different place.

An eye for an eye leaves everyone blind. Solution to armed conflict is not more armed conflict by supporting one group against another with weapons of destruction.

The power of democracy isn't the debates and election campaigns. That's mostly theater. The power of democracy is the peaceful way to change the government after it fucks up.

This is also an illusion democracy is also tyranny of majority in which minority or minority views trampled. Shining example is USA, India. US waged war killed scores of civilians in so many countries and still a beacon of democracy, India an incompetent govt which bring economic ruin in the country continue to get majority because it appeals to majority religious group.

In US to fight presidential elections need billions of dollars. However the rules be made, most politicians need to seek money from rich which needs to be paid back directly or indirectly. Nothing comes free in this world.

So democracy to survive needs to transform itself first.

a vaccine contrarian

My response was related to above post regarding Sinovac given Pfizer and Moderna are similar against Omicron.

Not a vaccine contrarian just one of the person who got infected after booster shot, will take a vaccine again but science has one trait which is self correction and overwhelming data shows that Omicron is mild whether vaccinated or not vaccinated. So its better to do a clinical trials and studies not funded by Pharma industry or interest groups, objectively to determine if Omicron played a pivotal role and not vaccine in reducing Covid-19 fatality globally.

Yes within China people from Shanghai also call themselves Shanghainese and their dialect is also very different like Cantonese so its nothing special. Shanghainese consider themselves, like New Yorker more cultured than anyone else in China including Cantonese.

But people of Chinese ethnicity will first always identify themselves as Chinese not Cantonese or Shanghainese or Beijinger or Fujianese except for some people who prefer to think they are superior then being Chinese.

Its like saying New Yorker is different from a Californian and they are not American. When they are outside USA they will prefer to be called New Yorker not American.

Those who refer to themselves as Cantonese do not feel superior

People who call themselves cantonese and not chinese are mostly from Hong Kong. People in Hong Kong always thought of themselves as superior to mainland Chinese and not just that they openly discriminated against them and darker skin people from south asia many of whom hold Hong Kong passport.

If you want to talk about regional differences like Newyorker or Californian then it does exist in China today where Shanghainese consider themselves at top and mostly disliked by Beijinger or HongKonger and others.

Efforts for unification of China started in Qin empire (221–206 BC) [0], which includes language standardisation and still a work in progress given there are still large number of dialects and ethnic groups in China. Lucky for China many of its historical culture remains along with language, cannot say the same for native Americans, whose language is not even part of official languages in North or South America.

[0] https://en.m.wikipedia.org/wiki/Qin_dynasty

If you look at the code they used to have —postgres-dsn URL, now they changed it to —backend-dsn. If you go beyond the marketing, edgedb is a postgres connection pool+orm combined together with a query language (its a huge work in itself and commendable given it takes away many dependencies and provide a consistent developer experience). It’s leveraging postgresql server which is the true database providing ACID compliance.

Edgedb is more akin to hasura than to a database in traditional sense.

Just a minor nitpick Rust still has miles to go before it catches with Python or Go or Java, so not yet in the same league. Most of the rust crates today depends on C, so it’s not going to replace C in next 2 decades, but will still depend on C.

Hopefully it will start replacing C going forward but in that space Rust is competing with Zig and Nim.