Displaying 20 results from an estimated 80000 matches similar to: "can components have model?"
2006 May 29
0
using components to reuse code
the following is the code of the controller, under the dir
components/test/:
class Test::GroupsManController < ApplicationController
uses_component_template_root
def add_to_group
@account = Account.find_by_nick(@params[:nick])
# render :text => "#{session[:account_id]}
#{Group.find(session[:group_id]).owner_id}"
if (session[:account_id] ==
2017 Jul 14
2
Next steps for optimization remarks?
> On Jul 14, 2017, at 10:22 AM, Davide Italiano <davide at freebsd.org> wrote:
>
> On Fri, Jul 14, 2017 at 10:10 AM, Adam Nemet <anemet at apple.com <mailto:anemet at apple.com>> wrote:
>>
>>
>> On Jul 14, 2017, at 8:21 AM, Davide Italiano via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>
>> On Mon, Jun 19, 2017 at 4:13 PM, Brian
2017 Jul 14
3
Next steps for optimization remarks?
> On Jul 14, 2017, at 8:21 AM, Davide Italiano via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> On Mon, Jun 19, 2017 at 4:13 PM, Brian Gesiak via llvm-dev
> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>> Hello all,
>>
>> In https://www.youtube.com/watch?v=qq0q1hfzidg, Adam Nemet (cc'ed) describes
>>
2006 Mar 10
1
Problem rendering components
I have an AccountsController that inherits from ApplicationController.
In ApplicationController I define a generic layout. In this layout I
render @title that is actually assigned in the AccountsController but
has a default value in ApplicationController.
In the layout template, I also have the standard contents_for_layout and
lastly, I have a render_component. The component called from the
2020 Nov 06
0
RFC: Combining Annotation Metadata and Remarks
Cool! I really like the idea. I left a comment about metadata
preservation below.
Once this is available we will certainly employ it to understand OpenMP
programs better.
We could also think about a user facing version of this while we are at
it ;)
~ Johannes
On 11/4/20 3:57 PM, Florian Hahn via llvm-dev wrote:
> Hi,
>
>
> I would like to propose a new !annotation metadata kind
2018 Feb 12
1
Pattern not recognized as reduction
Reduction Not Captured By LLVM
CODE_1
------------------------------------------------------------
------------------------------------------------------------
--------------------
#include <stdio.h>
int main()
{
int sum[1000]={1,2,3,4};
for (int i=1;i<1000;i++)
{
sum[0] +=sum[i-1];
}
}
2016 Jun 27
0
Filter optimization remarks by the hotness of the code region
> On May 11, 2016, at 10:45 AM, Adam Nemet via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>>
>> On May 11, 2016, at 3:37 AM, Hal Finkel <hfinkel at anl.gov <mailto:hfinkel at anl.gov>> wrote:
>>
>> ----- Original Message -----
>>> From: "Adam Nemet" <anemet at apple.com <mailto:anemet at apple.com>>
>>>
2019 Oct 10
3
[cfe-dev] RFC: End-to-end testing
> On Oct 9, 2019, at 16:12, David Greene via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Mehdi AMINI via cfe-dev <cfe-dev at lists.llvm.org> writes:
>
>>> I have a bit of concern about this sort of thing - worrying it'll lead to
>>> people being less cautious about writing the more isolated tests.
>>>
>>
>> I have the same
2020 Nov 04
2
RFC: Combining Annotation Metadata and Remarks
Hi,
I would like to propose a new !annotation metadata kind that can be attached to arbitrary instructions to drive generating remarks that provide additional insight into transformations applied to a program.
To motivate this, consider these specific questions we would like to get answered:
* How many stores added for automatic variable initialization remain after optimizations? Where are
2017 Sep 19
0
RFC: Use closures to delay construction of optimization remarks
Sean, hopefully you’re OK with that reasoning. I went ahead and committed this in r313691.
> On Sep 16, 2017, at 10:43 PM, Adam Nemet <anemet at apple.com> wrote:
>
>
>> On Sep 16, 2017, at 4:49 PM, Sean Silva <chisophugis at gmail.com <mailto:chisophugis at gmail.com>> wrote:
>>
>> Actually maybe something like:
>>
>> if (auto &E
2006 Mar 08
1
Components calling components...
Hi,
I''m relatively new to ruby and rails. I would like to have a sidebar
component call one of several other constituent components.
I''ve run into some problems, and so I''ve pruned things back to a
relatively simple case.
I have a sidebar component. Renders great. In it''s layout, I call
render_component for another component I would like in the sidebar.
2006 Jan 14
0
testing template components
Hi,
I''m plowing through the template section of "Agile Rails", specifically the
stuff starting on P. 364. What is a good strategy for testing components?
My initial thought is to mimic the Rails application "test" directory. No
problem.
Next copy the setup method, and set it up like so -
class SidebarControllerTest < Test::Unit::TestCase
def setup
2005 Dec 29
0
Components and rails
Hi,
Components are really great in rails for making some needed components.
But I wish to configure those components in three ways. Global
configuration in enviourment.rb, controller specific configuration and
when calling controllers to render, I wish to give some config vars. I
can figure out the last one by using helper, but I don''t know how I can
do global configuration and
2011 Jan 02
3
Bug#608715: Recent hardware components render the xen-hyervisor unusable, fails completeley to boot due to kernel panic
Package: xen-hypervisor-4.0-amd64
Version: 4.0.1-1
Severity: grave
Tags: squeeze upstream
Some newer hardware components (it is unclear what exactly causes the issue) render xen-hyervisor unusable as it
crashes immediately after boot for the Debian out-of-box configuration. This results in a system rebooting all over
again if the hypervisor is choosen as default stanza to be booted by grub
2006 Mar 14
0
using components
Hi
I''m trying make a sidebar, and the view of the sidebar are components,
ala Typo but with a variant.
I made a Distributors components that render a select width a list of
states(province in my country) and onchange of the select I fire a
search of the distributors for that state.
The things is I want use the find method in the component but I can''t
from an url.
can this be
2006 Mar 14
0
problem with components
Hi
I''m trying make a sidebar, and the view of the sidebar are components,
ala Typo but with a variant.
I made a Distributors components that render a select width a list of
states(province in my country) and onchange of the select I fire a
search of the distributors for that state.
The things is I want use the find method in the component but I can''t
from an url.
can this be
2017 Sep 16
3
RFC: Use closures to delay construction of optimization remarks
Another alternative could be:
ORE.emitMissed(DEBUG_TYPE, ...) << ...
Then the first line of emitMissed does a check if it is enabled and if not
then returns a dummy stream that does nothing for operator<< (and
short-circuits all the stream operations)
On Sep 15, 2017 2:21 PM, "Adam Nemet via llvm-dev" <llvm-dev at lists.llvm.org>
wrote:
For better readability we
2017 Sep 17
2
RFC: Use closures to delay construction of optimization remarks
> On Sep 16, 2017, at 4:49 PM, Sean Silva <chisophugis at gmail.com> wrote:
>
> Actually maybe something like:
>
> if (auto &E = ORE.emitMissed(DEBUG_TYPE)) {
> E.emit(...) << ...;
> }
Well, the point of this interface was exactly to avoid writing a conditional. If you’re willing to use a conditional you can already write this:
if
2017 Jun 27
2
Next steps for optimization remarks?
Adam, thanks for all the suggestions!
One nice aspect of the `-Rpass` family of options is that I can filter
based on what I want. If I only want to see which inlines I missed, I could
use `clang -Rpass-missed="inline"`, for example. On the other hand,
optimization remark YAML always include remarks from all passes (as far as
I can tell), which increases the amount of time it takes
2016 May 18
1
Optimization remarks for non-temporal stores
Hi,
There was a recent discussion on generating non-temporal stores automatically[1]. This is a hard problem to get right. What seems like a much easier but still useful problem to solve is to provide diagnostics to the user where NT stores *may* help. Then the user can add the corresponding builtins and see if they are beneficial.
My hope is that with the work to add profile-driven